Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Commit

Permalink
Updated sql file
Browse files Browse the repository at this point in the history
  • Loading branch information
MartyniP committed Sep 27, 2012
1 parent c3c908e commit a1d2c9a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
2 changes: 2 additions & 0 deletions admin/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
$_ERROR[] = "User suspened<br />";
mysql_query("UPDATE ".DB_PREFIX."users SET suspended='1' WHERE id='".$sId."'");
mysql_query("DELETE FROM ".DB_PREFIX."session WHERE uId='".$sId."'");
header('Location: '.get_phurl_option('site_url').'/admin/users.php');
}
}
}
Expand All @@ -54,6 +55,7 @@
} else {
$_ERROR[] = "User unsuspened<br />";
mysql_query("UPDATE ".DB_PREFIX."users SET suspended='0' WHERE id='".$sId."'");
header('Location: '.get_phurl_option('site_url').'/admin/users.php');
}
}
}
Expand Down
28 changes: 23 additions & 5 deletions phurl3db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,23 @@
-- Database: `phurl3`
--
--
-- Dump from 22:01 22/09/2012 by Martyn Watton
-- Dump from 13:43 27/09/2012 by Martyn Watton
--

-- --------------------------------------------------------

--
-- Table structure for table `phurl_api`
--

CREATE TABLE IF NOT EXISTS `phurl_api` (
`apiKey` varchar(32) NOT NULL,
`time` int(11) NOT NULL,
`remain` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `phurl_options`
--
Expand All @@ -23,10 +35,12 @@ CREATE TABLE IF NOT EXISTS `phurl_options` (
INSERT INTO `phurl_options` (`option`, `value`) VALUES
('shortcode_type', 'r'),
('site_url', 'http://phurl3.lo'),
('site_title', 'Lorem Ipsum URL Shortener'),
('site_title', 'phurl 3.0'),
('site_slogan', 'URLs made shorter, URLs made simpler.'),
('theme_path', 'includes/themes/default/'),
('phurl_version', '3.0');
('phurl_version', '3.0'),
('api_limit', '250'),
('phurl_numericalversion', '300');

-- --------------------------------------------------------

Expand All @@ -43,6 +57,8 @@ CREATE TABLE IF NOT EXISTS `phurl_session` (
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `phurl_settings`
--
Expand Down Expand Up @@ -119,12 +135,14 @@ CREATE TABLE IF NOT EXISTS `phurl_users` (
`password` varchar(64) NOT NULL,
`apiKey` varchar(32) NOT NULL,
`type` enum('n','a') NOT NULL,
`suspended` enum('0','1') NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--
-- Dumping data for table `phurl_users`
--

INSERT INTO `phurl_users` (`id`, `uname`, `fname`, `lname`, `email`, `password`, `apiKey`, `type`) VALUES
(1, '', '', '', '', '', '20GigZMpBL32vIaY', 'a');
INSERT INTO `phurl_users` (`id`, `uname`, `fname`, `lname`, `email`, `password`, `apiKey`, `type`, `suspended`) VALUES
(1, '', '', '', '', '', '20GigZMpBL32vIaY', 'a', '0');

0 comments on commit a1d2c9a

Please sign in to comment.