
sever104
Members-
Posts
24 -
Joined
-
Last visited
Never
sever104's Achievements
Newbie (1/14)
0
Reputation
-
Re: Email change for preferences.php I no longer get an error by when I click Email Address Change it doesn't lead to anything just basicly refreshs the page!
-
Re: Email change for preferences.php <?php /*----------------------------------------------------- -- Mono Country v1.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.php -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); switch($_GET['action']) { case 'sexchange2': do_sex_change(); break; case 'sexchange': conf_sex_change(); break; case 'passchange2': do_pass_change(); break; case 'passchange': pass_change(); break; case 'namechange2': do_name_change(); break; case 'namechange': name_change(); break; case 'picchange2': do_pic_change(); break; case 'picchange': pic_change(); break; default: prefs_home(); break; } function prefs_home() { global $ir,$c,$userid,$h; print "<h3>Preferences</h3> [url='preferences.php?action=sexchange']Sex Change[/url] [url='preferences.php?action=passchange']Password Change[/url] [url='preferences.php?action=namechange']Name Change[/url] [url='preferences.php?action=emailchange']Email Address Change[/url] [url='preferences.php?action=picchange']Display Pic Change[/url] "; } function conf_sex_change() { global $ir,$c,$userid,$h; if($ir['gender'] == "Male") { $g="Female"; } else { $g="Male"; } print "Are you sure you want to become a $g? [url='preferences.php?action=sexchange2']Yes[/url] | [url='preferences.php']No[/url]"; } function do_sex_change() { global $ir,$c,$userid,$h; if($ir['gender'] == "Male") { $g="Female"; } else { $g="Male"; } mysql_query("UPDATE users SET gender='$g' WHERE userid=$userid",$c); print "Success, you are now $g! [url='preferences.php']Back[/url]"; } function pass_change() { global $ir,$c,$userid,$h; print "<h3>Password Change</h3><form action='preferences.php?action=passchange2' method='post'>Current Password: <input type='password' name='oldpw' /> New Password: <input type='password' name='newpw' /> Confirm: <input type='password' name='newpw2' /> <input type='submit' value='Change PW' /></form>"; } function do_pass_change() { global $ir,$c,$userid,$h; if(md5($_POST['oldpw']) != $ir['userpass']) { print "The current password you entered was wrong. [url='preferences.php?action=passchange']> Back[/url]"; } else if($_POST['newpw'] !== $_POST['newpw2']) { print "The new passwords you entered did not match! [url='preferences.php?action=passchange']> Back[/url]"; } else { mysql_query("UPDATE users SET userpass=md5('{$_POST['newpw']}') WHERE userid=$userid",$c); print "Password changed!"; } } function name_change() { global $ir,$c,$userid,$h; print "<h3>Name Change</h3> <font size=3 color=yellow> If Your Username Contains Special Characters Then Your Account Will Be Fedded For 25 Days! Anything That Is Not On The Standard UK Keyboard [b]- ™ ® ë ø ç -[/b] etc, Is Not Permitted! (NOTE: Please DO NOT use ' in your name either, thank you.)</font> Please note that you still use the same name to login, this procedure simply changes the name that is displayed.<form action='preferences.php?action=namechange2' method='post'> New Name: <input type='text' name='newname' /> <input type='submit' value='Change Name' /></form>"; } function do_name_change() { global $ir,$c,$userid,$h; if($_POST['newname'] == "") { print "You did not enter a new name. [url='preferences.php?action=namechange']> Back[/url]"; } else { $_POST['newname']=str_replace(array("<", ">", "\\\'"), array("<", ">", "'"), $_POST['newname']); mysql_query("UPDATE users SET username='{$_POST['newname']}' WHERE userid=$userid",$c); print "Username changed!"; } } function pic_change() { global $ir,$c,$userid,$h; print "<h3>Pic Change</h3> Please note that this must be externally hosted, [url='http://imageshack.us']ImageShack[/url] is our recommendation. Any images that are not 150x150 will be automatically resized <form action='preferences.php?action=picchange2' method='post'> New Pic: <input type='text' name='newpic' value='{$ir['display_pic']}' /> <input type='submit' value='Change Name' /></form>"; } function do_pic_change() { global $ir,$c,$userid,$h; if($_POST['newpic'] == "") { print "You did not enter a new pic. [url='preferences.php?action=picchange']> Back[/url]"; } else { $_POST['newpic']=str_replace('\\\'',''', $_POST['newpic']); mysql_query("UPDATE users SET display_pic='{$_POST['newpic']}' WHERE userid=$userid",$c); print "Pic changed!"; } function email_change() { global $ir,$c,$userid,$h; print "<h3>Email Change</h3> <form action='preferences.php?action=emailchange2' method='post'> New Email adress: <input type='text' name='newemail' /> <input type='submit' value='Change Email' /></form>"; } function do_email_change() { global $ir,$c,$userid,$h; if($_POST['newname'] == "") { print "You did not enter a new email. [url='preferences.php?action=emailchange']> Back[/url]"; } else { $_POST['email']=str_replace(array("<", ">", "\\\'"), array("<", ">", "'"), $_POST['newemail']); mysql_query("UPDATE users SET email='{$_POST['email']}' WHERE userid=$userid",$c); print "Email changed!"; } } $h->endpage(); ?> I get this error: Parse error: syntax error, unexpected $end in /home/ie3/public_html/public_html/preferences.php on line 190 Could you post full preferences.php ;)
-
Anyone got a email change script for preferences.php? I would be pleased if you can post it here. +REP if you do ;)
-
Re: Free New City Mod For v1 and lite Firstly open notepad, then insert this code below into the notepad save this code below as newcity.php then upload it to your server! Then open admin.php on your server Find: [[url='admin.php?action=editnews']Edit Newspaper[/url]] below that put this code: [[url='newcity.php']City Editor[/url] <?php /** * @author ShannenName aka ReckleesCounty * Edited by sever104 * do not remove this message */ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $bm=money_formatter($ir['l100bank']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); if ($ir['user_level'] != 2) { print "You sneak, get out of here!"; $h->endpage(); exit; } $posta = mysql_real_escape_string(print_r($_POST, 1), $c); $geta = mysql_real_escape_string(print_r($_GET, 1), $c); mysql_query("INSERT INTO adminlogs VALUES('', $userid, '$posta', '$geta', unix_timestamp() )", $c); switch ($_GET['action']) { case "delcity": del_city(); break; case "delcitysub": del_city_sub(); break; case 'newcity': new_city(); break; case 'newcitysub': new_city_sub(); break; case 'editcity': edit_city(); break; case 'editcitysub': edit_city_sub(); break; case 'delcity': del_city(); break; case 'delcitysub': del_city_sub(); break; } print "</br >[[url='newcity.php?action=newcity']Create New city[/url]] [[url='newcity.php?action=editcity']Edit City[/url]] [[url='newcity.php?action=delcity']Delete City[/url]] City List <table> <tr><td>"; $q=mysql_query("SELECT * FROM cities ",$c); print"<table width=95% bgcolor=#ff9900 align=center border=1 cellspacing=0><tr style='background:#ff6633'><th>city id no.</th><th>Name</th><th>Description</th><th>Min Level</th></tr>"; while($r=mysql_fetch_array($q)) { print "<tr><td>{$r['cityid']}</td><td>{$r['cityname']}</td><td>{$r['citydesc']}</td><td>{$r['cityminlevel']}</td></tr>"; } print "</table>"; function new_city() { global $ir, $c, $h, $userid; print "<h3>Create New City</h3> This will create a new city. <form action='newcity.php?action=newcitysub' method='post'> City name: <input type='text' name='cityname' /> City desc: <input type='text' name='citydesc' /> City min level <input type='text' name='cityminlevel' /> <input type='submit' value='Create New city' /></form>"; } function new_city_sub() { global $ir, $c, $h, $userid; $_POST['cityminlevel'] = abs((int)$_POST['cityminlevel']); mysql_query("INSERT INTO cities (cityname, citydesc, cityminlevel) VALUES ('{$_POST['cityname']}', '{$_POST['citydesc']}', '{$_POST['cityminlevel']}');", $c); print "[url='admin.php']> Back[/url]"; } function edit_city() { global $ir, $c, $h, $userid, $cityid; print "<h3>Edit City</h3> This will edit a city. <form action='newcity.php?action=editcitysub' method='post'> City City id: <input type='text' name='cityid' /> City Name EXACTLY as it appears: <input type='text' name='cityname' /> City desc: <input type='text' name='citydesc' /> City min level <input type='text' name='cityminlevel' /> <input type='submit' value='Edit city' /></form>"; } function edit_city_sub() { global $ir,$c,$h,$userid; mysql_query("UPDATE cities SET cityid='{$_POST['cityid']}',cityname='{$_POST['cityname']}', citydesc='{$_POST['citydesc']}', cityminlevel='{$_POST['cityminlevel']}' WHERE cityid='{$_POST['cityid']}'",$c); print "City edited..."; } function del_city() { global $ir, $c, $h, $userid, $cityid; print "<h3>Delete City</h3> This will delete a city. <form action='newcity.php?action=delcitysub' method='post'> City id: <input type='text' name='cityid' /> <input type='submit' value='Delete city' /></form>"; } function del_city_sub() { global $ir,$c,$h,$userid; mysql_query("DELETE FROM cities WHERE cityid='{$_POST['cityid']}'",$c); print "City deleted"; } $h->endpage(); ?> There your done! Credit to RecklessCounty, Snatchy and Decepti0n!
-
<?php /*----------------------------------------------------- -- Mono Country v1.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.php -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); $_GET['u'] = abs((int) $_GET['u']); if(!$_GET['u']) { print "Invalid use of file"; } else { $q=mysql_query("SELECT u.*,us.*,c.*,h.*,g.*,f.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid WHERE u.userid={$_GET['u']}",$c); if(mysql_num_rows($q) == 0) { print "Sorry, we could not find a user with that ID, check your source."; } else { $r=mysql_fetch_array($q); if($r['user_level'] == 1) { $userl="Member"; } else if($r['user_level'] == 2) { $userl="Admin"; } else if ($r['user_level'] == 3) { $userl="Secretary"; } else if($r['user_level'] == 0) { $userl="NPC"; } else if($r['user_level']==4) { $userl="IRC Mod"; } else {$userl="Assistant"; } $lon=date('F j, Y g:i:s a',$r['laston']); $sup=date('F j, Y g:i:s a',$r['signedup']); $ts=$r['strength']+$r['agility']+$r['guard']+$r['labour']+$r['IQ']; $d=""; $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } if($r['donatordays']) { $r['username'] = "{$r['username']}";$d="[img=donator.gif]"; } if($r['laston'] >= time()-15*60) { $on="[b]Online[/b]"; } else { $on="[b]Offline[/b]"; } print "Profile for {$r['username']} </pre> <table width="75%">General InfoFinancial Info Display PicName: {$r['username']} [{$r['userid']}] $d User Level: $userl Duties: {$r['duties']} Gender: {$r['gender']} Signed Up: $sup Last Active: $lon Last Action: $la $unit ago Online: $on Days Old: {$r['daysold']} Location: {$r['cityname']} Money: \${$r['money']} Crystals: {$r['crystals']} Property: {$r['hNAME']} Referals: "; $rr=mysql_query("SELECT * FROM referals WHERE refREFER={$r['userid']}",$c); print mysql_num_rows($rr); $q_y=mysql_query("SELECT * FROM friendslist WHERE fl_ADDED={$r['userid']}",$c); $q_z=mysql_query("SELECT * FROM blacklist WHERE bl_ADDED={$r['userid']}",$c); print " Friends: ".mysql_num_rows($q_y)." Enemies: ".mysql_num_rows($q_z)." "; if($r['display_pic']) { print "[img={$r[]"; } else { print "This user has no display pic!"; } print "Physical InfoLinksLevel: {$r['level']} Health: {$r['hp']}/{$r['maxhp']} Gang: "; if($r['gang']) { print "[url='gangs.php?action=view&ID={$r[']{$r['gangNAME']}[/url]"; } else { print "N/A"; } if($r['fedjail']) { print " [b]In federal jail for {$r['fed_days']} day(s). {$r['fed_reason']}"; } if($r['hospital']) { print " [b]In hospital for {$r['hospital']} minutes. {$r['hospreason']}[/b]"; } if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) || $ir['user_level'] == 6) || $ir['user_level'] == 8) || $ir['user_level'] == 4) { print " IP Address: {$r['lastip']}"; print " Staff Notes: {$r['staffnotes']} "; } print "[[url='mailbox.php?action=compose&ID={$r[']Send Mail[/url]] [[url='sendcash.php?ID={$r[']Send Cash[/url]] [[url='attack.php?ID={$r[']Attack[/url]]"; if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) || $ir['user_level'] == 6) || $ir['user_level'] == 8) || $ir['user_level'] == 4) { print " [[url='jailuser.php?userid={$r[']Jail[/url]] [[url='mailban.php?userid={$r[']MailBan[/url]]"; } if($ir['donatordays'] > 0) { print " [[url='friendslist.php?action=add&ID={$r[']Add Friends[/url]] [[url='blacklist.php?action=add&ID={$r[']Add Enemies[/url]] "; } print "</table>";<br>}<br>}<br>$h->endpage();<br>?&g This above is my code for viewuser.php, It comes out as Parse error: syntax error, unexpected T_BOOLEAN_OR in /home/ie3/public_html/viewuser.php on line 118, Could someone help me! The user levels I have are 2 , 3 , 5 , 6, 8, 4)
-
Re: Owner Panel - For free - Simple Yes. I know how to spell server u know. I just put sever as my username cause my nickname is sever.
-
Re: Owner Panel - For free - Simple my loggedin.php didn't come from nowere. I just created it myself.
-
Re: Owner Panel - For free - Simple * FIXED *
-
Re: Owner Panel - For free - Simple Loggedin.php - <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); print "<center>Thanks for logging in<hr width='75%'> "; $q=mysql_query("SELECT * FROM papercontent LIMIT 1",$c); $content=mysql_result($q,0,0); print "Your-Game-Name Latest News: $content <hr width='75%'>> <a href=index.php>Continue</a><hr width='75%'><center>Credits to Allied Entertainment, Ltd."; $h->endpage(); ?>
-
Hi, I know this isn't one of the best owner panels around. But i thought i would post it for the new guys. http://www.assassincity.com/owner.txt Want any help installing post here. Just to let you know I own Allied Entertainment and well be posting more free mods/pages for you. Thanks, Blackberry/Sever104 P.S i removed some functions durning it was done for McCodes v2 not for McCodes v1.
-
Re: Help Fagan uses illegal V2 Codes. If u didn't know, In fact my friend gave them to him.
-
Re: New Gang Staff Panel(Free) nice job -Genocide-!.
-
Re: no encryption In your database its pos, to show the users password. 1) I do think its stuipd but the man who asked for it at the time didn't get good feedback.
-
Re: Help with crons please James Wilkinson don't go to school as far as i know and for 2 he is not an owner.
-
Re: no encryption As i have seen in previous posting's, People have said the person who requested this 'why' the wont the script. 1) Its there game, just tell them. 2) Whoever did tell the code. You must be great and the person must thank you for it. I'm not well-known to be good around here, but i changed my ways aswell. Thanks. Just wanted to add a note.