-
Posts
2,210 -
Joined
-
Last visited
-
Days Won
47
Content Type
Profiles
Forums
Events
Everything posted by sniko
-
Contact Peter Leaman
-
Damn, yea i forgot about opening the mysql, my fault. Anywho, Skalman, you don't have to toally re-design it, just follow what i did but alter it a little, i've probably supplied around 70-80% of it, but if you need any assistance, my msn address is in my signature. -sniko
-
Your being very in-descriptive, How come?
-
Look into $_GET and rewrite the URL and edit part of the file and that should fix your problem
-
The following is what i would do; Create a table - call it `users`, and add these columns user login_name passcode type - ENUM('client', 'technican') DEFAULT 'client' [*] Create the register file, or manually input the data into the database (But in your case a register file, as clients will need to register) [*] Create the login file and have the following in it... <?php session_start(); if($_POST) { //Secure _POST's $check = mysql_query("SELECT `key`,`type` FROM `users` WHERE `login_name`='{$_POST['login']}' AND `passcode`='{$_POST['passcode']}'"); if(mysql_num_rows($check) === 0) { //Not a member //Display Error Message exit; } $r = mysql_fetch_array($check); $link = ($r['type'] == 'client') ? "[url='client.php']Continue[/url]" : "[url='technican.php']Continue[/url]"; echo "Welcome {$_POST['login']} [".$link."]"; $_SESSION['user'] = $r['key']; //Used for sessions, as this is a login script. } echo "<form action='' method='post'> Login Name: <input type='text' name='login' length='5' maxlength='15' /> Passcode: <input type='password' name='pass' length='5' maxlength='15' /> <input type='submit' value='Login!'> </form>"; ?> Should all work :) I say should, as it is untested -sniko
-
Although, it is a pretty good layout
-
I interpreted the question as converting from mccodes to lite, as in modifications - addons -sniko
-
the php taag hasnt been opened
-
To be fair, free wifi at mcdonalds isn't really free as someone has to pay for it
-
lol Mystical at the last sentence :)
-
Can we see some examples of your graphics?
-
Try <?phpinclude "config.php";global $_CONFIG; define("MONO_ON", 1);require "class/class_db_{$_CONFIG['driver']}.php";$db=new database;$db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']);$db->connect();$c=$db->connection_id;$fo=fopen("hospshouts.txt","w");fclose($fo);$fo=fopen("jailshouts.txt","w");fclose($fo);$set=array();$settq=$db->query("SELECT * FROM settings");while($r=$db->fetch_row($settq)){$set[$r['conf_name']]=$r['conf_value'];} function event_add($userid,$text,$connection=0){global $db;$db->query("INSERT INTO events VALUES('',$userid,UNIX_TIMESTAMP(),0,'$text')");$db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$userid}");return 1;} $db->query("UPDATE gangs SET gangCHOURS=gangCHOURS-1 WHERE gangCRIME>0 AND gangCHOURS>0");$db->query("UPDATE oclist SET oclTIME=oclTIME-1 WHERE oclTIME > 0 "); $q=$db->query("SELECT * FROM oclist ol LEFT JOIN orgcrimes oc ON ol.oclOC = oc.ocID LEFT JOIN gangs g ON g.gangID = ol.oclGANG WHERE ol.oclTIME <= '0'") or die(mysql_error()); while($r=$db->fetch_row($q)){ $suc=rand(0,1);if($suc) {$log=$r['ocSTARTTEXT'].$r['ocSUCCTEXT'];$muny=(int) (rand($r['ocMINMONEY'],$r['ocMAXMONEY']));$log=str_replace(array("{muny}","'"),array($muny,"''"),$log);$log.= "\n\nYou have gained " . number_format($r['ocRESPECT']) . " respect!"; for($i=1; $i<7; $i++){$crimeuser = "oclUSER" . $i;if($r[$crimeuser]){$usern = "user" . $i;$name = $db->query("SELECT username FROM users WHERE userid = {$r[$crimeuser]}");$n = $db->fetch_row($name);$log = str_replace('['.$usern.']', $n['username'], $log);}}echo $log;$db->query("UPDATE gangs SET gangMONEY=gangMONEY+$muny,gangRESPECT=gangRESPECT+{$r['ocRESPECT']},gangCRIME=0 WHERE gangID={$r['gangID']}");$db->query("INSERT INTO `oclogs` VALUES ('', {$r['ocID']}, {$r['gangID']}, '$log', 'success', $muny, '{$r['ocNAME']}', unix_timestamp(),'{$r['ocRESPECT']}')");$i=$db->insert_id();$qm=$db->query("SELECT * FROM users WHERE gang={$r['gangID']}");while($rm = mysql_fetch_array($qm)) { event_add($rm['userid'],"Your Gang\'s Organised Crime Succeeded. Go <a href=\'oclog.php?ID=$i\'>here</a> to view the details.",$c); }} else{$log=$r['ocSTARTTEXT'].$r['ocFAILTEXT'];$muny=0;$log=str_replace(array("{muny}","'"),array($muny,"''"),$log); for($i=1; $i<7; $i++){$crimeuser = "oclUSER" . $i;if($r[$crimeuser]){$usern = "user" . $i;$name = $db->query("SELECT username FROM users WHERE userid = {$r[$crimeuser]}");$n = $db->fetch_row($name);$log = str_replace('['.$usern.']', $n['username'], $log);}}echo $log;$db->query("update gangs set gangCRIME=0 where gangID={$r[oclGANG']}");$db->query("INSERT INTO `oclogs` VALUES ('', {$r['ocID']}, {$r['gangID']}, '$log', 'failure', $muny, '{$r['ocNAME']}', unix_timestamp(),'{$r['ocRESPECT']}')"); $i=$db->insert_id();$qm=$db->query("SELECT * FROM users WHERE gang={$r['gangID']}");while($rm=$db->fetch_row($qm)){event_add($rm['userid'],"Your Gang\'s Organised Crime Failed. Go <a href=\'oclog.php?ID=$i\'>here</a> to view the details.",$c);}}for($i=1; $i<7; $i++){$crimeuser = "oclUSER" . $i;if($r[$crimeuser]){ $db->query("UPDATE `users` SET `orgcrime` = '0' WHERE `userid` = $r[$crimeuser]");}}}$db->query("DELETE FROM `oclist` WHERE oclTIME <= '0'");?>
-
Sure; Tommy Gun Baseball Bat Molotov Cocktail There are many sites which can give you ideas, for example go Here -sniko
-
Post up the code from cron_hour. -sniko
-
Firstly, Hello joshg008. My Views Think about the images you have used (M40A3 and Grenade) and try and match it with the name of the game, which ultimately is the genre of the game. Possibly edit the text "MafiaCity" is not have such a glow, or try and change the font The colour of the text - story, description, username and password - fit well, but maybe not Mafia like. The text "Register Now" is possibly in the wrong place and too small If you alter it a little, you will have a decent end product Hope that helps -sniko
-
I really don't understand this. The topic Name: Partly (Well, Fully) - How can something be partly coded but at the same time, fully coded. Also The Pricing: [...] therefore i am now offering it free. [..] so is $5 for the script...... - How can something be free but you have to pay $5 for it... :/ All Bold Statements Are Your Words. -sniko
-
Why do people always wont something out of it....... He/She is asking a range of people, therefore, someone has to volunteer to help him/her, voluntary work doesn't work on a 'what do i get from helping you' kind of attidude, they offer a service which is not avaliable elsewhere. He/She actually hasn't said 'i wont someone to make me a game for free', He/She has only stated help on installing a few modifications to get them going and to share your knowledge on running a game. I actualy do not see why people always jump to the replies of 'What do i get from it' or similar replies, when, infact i can garentee that you requested free help when you were starting out - a, more known phrase, noob. (I don't really like that word, noob. It's so sterotypical and judgemental.) Anyway, thats my opionon. If you need any help JoshG008, then please contact me. Skype MSN/E-mail. I may not help straight away as my list is pretty full. But feel free to ask questions and i shall reply once i have a spare moment. Thanks for reading. -Sniko
-
Save those two images and upload them to your file manager //Rate Good AND //Rate Bad Hope that helps :) -sniko
-
was thinking the same thing as danny
-
Modified viewuser with bbcode profile signature
sniko replied to rulerofzu's topic in Free Modifications
I think danny was talking about 'require_once("nbbc.php"); ' but forgot to read the comment -
xbox360 - all my friends play it on that console Call Of Duty 4 / Black Ops Purchased COD4 two days ago, Black ops is my brothers copy - i borrow it I play online - SuRR3ndR
-
Request: Auto Login upon account creation
sniko replied to Lilith's topic in Requests & In Production
I did this for Fevi :) Pretty Simple to be honest :) Need any assistance - message me :)