hey, i decieded to edit rataz CMS so here it is
( Phpretro housekeeping just a new login page )
New feature :
Wanted Page Emu Codes :
Add Wanted :
Remove Wanted :
and a few other things which i havent taken pics of
enjoy download
Credits :
Me - for doing the edits etc.
RastaLulz - The CMS Base and most of the features
Sledmore - for the wanted page and corps page ( which was edited by me ).
Various people - for addons etc
( Without all these people this would not be possible )
( My Site Changed Host Today So I Have Had To Re Upload The Images ETC. Sorry For The Delay ! )
( Phpretro housekeeping just a new login page )
New feature :
- Wanted Page ( Code For the emu below )
- More details for create business
- View top 30 corps page
- Badge display on me page
- New housekeeping login page
- And a few more things
Wanted Page Emu Codes :
Add Wanted :
#region :addwanted <user>
case "addwanted":
{
virtualUser User = userManager.getUser(args[1]);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
int isworking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
if (isworking == 1)
{
{
int me_secure_id = dbClient.getInt("SELECT secure_id FROM users WHERE name = '" + _Username + "'");
int canarrest = dbClient.getInt("SELECT arrest FROM jobs_ranks WHERE id = '" + me_secure_id + "'");
if (canarrest == 1)
{
Room.sendSaying(roomUser, "*Adds " + User._Username + ", to the wanted list!*");
dbClient.runQuery("UPDATE users SET wanted = '1' WHERE name = '" + User._Username + "'");
userManager.sendToCop(1, false, "BK" + "" + User._Username + " has been added to the wanted list by " + _Username + "!");
}
}
}
}
break;
}
#endregion
Remove Wanted :
Updated Arrest code ( removed wanted when arrested ) :#region :removewanted <user>
case "removewanted":
{
virtualUser User = userManager.getUser(args[1]);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
int isworking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
if (isworking == 1)
{
{
int me_secure_id = dbClient.getInt("SELECT secure_id FROM users WHERE name = '" + _Username + "'");
int canarrest = dbClient.getInt("SELECT arrest FROM jobs_ranks WHERE id = '" + me_secure_id + "'");
if (canarrest == 1)
{
Room.sendSaying(roomUser, "*Removes " + User._Username + ", from the wanted list!*");
dbClient.runQuery("UPDATE users SET wanted = '0' WHERE name = '" + User._Username + "'");
userManager.sendToCop(1, false, "BK" + "" + User._Username + " has been removed from the wanted list by " + _Username + "!");
}
}
}
}
break;
}
#endregion
#region :arrest <user> <time>
case "arrest":
{
virtualUser User = userManager.getUser(args[1]);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
int isworking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
if (isworking == 1)
{
{
int me_secure_id = dbClient.getInt("SELECT secure_id FROM users WHERE name = '" + _Username + "'");
int canarrest = dbClient.getInt("SELECT arrest FROM jobs_ranks WHERE id = '" + me_secure_id + "'");
if (User._roomID == _roomID && (roomUser.Y == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y + 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X))
{
if (canarrest == 1)
{
if (User.roomUser.walkLock == false)
{
Room.sendSaying(roomUser, "*attempts to arrest " + User._Username + ", but notices that he is not cuffed*");
}
else
{
int time = int.Parse(args[2]);
if (time > 60 || time < 1)
{
sendData("BK" + "What exactly are you trying to do?");
}
else
{
dbClient.runQuery("UPDATE users SET arrested = '1', wanted = '0' arrests = arrests + '1', time_jail = '" + args[2] + "' WHERE name = '" + User._Username + "'");
int fine = time * 5;
dbClient.runQuery("UPDATE users SET credits = credits - '" + fine + "' WHERE name = '" + User._Username + "'");
refreshValueables(true, false);
Room.sendSaying(roomUser, "*arrests " + User._Username + " for " + time + " minutes, and fines them " + fine + " credits*");
User.sendData("D^" + "H" + Encoding.encodeVL64(112));
User.sendData("BK" + "You have been arrested by " + _Username + ", and fined " + fine + " credits!");
ThreadStart jailStarter = new ThreadStart(User.jailTime);
User.jailLooper = new Thread(jailStarter);
User.jailLooper.Priority = ThreadPriority.Lowest;
User.jailLooper.Start();
}
}
}
}
}
}
}
break;
}
#endregion
and a few other things which i havent taken pics of
enjoy download
You must be registered for see links
( Includes DB )Credits :
Me - for doing the edits etc.
RastaLulz - The CMS Base and most of the features
Sledmore - for the wanted page and corps page ( which was edited by me ).
Various people - for addons etc
( Without all these people this would not be possible )
( My Site Changed Host Today So I Have Had To Re Upload The Images ETC. Sorry For The Delay ! )