Jump to content
MakeWebGames

Voice4Vision

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by Voice4Vision

  1. Re: [TGM] Stat Level [TGM] It's seems rather apparent that this mod is no longer available. So now whats the possibility of getting a newer version made?
  2. Re: [v2] SMS Messaging System Create CSS File style.css   /*----------------------------------------------------- -- Original Author: [url]http://www.textssender.com[/url] -- E-mail: [email][email protected][/email] ------------------------------------------------------------------------------------------------ -- Ported by Voice4Vision -- Other contributing scripts were taken from illusions - [MCCODES V2] Mobile text messaging [url]http://criminalexistence.com/ceforums/index.php?topic=29213.0[/url] * Credit System * Donators Addon -----------------------------------------------------*/ body { font-family: Verdana, Arial, Tahoma; font-size: 10px; color: #000000; background-color: #1875BF; margin: 0; } table, tr, td { font-family: Verdana, Arial, Tahoma, Georgia; font-size: 10px; color: #000000; } input, submit, textarea, select{ background: #E7E5E5; font-family: Arial, Verdana, Tahoma; font-size: 10px; color: #000; border: 1px solid #000; } .ksent { width: 250px; padding: 5px; border-style: dashed; border-width: 2px; border-color: #cccccc; } img { border: 0px; } .radiok { background-color: #FFFFFF; border-width: 0px; } .grn_title { background: #BCD98D; height: 20px; } /*/ Links /*/ a, a:visited, a:active { color: #7ACD1B; text-decoration: none; } a:hover { color: #FF5200; text-decoration: underline; } /*/ Special /*/ div.header { background: #FFFFFF url(''); height: 56px; margin: 0; } .main { width: 644px; }   Create PHP File insert.php   <?php /*----------------------------------------------------- -- Original Author: [url]http://www.textssender.com[/url] -- E-mail: [email][email protected][/email] ------------------------------------------------------------------------------------------------ -- Ported by Voice4Vision -- Other contributing scripts were taken from illusions - [MCCODES V2] Mobile text messaging [url]http://criminalexistence.com/ceforums/index.php?topic=29213.0[/url] * Credit System * Donators Addon -----------------------------------------------------*/ include "sglobals.php"; require_once('testing.php'); if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $editFormAction = $_SERVER['PHP_SELF']; if (isset($_SERVER['QUERY_STRING'])) { $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); } if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { $insertSQL = sprintf("INSERT INTO providers (id, name, address) VALUES (%s, %s, %s)", GetSQLValueString($_POST['id'], "int"), GetSQLValueString($_POST['name'], "text"), GetSQLValueString($_POST['address'], "text")); mysql_select_db($database_testing, $testing); $Result1 = mysql_query($insertSQL, $testing) or die(mysql_error()); } ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Add New Carriers</title> </head> <body> <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1"> <table align="center"> <tr valign="baseline"> <td nowrap="nowrap" align="right">Id:</td> <td><input type="text" name="id" value="" size="32" /></td> </tr> <tr valign="baseline"> <td nowrap="nowrap" align="right">Name:</td> <td><input type="text" name="name" value="" size="32" /></td> </tr> <tr valign="baseline"> <td nowrap="nowrap" align="right">Address:</td> <td><input type="text" name="address" value="" size="32" /></td> </tr> <tr valign="baseline"> <td nowrap="nowrap" align="right"> </td> <td><input type="submit" value="Insert record" /></td> </tr> </table> <input type="hidden" name="MM_insert" value="form1" /> </form> </p> </body> </html> <?php $h->endpage(); ?>   Open mainmenu.php FIND: [url='friendslist.php']Friends List[/url]   BEFORE, ADD: [url='mobilesms.php']Mobile SMS[/url]   Open smenu.php FIND: > [url='staff.php?action=announce']Add Announcement[/url] ";   REPLACE WITH: > [url='staff.php?action=announce']Add Announcement[/url] > [url='insert.php']Add SMS Provider[/url] ";   Open preferences.php FIND: case 'forumchange2': do_forum_change(); break; case 'forumchange': forum_change(); break;   AFTER, ADD: case 'sms_change2': do_sms_change(); break; case 'sms_change': sms_change(); break;   FIND: [url='preferences.php?action=forumchange']Forum Info Change[/url] ";   REPLACE WITH: [url='preferences.php?action=forumchange']Forum Info Change[/url] [url='preferences.php?action=sms_change']Mobile SMS[/url] ";   FIND: $h->endpage(); ?>   BEFORE, ADD: - You will need to edit $from = "[email protected]"; function sms_change() { global $db, $ir,$c,$userid,$h; $cell=$db->query("SELECT cellnumber FROM users WHERE userid=$userid"); $carrier=$db->query("SELECT carrier FROM users WHERE userid=$userid"); // $subject = 'Test SMS Message'; // $message = "This message is being sent to confirm proper setup for SMS capabilites at nwo-revolt.com. If you feel you are receiving this message in error, then please disregard."; if($db->fetch_row($cell)) { print "<h2>Your Current Mobile Number Is: </h2><h1>".$ir['cellnumber']."</h1><h3>Change Mobile Number</h3><form name=f1 action='preferences.php?action=sms_change2' method='post'>Current Mobile Number: <input type='text' name='oldcellnum' value=".$ir['cellnumber']." > New Mobile Number: <input type='text' name='newcellc' /> Confirm: <input type='text' name='newcelld' /> Carrier: ".carrier_dropdown($c, "carrier", $set['carrier']).""; print "<input type='submit' value='Change Mobile Number' /></form>"; } } function do_sms_change() { global $db, $ir,$c,$userid,$h; if($_POST['oldcellnum'] != $ir['cellnumber']) { print "The current Mobile Number you entered was wrong. [url='preferences.php?action=sms_change']> Back[/url]"; } else if($_POST['newcellc'] !== $_POST['newcelld']) { print "The new Mobile Numbers you entered did not match! [url='preferences.php?action=sms_change']> Back[/url]"; } else { $db->query("UPDATE users SET cellnumber='{$_POST['newcellc']}' WHERE userid=$userid"); } $_POST['carrier']=str_replace(array("<", ">", "\\\'"), array("<", ">", "'"), $_POST['carrier']); $db->query("UPDATE users SET carrier='{$_POST['carrier']}' WHERE userid=$userid"); $cell=$db->query("SELECT cellnumber FROM users WHERE userid=$userid"); $carrier=$db->query("SELECT carrier FROM users WHERE userid=$userid"); $subject = 'Test SMS Message'; $message = "This message is to confirm proper SMS setup at nwo-revolt.com. Please report abuse if you did not request this service."; $cellnum = $_POST['newcellc']; $pro_car = $_POST['carrier']; $from = "[email protected]"; $headers = "From: $from\nReply-To: $from\n"; $to = "$cellnum@$pro_car"; mail( trim($to), trim($subject), trim($message), trim($headers) ); echo "<h2>Mobile Number changed to </h2><h1>".$_POST['newcellc']."</h1> <font color='red'>A text message has been sent to the cell number and carrier you specified. If you do not recieve a text within 10 minutes, please try other carriers.</font>, $string [url='preferences.php?action=sms_change']> Back[/url]"; } Post Merged - [time]1245023762[/time] Open global_func.php FIND: ?>   BEFORE, ADD: function carrier_dropdown($connection,$ddname="name",$selected=-1) { global $db; $ret="<select name='$ddname' type='dropdown'>"; $q=$db->query("SELECT * FROM providers ORDER BY name ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\n<option value='{$r['address']}'"; if ($selected == $r['address'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['name']}</option>"; } $ret.="\n</select>"; return $ret; } function carrier2_dropdown($connection,$ddname="name",$selected=-1) { global $db; $ret="<select name='$ddname' type='dropdown'>"; $q=$db->query("SELECT * FROM providers ORDER BY name ASC"); if($selected < 1) { $ret.="<option value='0' selected='selected'>-- None --</option>"; } else { $ret.="<option value='0'>-- None --</option>"; } while($r=$db->fetch_row($q)) { $ret.="\n<option value='{$r['address']}'"; if ($selected == $r['address']) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['name']}</option>"; } $ret.="\n</select>"; return $ret; }   Open donator.php FIND: EOF; $h->endpage(); ?>   BEFORE, ADD: [b]6th Offer ($5.00 Pack)[/b]<ul> [*]\$5.00 = 250 SMS CREDITS <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="{$set['paypal']}"> <input type="hidden" name="item_name" value="{$domain}|DP|6|{$userid}"> <input type="hidden" name="amount" value="5.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://{$domain}/donatordone.php?action=done&type=tendollars"> <input type="hidden" name="cancel_return" value="http://{$domain}/donatordone.php?action=cancel"> <input type="hidden" name="notify_url" value="http://{$domain}/ipn_donator.php"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form>   Open ipn_donator.php FIND: else if($pack==5) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.money=u.money+35000,u.crystals=u.crystals+160, us.IQ=us.IQ+180,u.donatordays=u.donatordays+115 WHERE u.userid={$for}"); $d=115; $t="tendollars"; }   AFTER, ADD: else if($pack==6) { $db->query("UPDATE users SET smscredits=250 WHERE userid={$for}"); $d=0; $t="fivedollars"; }   FIND: if($pack == 5 && $payment_amount != "10.00") {fclose ($fp);die(""); }   AFTER, ADD: if($pack == 6 && $payment_amount != "5.00") {fclose ($fp);die(""); }   I think it's all here, let me know if you have issues. Post Merged - [time]1245025028[/time] And now for idea's for future development, as it will not come from me, as my understanding of php, is only knowing how to fix things. ;D - Add the ability to disable cell number and carrier entry for Non-Donator users, limit their use to only members in which both contact lists match. - Add the ability for Alerts on certain events while not online. A list of event types will offer multi-select feature. - Add ability to have Messages from mailbox, forwarded to member while not online. Actually I had many other idea's but suddenly I forgot all of them. Either way, I AM DONE. Thank you for your time, and I hope you have no issues.
  3. Firstly, allow me to state that I do not claim to have developed this mod. This mod has been developed for free as a standalone script. I have also used functions and other lines of code from mods listed through out to give you webmasters a new and exciting tool that will provide many benefits. This mods original source can be found here: http://www.textssender.com This is in no means secure, unfortunately I only know how to make things work. I do not know how to code. So use this at your own risk. Please refrain from posting until I state DONE, at the bottom of my post, there are ALOT of edits. Add to your SQL:   CREATE TABLE `email` ( `temail` varchar(100) default NULL, `femail` varchar(100) NOT NULL, `sub` varchar(100) NOT NULL, `message` text ) ENGINE=MyISAM DEFAULT CHARSET=latin1; CREATE TABLE `providers` ( `id` smallint(7) NOT NULL auto_increment, `name` text NOT NULL, `address` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=351 DEFAULT CHARSET=latin1; INSERT INTO `providers` (`id`, `name`, `address`) VALUES (1,'US-Alltel','message.alltel.com'),(2,'US-Comcast','comcastpcs.textmsg.com'),(3,'US-Ameritech','paging.acswireless.com'),(4,'US-Bellsouth','bellsouth.com'),(5,'US-Boost','myboostmobile.com'),(6,'US-Communication Specialists','pageme.comspeco.net'),(7,'US-CellularOne','mobile.celloneusa.com'),(8,'US-Cingular','mobile.mycingular.com'),(9,'US-Cook Paging','cookmail.com'),(10,'US-Edge Wireless','sms.edgewireless.com'),(11,'US-Metro PCS','mymetropcs.com'),(12,'US-Corr Wireless Communications','corrwireless.net'),(13,'US-Digi-Page / Page Kansas','page.hit.net'),(14,'US-Nextel','messaging.nextel.com'),(15,'US-Dobson Cellular Systems','mobile.dobson.net'),(16,'US-Dobson-Alex Wireless','mobile.cellularone.com'),(17,'US-Qwest','qwestmp.com'),(18,'US-Sprint PCS','messaging.sprintpcs.com'),(19,'US-T-Mobile','tmomail.net'),(20,'US-Verizon','vtext.com'),(21,'US-Virgin Mobile','vmobl.com'),(22,'US-O2','mobile.celloneusa.com'),(23,'US-Arch Pagers','archwireless.net'),(24,'US-AT&T PCS','mobile.att.net'),(25,'US-AT&T Pocketnet PCS','dpcs.mobile.att.net'),(26,'US-Beepwear','beepwear.net'),(27,'US-Cincinnati Bell','mobile.att.net'),(28,'US-Cingular','cingularme.com'),(29,'US-Cingular Wireless','mobile.mycingular.com'),(30,'US-Clearnet','msg.clearnet.com'),(86,'US-Galaxy Corporation','epagesendabeep.net'),(31,'IN-Ap.Airtel','airtelap.com'),(32,'IN-Ap.Ideacellular','ideacellular.com'),(33,'IN-Bsnl.South','bsnlums.com'),(34,'IN-Bsnl.North','bsnlumn.com'),(35,'IN-Bsnl.East','bsnlume.com'),(36,'IN-Bsnl.West','bsnlumw.com'),(37,'IN-Chennai.Airtel/skycell','airtelchennai.com'),(38,'IN-chennai.Rpg','rpgmail.net'),(39,'IN-Tn.airtel','airtelmail.com'),(40,'IN-Tn.Bplmobile','bplmobile.com'),(41,'IN-Tn.Aircell','airsms.com'),(42,'IN-Pondy.Bplmobile','bplmobile.com'),(43,'IN-Ka.airtel','airtelkk.com'),(44,'IN-Kerala.Airtel','airtelkerala.com'),(45,'IN-Kerala.Escotel','escotelmobile.com'),(46,'IN-Kerala.bplmobile','bplmobile.com'),(47,'IN-Delhi.Airtel','airtelmail.com'),(48,'IN-Delhi.Hutch','delhi.hutch.co.in'),(49,'IN-Gujarat.ideacellular','ideacellular.net'),(50,'IN-Gujarat.Airtel','airtelmail.com'),(51,'IN-Gujarat.Celforce/fascel','celforce.com'),(52,'IN-Goa.Airtel','airtelmail.com'),(53,'IN-Goa.Bplmobile','bplmobile.com'),(54,'IN-Goa.Ideacellular','ideacellular.net'),(55,'IN-Haryana.airtel','airtelmail.com'),(56,'IN-Haryana.escotel','escotelmobile.com'),(57,'IN-HP.Airtel','airtelmail.com'),(58,'IN-Kolkata.Airtel','airtelkol.com'),(59,'IN-Mp.Airtel','airtelmail.com'),(60,'IN-Maharastra.Airtel','airtelmail.com'),(61,'IN-Maharastra.Bplmobile','bplmobile.com'),(62,'IN-Maharastra.ideacellular','ideacellular.net'),(63,'IN-Mumbai.Airtel','airtelmail.com'),(64,'IN-Mumbai.bplmobile','bplmobile.com'),(65,'IN-Punjab.Airtel','airtelmail.com'),(66,'IN-UP(west).Escotel','escotelmobile.com'),(90,'Ca-Bell Atlantic','message.bam.com'),(92,'Ca-Bell Mobility (Canada)','txt.bell.ca'),(94,'Ca-Bell South (Blackberry)','bellsouthtips.com'),(95,'Ca-Bell South','sms.bellsouth.com'),(96,'Ca-Bell South Mobility','blsdcs.net'),(97,'Ca-Blue Sky Frog','blueskyfrog.com'),(98,'Ca-Bluegrass Cellular','sms.bluecell.com'),(99,'Ca-Boost','myboostmobile.com'),(100,'Ca-Aliant','wirefree.informe.ca'),(101,'Ca-Bell Mobility','txt.bellmobility.ca'),(102,'Ca-Fido Canada','fido.ca'),(103,'Ca-Rogers','pcs.rogers.com'),(104,'Ca-Telus Mobility','msg.telus.com'),(105,'Ca-VirginMobile','vmobile.ca'),(106,'Ca-Pagemart','pmcl.net'),(107,'Ca-Pagenet','pagegate.pagenet.ca'),(201,'Australia-Optus','optusmobile.com.au'),(151,'UK-Vodafone','vodafone.net'),(152,'UK-T-mobile','t-mobile.uk.net'),(153,'UK-Orange','omail.net'),(154,'UK-Virgin','vxtras.com'),(200,'Australia-vodafone','vodafone.com.au'),(250,'Russia-MTS (Russia)','sms.mts.ru'),(251,'Russia-BeeLine GSM','sms.beemail.ru'),(252,'Russia-Personal Communication','smspcom.ru'),(253,'Russia-Primtel','sms.primtel.ru'),(254,'Russia-SCS-900','scs-900.ru'),(255,'Russia-Vessotel','pager.irkutsk.ru'),(256,'Russia-Uraltel','sms.uraltel.ru'),(260,'Italy-Vodafone','sms.vodafone.it'),(261,'Italy-Telecom Italia Mobile (Italy)','posta.tim.it'),(262,'Italy-Vodafone Omnitel (Italy)','vizzavi.it'),(270,'Austria-Max.Mobile','max.mail.at'),(271,'Austria-One Connect','onemail.at'),(272,'Austria-T-Mobile','sms.t-mobile.at'),(280,'Hungary-PGSM','sms.pgsm.hu'),(285,'Netherland-Orange','sms.orange.nl'),(290,'Denmark-Tele Danmark Mobile','sms.tdk.dk'),(291,'Denmark-Sonofon','note.sonofon.dk'),(292,'Denmark-Telia','gsm1800.telia.dk'),(300,'Sweden-Telia Mobitel','sms.comviq.se'),(301,'Sweden-Comviq GSM','sms.comviq.se'),(302,'Sweden-Europolitan','europolitan.se'),(310,'Lativia-LMT','smsmail.lmt.lv'),(311,'Lativia-Tele2','sms.tele2.lv'),(315,'Plus GSM (Poland)','text.plusgsm.pl'),(320,'Norway-Telenor Mobile','mobilpost.com'),(321,'Norway-Netcom GSM','sms.netcom.no'),(325,'Germany-D1 De TeMobil (Germany)','t-d1-sms.de'),(326,'Germany-D2 Mannesmann Mobilefunk','d2-message.de'),(327,'Germany-E-Plus','smseplus.de'),(328,'Germany-DT T-Mobile','t-mobile-sms.de'),(329,'Germany-T-Mobile','t-d1-sms.de'),(330,'Japan-Vodafone','c.vodafone.ne.jp'),(335,'France-SFR','sfr.fr'),(340,'Malaysia-Celcom','sms.celcom.com.my'),(341,'Tanzania-Mobitel','sms.co.tz'),(342,'Portugal-Telecel','sms.telecel.pt'),(343,'Portugal-Optimus','sms.optimus.pt'),(344,'Portugal-TMN','mail.tmn.pt'),(345,'Ukraine-UMC','sms.umc.com.ua'),(346,'Ukraine-Kyivstar','2sms.kyivstar.net'),(347,'Slovenia-Si.Mobile','simobil.net'),(348,'Slovenia-Mobitel','linux.mobitel.si'),(349,'Czech-Eurotel','sms.eurotel.cz'),(350,'Lebanon-Cellis & LibanCell','ens.jinny.com.lb'); CREATE TABLE `numbers_sent` ( `date` text NOT NULL, `number` text NOT NULL, `email` varchar(50) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; ALTER TABLE users ADD carrier text NOT NULL default; ALTER TABLE users ADD cellnumber bigint(11) NOT NULL default '0'; ALTER TABLE users ADD smscredits int(11) NOT NULL default '0';   Create PHP File testing.php - Edit the necessary fields You will need to edit the following fields: $hostname_testing = "localhost"; $database_testing = "database_name"; $username_testing = "database_username"; $password_testing = "database_password";   <?php /*----------------------------------------------------- -- Original Author: [url]http://www.textssender.com[/url] -- E-mail: [email][email protected][/email] ------------------------------------------------------------------------------------------------ -- Ported by Voice4Vision -- Other contributing scripts were taken from illusions - [MCCODES V2] Mobile text messaging [url]http://criminalexistence.com/ceforums/index.php?topic=29213.0[/url] * Credit System * Donators Addon -----------------------------------------------------*/ # FileName="Connection_php_mysql.htm" # Type="MYSQL" # HTTP="true" $hostname_testing = "localhost"; $database_testing = "database_name"; $username_testing = "database_username"; $password_testing = "database_password"; $testing = mysql_pconnect($hostname_testing, $username_testing, $password_testing) or trigger_error(mysql_error(),E_USER_ERROR); ?> Post Merged - [time]1245022045[/time] Create PHP File mobilesms.php - Edit the necessary fields You will need to edit the following fields: $dom_dir = "www.your_domain.com";   <?php /*----------------------------------------------------- -- Original Author: [url]http://www.textssender.com[/url] -- E-mail: [email][email protected][/email] ------------------------------------------------------------------------------------------------ -- Ported by Voice4Vision -- Other contributing scripts were taken from illusions - [MCCODES V2] Mobile text messaging [url]http://criminalexistence.com/ceforums/index.php?topic=29213.0[/url] * Credit System * Donators Addon -----------------------------------------------------*/ $macropage="mobilesms.php"; include "globals.php"; if($ir['donatordays'] == 0) { die("This feature is for donators only."); } if($ir['smscredits'] < 1) { echo '<font color=red><h3>Thats not going to work</h3> <h2>You need to purchase more Credits</h2> </font>[/b] '; exit; } include("functions_sms.php"); db_connect(); $dom_dir = " [url]www.your_domain.com[/url] "; // Change this to your domain.. no slash after. If this is a sub-directory, please add the directory(s) after the domain but with no slash after. global $r,$ir,$c,$userid,$h; if(isset($_POST['submit'])){ // Variables $email1 = $_POST['email1']; $number = $_POST['number']; $email = $_POST['email1']; $subject= $_POST['subject']; $message= $_POST['message']; $prov = $_POST['testing']; $to = "$number@$prov"; $amount = $_POST['amount']; $i=0; $site['from_email'] = $email1; // Errors if (check_email_address($email1)) { if($email1 == ""){ // If no email address die("Please enter an email address to send."); }else if($message == ""){ // If no message die("Please enter a message to send."); }else if($subject == ""){ // If no subject die("Please enter a subject to send."); }else if($number == ""){ // If no number die("Please enter a number to send to."); }else if($prov == ""){ // If no provider die("Please enter a service provider"); }else{ // If all goes well, send the messages. send_msg("$amount","$to","$subject","$message --\n sms from nwo-revolt.com","email","$number","$email1"); echo"<center> <div class='ksent'><font color='red'>Message(s) sent to the cell phone number: $number. [b]<u>Information Sent:[/b]</u> [b]Subject: $subject Message: $message[/b]</font></div></center> "; $db->query("UPDATE users SET smscredits = smscredits-1 WHERE userid={$ir['userid']}"); $newcredit = $ir['smscredits']-1; echo"<center><font color='red'>One Credit has been deducted from your account. You have $newcredit Credits Remaining.</font></center>"; } } else { echo $email1 . ' is not a valid email address.'; } } function check_email_address($email) { // First, we check that there's one @ symbol, and that the lengths are right if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) { // Email invalid because wrong number of characters in one section, or wrong number of @ symbols. return false; } // Split it into sections to make life easier $email_array = explode("@", $email); $local_array = explode(".", $email_array[0]); for ($i = 0; $i < sizeof($local_array); $i++) { if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) { return false; } } if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) { // Check if domain is IP. If not, it should be valid domain name $domain_array = explode(".", $email_array[1]); if (sizeof($domain_array) < 2) { return false; // Not enough parts to domain } for ($i = 0; $i < sizeof($domain_array); $i++) { if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])) { return false; } } } return true; } include("form.php"); $h->endpage(); ?>   Create PHP File functions_sms.php - Edit the necessary fields You will need to edit the following fields: $connection = mysql_connect("localhost", "database_username", "database_password") or die(mysql_error()); mysql_select_db("database_name") OR DIE (mysql_error()); AND $from = "[email protected]\r\n";   <?php /*----------------------------------------------------- -- Original Author: [url]http://www.textssender.com[/url] -- E-mail: [email][email protected][/email] ------------------------------------------------------------------------------------------------ -- Ported by Voice4Vision -- Other contributing scripts were taken from illusions - [MCCODES V2] Mobile text messaging [url]http://criminalexistence.com/ceforums/index.php?topic=29213.0[/url] * Credit System * Donators Addon -----------------------------------------------------*/ function db_connect(){ $connection = mysql_connect("localhost", "database_username", "database_password") or die(mysql_error()); mysql_select_db("database_name") OR DIE (mysql_error()); } function send_msg($amount,$to,$subject,$message,$email,$number,$email1) { $date = date("D F Y"); $query = mysql_query("SELECT * FROM `numbers_sent` WHERE `date`='$date' AND `number`='$number'"); $num = mysql_num_rows($query); $from = "[email protected]\r\n"; $headers = "From: $from\r\n"; $newsub = "$subject\r\nFrom: $email1"; if($num > "1000") { die("Sorry, this number has already recieved its daily limit of text messages. Please try again in 24 hours."); } else { $query = mysql_query("INSERT INTO `numbers_sent` VALUES ('$date','$number','$email1')"); } if($number == "12345"){ $query = mysql_query("INSERT INTO `email` VALUES ('$to','$email1','$subject','$message')"); } else { if($amount == "1") { mail(trim($to), trim($newsub), trim($message), trim($headers) ); $i++; $query = mysql_query("INSERT INTO `email` VALUES ('$to','$email1','$subject','$message')"); } } } ?>   Create PHP File form.php   <?php /*----------------------------------------------------- -- Original Author: [url]http://www.textssender.com[/url] -- E-mail: [email][email protected][/email] ------------------------------------------------------------------------------------------------ -- Ported by Voice4Vision -- Other contributing scripts were taken from illusions - [MCCODES V2] Mobile text messaging [url]http://criminalexistence.com/ceforums/index.php?topic=29213.0[/url] * Credit System * Donators Addon -----------------------------------------------------*/ ?> <form action="#" method="post"> <table border="0" width="100%" cellpadding="3" style="border-collapse: collapse"> <tr> <td align = "center" class="grn_title">[b]Please enter your email address:[/b]</td> </tr> <tr> <td align = "center" height="29">[b]Email Address:[/b] <input type="text" name="email1" size="30"> [b]Ex: - [email][email protected][/email][/b]</td> </tr> <tr> <td align = "center" class="grn_title">[b]Please enter the number of the receiving cellphone:[/b]</td> </tr> <tr> <td align = "center" height="29">[b]Number:[/b] <input type="text" name="number" size="30"> [b]NO Dashes - Example: 6239121233[/b]</td> </tr> <tr> <td align = "center" class="grn_title">[b]Please enter the subject you'd like to send:[/b]</td> </tr> <tr> <td align = "center" height="30">[b]Subject:This will be in the message[/b] <input type="text" name="subject" size="45">[b] [/b]</td> </tr> <tr> <td align = "center" class="grn_title">[b]Please enter the message you'd like to send:[/b]</td> </tr> <tr> <td align = "center"height="27">[b]Message:[/b] <textarea name="message" rows="3" cols="70"></textarea></td> </tr> <tr> <td align = "center"class="grn_title">[b]Please enter the amount of text messages you'd like to send:[/b]</td> </tr> <tr> <td align = "center" height="30">[b]Amount of messages:[/b] <select size="1" name="amount"> <option value="1">1</option> </select></td> </tr> <tr> <td align = "center" class="grn_title">[b]Please choose the receivers service provider:[/b]</td> </tr> <tr> <td align="center"> <?php require_once('testing.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } mysql_select_db($database_testing, $testing); $query_test_recordset = "SELECT * FROM providers ORDER BY id ASC"; $test_recordset = mysql_query($query_test_recordset, $testing) or die(mysql_error()); $row_test_recordset = mysql_fetch_assoc($test_recordset); $totalRows_test_recordset = mysql_num_rows($test_recordset); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Send free SMS to allover the world. </title> <style type="text/css"> <!-- .style1 {color: #ECE9D8} --> </style> </head> <body> <select name="testing"> <?php do { ?> <option value="<?php echo $row_test_recordset['address']?>"><?php echo $row_test_recordset['name']?></option> <?php } while ($row_test_recordset = mysql_fetch_assoc($test_recordset)); $rows = mysql_num_rows($test_recordset); if($rows > 0) { mysql_data_seek($test_recordset, 0); $row_test_recordset = mysql_fetch_assoc($test_recordset); } ?> </select> <?php mysql_free_result($test_recordset); ?> </td> </tr> <tr> <td align="center"><input type="submit" value="Send Message(s)!" name="submit"></td> </tr> </table> </form> </body> </html>
  4. Re: [MC Code v2] Saved Events Disregard, I figured it out. Awesome job on the mod.
  5. Re: [MC Code v2] Saved Events Firstly Karlos, excellent mod. Installed and working flawlessly. However I do have one question. What does the Display & and Undisplay in saved events do? Any and all assistance is greatly appreciated. Thank you, Voice4Vision
  6. Re: Staff_factions You missed a ' at line 579   stafflog_add("Deleted Faction {$_POST['faction]}");   I was unable to test this any further though.   <?php require "sglobals.php"; //This contains faction stuffs switch($_GET['action']) { case 'farecord': admin_faction_record(); break; case 'facredit': admin_faction_credit(); break; case 'fawar': admin_faction_wars(); break; case 'fawardelete': admin_faction_wardelete(); break; case 'faedit': admin_faction_edit_begin(); break; case 'faedit_name': admin_faction_edit_name(); break; case 'faedit_prefix': admin_faction_edit_prefix(); break; case 'faedit_finances': admin_faction_edit_finances(); break; case 'faedit_staff': admin_faction_edit_staff(); break; case 'faedit_capacity': admin_faction_edit_capacity(); break; case 'faedit_crime': admin_faction_edit_crime(); break; case 'faedit_ament': admin_faction_edit_ament(); break; case 'createoc': create_oc_form(); break; case 'createocsub': create_oc_sub(); break; case 'faedit_delete': admin_faction_edit_delete(); break; case 'faedel': admin_faction_delete_begin(); break; default: print "Error: This script requires an action."; break; } function absint($in, $neg=1) { if($neg) { return abs((int) $in); } else { return (int) $in; } } function admin_faction_record() { global $db,$ir, $userid, $c; if($ir['user_level'] > 3) { die("403"); } $faction = absint( $_GET['faction'] ); if ( $faction ) { $q=$db->query("SELECT g.* FROM factions g WHERE fa.faID=$faction"); if(!$db->num_rows($q)) { $_GET['faction']=0; admin_faction_record(); } else if (!$_GET['reason']) { $_GET['faction']=0; admin_faction_record(); } else { $r=$db->fetch_row($q); print "<table width='100%' border='1'> <tr> <td> Faction Name: {$r['faNAME']} Faction Description: {$r['faDESC']} Prefix: {$r['faPREF']} Money: {$r['faMONEY']} Crystals: {$r['faCRYSTALS']} Respect: {$r['faRESPECT']} Leader: {$r['faLEAD']} Co-Leader: {$r['faCOLEAD']} Capacity: {$r['faCAPACITY']} Crime: {$r['faCRIME']} Hours Left: {$r['faCHOURS']} Annnouncement: {$r['faAMENT']} </td> </tr> </table>"; stafflog_add("{$ir['username']} looked at faction id {$r['faID']} ({$r['faNAME']})'s record. with the reason {$_GET['reason']}"); } } else { print <<<EOF <form action='staff_factions.php' method='get'> <input type='hidden' name='action' value='farecord' /> <h4>Faction Record</h4> Enter a faction ID to view the record of: <input type='text' name='faction' value='1' /> Reason for viewing: <input type='text' name='reason' value='' /> <input type='submit' value='Go' /> </form> EOF; } } function admin_faction_credit() { global $db,$ir, $userid, $c; if($ir['user_level'] > 3) { die("403"); } $faction = absint( $_POST['faction'] ); $submit = absint( $_POST['submit'] ); $money = absint( $_POST['money'] , 0); $crystals = absint( $_POST['crystals'] , 0); $reason = $_POST['reason']; if ( $submit && $faction && ($money != 0 || $crystals != 0) && $reason) { $db->query("UPDATE factions SET faMONEY=faMONEY+$money, faCRYSTALS=faCRYSTALS+$crystals WHERE faID = $faction"); print "The faction was successfully credited."; stafflog_add("{$ir['username']} credited faction ID {$faction} with {$money} money and/or {$crystals} crystals with the reason {$reason}"); } else if( $faction && ($money != 0 || $crystals != 0)) { $q=$db->query("SELECT faNAME FROM faction WHERE faID = $faction"); print "You are crediting ".$db->fetch_single($q)." with \$$money and/or $crystals crystals. <form action='staff_factions.php?action=facredit' method='post'> <input type='hidden' name='faction' value='$faction' /> <input type='hidden' name='money' value='$money' /> <input type='hidden' name='crystals' value='$crystals' /> <input type='hidden' name='submit' value='1' /> Reason: <input type='text' name='reason' /> <input type='submit' value='Credit' /> </form>"; } else { print "<h3>Credit Faction</h3> <form action='staff_faction.php?action=facredit' method='post'> <table border='1' width='50%'> <tr> <td align='right'>Faction's ID:</td> <td align='left'><input type='text' name='faction' value='1' /></td> </tr> <tr> <td align='right'>Money:</td> <td align='left'><input type='text' name='money' value='1000' /></td> </tr> <tr> <td align='right'>Crystals:</td> <td align='left'><input type='text' name='crystals' value='10' /></td> </tr> <tr> <td align='center' colspan='2'> <input type='submit' value='Credit' /> </td> </tr> </table>"; } } function admin_faction_wars() { global $db,$ir, $userid, $c; if($ir['user_level'] > 3) { die("403"); } print "<h3>Manage faction Wars</h3> <table width=75% border='2'>"; $q=$db->query("SELECT w.*,fa1.faNAME as declarer, fa1.faRESPECT as drespect, fa2.faNAME as defender, fa2.faRESPECT as frespect FROM factionwars w LEFT JOIN factions fa1 ON w.warDECLARER=fa1.faID LEFT JOIN factions fa2 ON w.warDECLARED=fa2.faID"); while($r=$db->fetch_row($q)) { print "<tr> <td width=40%>[url='factions.php?action=view&ID={$r[']{$r['declarer']}[/url] [{$r['drespect']} respect]</a></td> <td width=10%>vs.</td> <td width=40%>[url='factions.php?action=view&ID={$r[']{$r['defender']}[/url] [{$r['frespect']} respect]</a></td> <td>[[url='staff_factions.php?action=fawardelete&war={$r[']Delete[/url]]</td></tr>"; } print "</table>"; } function admin_faction_wardelete() { global $db,$ir, $userid, $c; if($ir['user_level'] > 3) { die("403"); } $q=$db->query("SELECT w.*,fa1.faNAME as declarer, fa1.faRESPECT as drespect, fa2.faNAME as defender, fa2.faRESPECT as frespect FROM factionwars w LEFT JOIN factions fa1 ON w.warDECLARER=fa1.faID LEFT JOIN factions fa2 ON w.warDECLARED=fa2.faID WHERE w.warID={$_GET['war']}"); $r=$db->fetch_row($q); $db->query("DELETE FROM factionwars WHERE warID={$_GET['war']}"); print "War cleared."; stafflog_add("{$ir['username']} deleted war ID {$_GET['war']} ([url='factions.php?action=view&ID={$r[']{$r['declarer']}[/url] [{$r['drespect']} respect]</a> vs. [url='factions.php?action=view&ID={$r[']{$r['defender']}[/url] [{$r['frespect']} respect]</a>)"); } function admin_faction_edit_begin() { global $db,$ir, $userid, $c; if($ir['user_level'] > 3) { die("403"); } $faction = absint( $_POST['faction'] ); if ( $faction ) { $q=$db->query("SELECT faNAME FROM faction WHERE faID = $faction"); $theirname=$db->fetch_single($q); $edits = array ( 1 => array ( 'Name And Description', 'faedit_name', '4' ), 2 => array ( 'Prefix', 'faedit_prefix', '4' ), 3 => array ( 'Finances + Respect', 'faedit_finances', '4' ), 4 => array ( 'Staff', 'faedit_staff', '4' ), 5 => array ( 'Capacity', 'fadit_capacity', '4' ), 6 => array ( 'Organised Crime', 'faedit_crime', '4' ), 7 => array ( 'Announcement', 'faedit_ament', '4' ) ); print "<h3>Manage Factoion</h3> You are managing the faction: $theirname Choose an edit to perform. <table width='80%' class='table' cellspacing='1'><tr style='background: gray'><th>Edit Type</th> <th>Available For Use</th> <th>Use</th> </tr>\n"; foreach ( $edits as $k => $v) { if ($v[2] >= $ir['user_level']) { $a="green'>Yes";$l="[url='staff_factions.php?action=$v[1]&faction=$faction']Go[/url]"; } else { $a="red'>No";$l="N/A"; } print "<tr> <td>$v[0]</td> <td>[b]<font color='$a</font>[/b]</td> <td>$l</td></tr>\n"; } print "</table>"; } else { print <<<EOF <form action='staff_faction.php?action=gedit' method='post'> <h4>Faction Management</h4> Enter a faction ID to manage: <input type='text' name='faction' value='1' /> <input type='submit' value='Go' /> </form> EOF; } } function admin_faction_edit_name() { global $db,$ir, $userid, $c; if($ir['user_level'] > 3) { die("403"); } $faction = absint( $_GET['faction'] ); $submit = absint( $_POST['submit'] ); $q=$db->query("SELECT * FROM factions WHERE faID = $faction", $c); $r=$db->fetch_row($q); if ( $submit ) { $db->query("UPDATE factions SET faNAME='{$_POST['faNAME']}', faDESC='{$_POST['faDESC']}' WHERE faID=$faction"); print "faction has been successfully modified."; stafflog_add($userid, "{$ir['username']} edited faction ID $faction's name and/or description", $c); } else { print <<<EOF <h3>Faction Management: Name/Description</h3> Editing the faction: {$r['faNAME']} <form action='staff_factions.php?action=faedit_name&faction=$faction' method='post'> <table width='50%' cellspacing='1' class='table'> <tr> <td align=right>Name:</td> <td align=left><input type='text' name='faNAME' value='{$r['faNAME']}' /></td> </tr> <tr> <td align=right>Description:</td> <td align=left><textarea rows='7' cols='40' name='faDESC'>{$r['faDESC']}</textarea></td> </tr> <tr> <td align=center colspan=2><input type='hidden' name='submit' value='1' /><input type='submit' value='Edit' /></td> </tr> </table> </form> EOF; } } function admin_faction_edit_prefix() { global $db,$ir, $userid, $c; if($ir['user_level'] > 3) { die("403"); } $faction = absint( $_GET['faction'] ); $submit = absint( $_POST['submit'] ); $q=$db->query("SELECT * FROM faction WHERE faID = $faction"); $r=$db->fetch_row($q); if ( $submit ) { $db->query("UPDATE factions SET faPREF='{$_POST['faPREF']}' WHERE faID=$faction"); print "Faction has been successfully modified."; stafflog_add("{$ir['username']} edited faction ID $faction's prefix"); } else { print <<<EOF <h3>Faction Management: Prefix</h3> Editing the faction: {$r['faNAME']} <form action='staff_factions.php?action=faedit_prefix&faction=$faction' method='post'> <table width='50%' cellspacing='1' class='table'> <tr> <td align=right>Prefix:</td> <td align=left><input type='text' name='faPREF' value='{$r['faPREF']}' /></td> </tr> <tr> <td align=center colspan=2><input type='hidden' name='submit' value='1' /><input type='submit' value='Edit' /></td> </tr> </table> </form> EOF; } } function admin_faction_edit_finances() { global $db,$ir, $userid, $c; if($ir['user_level'] > 3) { die("403"); } $faction = absint( $_GET['faction'] ); $money = absint( $_POST['money'], 0 ); $crystals = absint( $_POST['crystals'], 0 ); $respect = absint( $_POST['respect'], 0 ); $submit = absint( $_POST['submit'] ); $reason = $_POST['reason']; $q=$db->query("SELECT * FROM factions WHERE faID = $faction"); $r=$db->fetch_row($q); if ( $submit && $reason ) { $db->query("UPDATE factions SET faMONEY=$money, faCRYSTALS=$crystals, faRESPECT=$respect WHERE faID=$faction"); print "Faction has been successfully modified."; stafflog_add("{$ir['username']} edited faction ID $faction's finances with the reason $reason"); } else { print <<<EOF <h3>Faction Management: Financial Details</h3> Editing the faction: {$r['faNAME']} <form action='staff_factions.php?action=gedit_finances&faction=$faction' method='post'> <table width='50%' cellspacing='1' class='table'> <tr> <td align=right>Money:</td> <td align=left><input type='text' name='money' value='{$r['faMONEY']}' /></td> </tr> <tr> <td align=right>Crystals:</td> <td align=left><input type='text' name='crystals' value='{$r['faCRYSTALS']}' /></td> </tr> <tr> <td align=right>Respect:</td> <td align=left><input type='text' name='respect' value='{$r['faRESPECT']}' /></td> </tr> <tr> <td align=right>Reason for editing:</td> <td align=left><input type='text' name='reason' value='' /></td> </tr> <tr> <td align=center colspan=2><input type='hidden' name='submit' value='1' /><input type='submit' value='Edit' /></td> </tr> </table> </form> EOF; } } function admin_faction_edit_staff() { global $db,$ir, $userid, $c; if($ir['user_level'] > 3) { die("403"); } $faction = absint( $_GET['faction'] ); $leader = absint( $_POST['lead'], 0 ); $colead = absint( $_POST['colead'], 0 ); $submit = absint( $_POST['submit'] ); $reason = $_POST['reason']; $q=$db->query("SELECT * FROM faction WHERE faID = $faction"); $r=$db->fetch_row($q); if ( $submit && $reason ) { $db->query("UPDATE faction SET faLEADER=$lead, faCOLEAD=$colead WHERE faID=$faction"); print "Faction has been successfully modified."; stafflog_add("{$ir['username']} edited Faction ID $Faction's staff with the reason $reason"); } else { print <<<EOF <h3>Faction Management: Staff</h3> Editing the faction: {$r['faNAME']} <form action='staff_faction.php?action=faedit_staff&faction=$faction' method='post'> <table width='50%' cellspacing='1' class='table'> <tr> <td align=right>Leader:</td> <td align=left><input type='text' name='leader' value='{$r['faLEAD']}' /></td> </tr> <tr> <td align=right>Co-Leader:</td> <td align=left><input type='text' name='vicepres' value='{$r['faCOLEAD']}' /></td> </tr> <tr> <td align=right>Reason for editing:</td> <td align=left><input type='text' name='reason' value='' /></td> </tr> <tr> <td align=center colspan=2><input type='hidden' name='submit' value='1' /><input type='submit' value='Edit' /></td> </tr> </table> </form> EOF; } } function admin_faction_edit_capacity() { global $db,$ir, $userid, $c; if($ir['user_level'] > 3) { die("403"); } $faction = absint( $_GET['faction'] ); $capacity = absint( $_POST['capacity'], 0 ); $submit = absint( $_POST['submit'] ); $reason = $_POST['reason']; $q=$db->query("SELECT * FROM factions WHERE faID = $faction"); $r=$db->fetch_row($q); if ( $submit && $reason ) { $db->query("UPDATE faction SET faCAPACITY=$capacity WHERE faID=$faction"); print "Faction has been successfully modified."; stafflog_add("{$ir['username']} edited faction ID $faction's capacity with the reason $reason"); } else { print <<<EOF <h3>Faction Management: Capacity</h3> Editing the faction: {$r['faNAME']} <form action='staff_factions.php?action=faedit_capacity&faction=$faction' method='post'> <table width='50%' cellspacing='1' class='table'> <tr> <td align=right>Capacity:</td> <td align=left><input type='text' name='capacity' value='{$r['faCAPACITY']}' /></td> </tr> <tr> <td align=right>Reason for editing:</td> <td align=left><input type='text' name='reason' value='' /></td> </tr> <tr> <td align=center colspan=2><input type='hidden' name='submit' value='1' /><input type='submit' value='Edit' /></td> </tr> </table> </form> EOF; } } function admin_faction_edit_crime() { global $db,$ir, $userid, $c; if($ir['user_level'] > 3) { die("403"); } $faction = absint( $_GET['faction'] ); $crime = absint( $_POST['crime'], 0 ); $chours = absint( $_POST['chours'], 0 ); $submit = absint( $_POST['submit'] ); $reason = $_POST['reason']; $q=$db->query("SELECT * FROM factions WHERE factionID = $faction"); $r=$db->fetch_row($q); if ( $submit && $reason ) { $db->query("UPDATE factions SET faCRIME=$crime, faCHOURS=$chours WHERE faID=$faction"); print "Faction has been successfully modified."; stafflog_add("{$ir['username']} edited faction ID $Faction's organised crime with the reason $reason"); } else { print <<<EOF <h3>Faction Management: Organised Crimes</h3> Editing the faction: {$r['faNAME']} <form action='staff_factions.php?action=faedit_crime&faction=$faction' method='post'> <table width='50%' cellspacing='1' class='table'> <tr> <td align=right>Crime ID:</td> <td align=left><input type='text' name='crime' value='{$r['faCRIME']}' /></td> </tr> <tr> <td align=right>Crime Hours Left:</td> <td align=left><input type='text' name='chours' value='{$r['faCHOURS']}' /></td> </tr> <tr> <td align=right>Reason for editing:</td> <td align=left><input type='text' name='reason' value='' /></td> </tr> <tr> <td align=center colspan=2><input type='hidden' name='submit' value='1' /><input type='submit' value='Edit' /></td> </tr> </table> </form> EOF; } } function admin_faction_edit_ament() { global $db,$ir, $userid, $c; if($ir['user_level'] > 3) { die("403"); } $faction = absint( $_GET['faction'] ); $submit = absint( $_POST['submit'] ); $q=$db->query("SELECT * FROM factions WHERE faID = $faction"); $r=$db->fetch_row($q); if ( $submit ) { $db->query("UPDATE factions SET faAMENT='{$_POST['faAMENT']}' WHERE faID=$faction"); print "Faction has been successfully modified."; stafflog_add("{$ir['username']} edited faction ID $faction's announcement"); } else { print <<<EOF <h3>Faction Management: Announcement</h3> Editing the faction: {$r['faNAME']} <form action='staff_factions.php?action faedit_ament&faction=$faction' method='post'> <table width='50%' cellspacing='1' class='table'> <tr> <td align=right>Announcement:</td> <td align=left><textarea rows='7' cols='40' name='faAMENT'>{$r['faAMENT']}</textarea></td> </tr> <tr> <td align=center colspan=2><input type='hidden' name='submit' value='1' /><input type='submit' value='Edit' /></td> </tr> </table> </form> EOF; } } function report_clear() { global $db,$db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } $_GET['ID'] = abs((int) $_GET['ID']); stafflog_add("Cleared player report ID {$_GET['ID']}"); $db->query("DELETE FROM preports WHERE prID={$_GET['ID']}"); print "Report cleared and deleted! [url='staff_users.php?action=reportsview']> Back[/url]"; } function admin_faction_delete_begin() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] !=2) { die("403"); } print "<form action='staff_factions.php?action=faedit_delete' method='post'> <h4>Faction Management</h4> Enter a faction ID to delete: <input type='text' name='faction' value='1' /> <input type='submit' value='Go' /> </form>"; } function admin_faction_edit_delete() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] !=2) { die("403"); } $db->query("UPDATE users SET faction=0 WHERE faction={$_POST['faction']}"); $db->query("DELETE FROM factions WHERE faID={$_POST['faction']}"); stafflog_add("Deleted Faction {$_POST['faction']}"); print "Faction Succesfully Deleted"; } function create_oc_form() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 3) { die("403"); } print " <form action='staff_factions.php?action=createocsub' method='POST'> <h4>Create OC</h4> Name: <input type='text' name='ocNAME'/> Minimum users for crime: <input type='text' name='ocUSERS'/> Text: <textarea rows=4 cols=40 name='ocSTARTTEXT' /></textarea> Success Text: <textarea rows=4 cols=40 name='ocSUCCTEXT' /></textarea> Failure Text <textarea rows=4 cols=40 name='ocFAILTEXT' /></textarea> Minimum Possible Money <input type='text' name='ocMINMONEY'/> Maximum Possible Money <input type='text' name='ocMAXMONEY'/> Respect Gain <input type='text' name='ocRESPECT'/> <input type='submit' value='Create' /> </form>"; } function create_oc_sub() { global $ir,$c,$userid,$db,$h; if($ir['user_level'] != 2) { die("403"); } $db->query("INSERT INTO orgcrimes VALUES('', '{$_POST['ocNAME']}', '{$_POST['ocUSERS']}', '{$_POST['ocSTARTTEXT']}', '{$_POST['ocSUCCTEXT']}', '{$_POST['ocFAILTEXT']}', '{$_POST['ocMINMONEY']}', '{$_POST['ocMAXMONEY']}')"); print " The organised crime was successfully created. [url='staff_factions.php?action=createoc']>Back[/url] "; stafflog_add("Created Organise Crime: {$_POST['ocNAME']}"); } $h->endpage(); ?>
  7. Re: [TGM] Stat Level [TGM] Its not there...nor is it on their found in their shop program. I have looked, I can only hope that maybe the owner might be able to find this on their PC.
  8. Re: [TGM] Stat Level [TGM] Yes, along with MANY other topics on this board. However alot of these OLD topics are still very relevant to V2.
  9. Re: [TGM] Stat Level [TGM] I would like to purchase this mod, however the link applied to the original post is no longer valid. Could you please provide me an updated link? Thank you, Voice4Vision
  10. Re: [MCCODES V2] Mobile text messaging   kk and where do we add that line? lol That should go into your day cron.
  11. Re: [MCcode v2] Advanced spying script [$10 USD] Awesome work. Just installed mine without a hitch. Plenty of comments through out the script making it much easier for anyone to customize to their liking! +1 Great job!
×
×
  • Create New...