Skip to content

Commit

Permalink
* Reforged table prefixes and project names
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythos94 committed Jun 11, 2012
1 parent 101ef39 commit 2272393
Show file tree
Hide file tree
Showing 31 changed files with 6,656 additions and 1,533 deletions.
7,981 changes: 6,549 additions & 1,432 deletions SQL/ip2nation.sql

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions SQL/mmfpm.sql
@@ -1,12 +1,12 @@
-- Database: mmftc
-- Database: mmfs

--
-- Table structure for table `mm_forum_posts`
-- Table structure for table `mmfs_forum_posts`
--

DROP TABLE IF EXISTS `mm_forum_posts`;
DROP TABLE IF EXISTS `mmfs_forum_posts`;

CREATE TABLE `mm_forum_posts` (
CREATE TABLE `mmfs_forum_posts` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`authorid` bigint(20) unsigned NOT NULL DEFAULT '0',
`authorname` varchar(16) NOT NULL DEFAULT '',
Expand All @@ -23,23 +23,23 @@ CREATE TABLE `mm_forum_posts` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `mm_forum_posts`
-- Dumping data for table `mmfs_forum_posts`
--

LOCK TABLES `mm_forum_posts` WRITE;
/*!40000 ALTER TABLE `mm_forum_posts` DISABLE KEYS */;
INSERT INTO `mm_forum_posts`(`id`,`authorid`,`authorname`,`forum`,`topic`,`lastpost`,`name`,`text`,`time`,`annouced`,`sticked`) values
LOCK TABLES `mmfs_forum_posts` WRITE;
/*!40000 ALTER TABLE `mmfs_forum_posts` DISABLE KEYS */;
INSERT INTO `mmfs_forum_posts`(`id`,`authorid`,`authorname`,`forum`,`topic`,`lastpost`,`name`,`text`,`time`,`annouced`,`sticked`) values
(1,0,'miniManagerTeam',1,1,1,'Hello Admin!','[b]Hi[/b] !!:D<br /><br />If you are reading this, that means that you have [i]correctly[/i] installed this forum, XD<br /><br /><br /><br />So what\' s next?<br /><br />Edit [color=red]forum.conf.php[/color]<br /><br /><br /><br />And enjoy!<br /><br /><br /><br />Report bugs at [url=http://www.trintiyscripts.xe.cx]miniManager forums[/url]<br /><br /><br /><br />Bye!<br /><br />miniManagerTeam','00/00/00 00:00:00',1,0);
/*!40000 ALTER TABLE `mm_forum_posts` ENABLE KEYS */;
/*!40000 ALTER TABLE `mmfs_forum_posts` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mm_motd`
-- Table structure for table `mmfs_motd`
--

DROP TABLE IF EXISTS `mm_motd`;
DROP TABLE IF EXISTS `mmfs_motd`;

CREATE TABLE `mm_motd` (
CREATE TABLE `mmfs_motd` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Identifier',
`realmid` int(11) NOT NULL,
`type` longtext NOT NULL,
Expand All @@ -48,21 +48,21 @@ CREATE TABLE `mm_motd` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='MOTD System';

--
-- Dumping data for table `mm_motd`
-- Dumping data for table `mmfs_motd`
--

LOCK TABLES `mm_motd` WRITE;
/*!40000 ALTER TABLE `mm_motd` DISABLE KEYS */;
INSERT INTO `mm_motd` VALUES (1, 1, '02/05/10 14:29:07 Posted by: MiniManager Team', 'Hello Admin\r\n\r\nhelp supporting Minimanager\r\n\r\nhttp://www.trinityscripts.xe.cx\r\n\r\nif you found a bug or improved it, please contribute\r\n\r\nor it will eventually stop development from lack of interrest from community ');
/*!40000 ALTER TABLE `mm_motd` ENABLE KEYS */;
LOCK TABLES `mmfs_motd` WRITE;
/*!40000 ALTER TABLE `mmfs_motd` DISABLE KEYS */;
INSERT INTO `mmfs_motd` VALUES (1, 1, '02/05/10 14:29:07 Posted by: MiniManager Team', 'Hello Admin\r\n\r\nhelp supporting Minimanager\r\n\r\nhttp://www.trinityscripts.xe.cx\r\n\r\nif you found a bug or improved it, please contribute\r\n\r\nor it will eventually stop development from lack of interrest from community ');
/*!40000 ALTER TABLE `mmfs_motd` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mm_point_system_invites`
-- Table structure for table `mmfs_point_system_invites`
--

DROP TABLE IF EXISTS `mm_point_system_invites`;
CREATE TABLE `mm_point_system_invites` (
DROP TABLE IF EXISTS `mmfs_point_system_invites`;
CREATE TABLE `mmfs_point_system_invites` (
`entry` int(11) NOT NULL auto_increment,
`PlayersAccount` char(50) default NULL,
`InvitedBy` char(50) default NULL,
Expand All @@ -73,12 +73,12 @@ CREATE TABLE `mm_point_system_invites` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Table structure for table `mm_account`
-- Table structure for table `mmfs_account`
--

DROP TABLE IF EXISTS `mm_account`;
DROP TABLE IF EXISTS `mmfs_account`;

CREATE TABLE `mm_account` (
CREATE TABLE `mmfs_account` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Identifier',
`username` varchar(32) NOT NULL DEFAULT '',
`sha_pass_hash` varchar(40) NOT NULL DEFAULT '',
Expand Down
6 changes: 6 additions & 0 deletions SQL/update/table_rename_for_skyfire.sql
@@ -0,0 +1,6 @@
-- 16.03.2011 Table rename
-- RUN THESE QUERY ONLY ONCE!
ALTER TABLE `mmfs_forum_posts` RENAME TO `mmfs_forum_posts`;
ALTER TABLE `mmfs_motd` RENAME TO `mmfs_motd`;
ALTER TABLE `mmfs_point_system_invites` RENAME TO `mmfs_point_system_invites`;
ALTER TABLE `mmfs_account` RENAME TO `mmfs_account`;
2 changes: 1 addition & 1 deletion doc/about.txt
Expand Up @@ -4,7 +4,7 @@ Original miniManager for Project MaNGOS Server by Q.SA

ABOUT:

MiniManager for Project Trinity Server is a PHP, web front end that
Minimanager for SkyfireEMU Server is a PHP, web front end that
provides easy access to manage Trinity servers. Manage/add/remove/edit/
lock/ban/etc. user accounts, characters, database and server itself.
It is a small, easy to use, flexible tool.
Expand Down
6 changes: 3 additions & 3 deletions edit.php
Expand Up @@ -17,7 +17,7 @@ function edit_user(&$sqlr, &$sqlc)
$sqlm = new SQL;
$sqlm->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']);

$refguid = $sqlm->result($sqlm->query('SELECT InvitedBy FROM mm_point_system_invites WHERE PlayersAccount = \''.$user_id.'\''), 0, 'InvitedBy');
$refguid = $sqlm->result($sqlm->query('SELECT InvitedBy FROM mmfs_point_system_invites WHERE PlayersAccount = \''.$user_id.'\''), 0, 'InvitedBy');
$referred_by = $sqlc->result($sqlc->query('SELECT name FROM characters WHERE guid = \''.$refguid.'\''), 0, 'name');
unset($refguid);

Expand Down Expand Up @@ -319,7 +319,7 @@ function doupdate_referral($referredby, &$sqlr, &$sqlc)
$sqlm = new SQL;
$sqlm->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']);

if (NULL == $sqlm->result($sqlm->query('SELECT InvitedBy FROM mm_point_system_invites WHERE PlayersAccount = \''.$user_id.'\''), 0))
if (NULL == $sqlm->result($sqlm->query('SELECT InvitedBy FROM mmfs_point_system_invites WHERE PlayersAccount = \''.$user_id.'\''), 0))
{
$referred_by = $sqlc->result($sqlc->query('SELECT guid FROM characters WHERE name = \''.$referredby.'\''), 0);

Expand All @@ -331,7 +331,7 @@ function doupdate_referral($referredby, &$sqlr, &$sqlc)
if ($result == $user_id);
else
{
$sqlm->query('INSERT INTO mm_point_system_invites (PlayersAccount, InvitedBy, InviterAccount) VALUES (\''.$user_id.'\', \''.$referred_by.'\', \''.$result.'\')');
$sqlm->query('INSERT INTO mmfs_point_system_invites (PlayersAccount, InvitedBy, InviterAccount) VALUES (\''.$user_id.'\', \''.$referred_by.'\', \''.$result.'\')');
return true;
}
}
Expand Down

0 comments on commit 2272393

Please sign in to comment.