-
Posts
2,667 -
Joined
-
Last visited
-
Days Won
75
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
anytime code god ;)
-
Blade i asked Dabs this question as i also was a bit condused.. illusions - says Hiya dabs someone is asking a question regards a v2 licence which im also confused about can he use his licence to create sub domains on his main domain using 1 licence ? Dabomstew - says depends what the sub domains are for Dabomstew - says if they're like "server 1", "server 2" etc with completely seperate databases u have to ask us first ------------------------------------ I would consult Dabs further on this Blade send a support ticket with your query
-
If there are not enough hours in the day to run your game then maybe somewhere along the lines youve mis calculated what your needs are so go back and recount and see if all is correct..
-
[MCCODES V2] Fully Customise your game layout
Uridium replied to Uridium's topic in Free Modifications
layoutinstall.php which ive edited... <?php /* Settings Installer Re-modded from installer.php / Illusions 2009 */ session_start(); ob_start(); function valid_email($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; } ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Game Layout Configuration</title> <script language="JavaScript"> <!-- function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function DeleteCookie (name,path,domain) { if (GetCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } // --> </script> <script language="JavaScript"> var usr; var pw; var sv; function getme() { usr = document.login.username; pw = document.login.password; sv = document.login.save; if (GetCookie('player') != null) { usr.value = GetCookie('username') pw.value = GetCookie('password') if (GetCookie('save') == 'true') { sv[0].checked = true; } } } function saveme() { if (usr.value.length != 0 && pw.value.length != 0) { if (sv[0].checked) { expdate = new Date(); expdate.setTime(expdate.getTime()+(365 * 24 * 60 * 60 * 1000)); SetCookie('username', usr.value, expdate); SetCookie('password', pw.value, expdate); SetCookie('save', 'true', expdate); } if (sv[1].checked) { DeleteCookie('username'); DeleteCookie('password'); DeleteCookie('save'); } } else { alert('You must enter a username/password.'); return false; } } </script> <style type="text/css"> <!-- body { background-color: #DEDEDE; margin-top: 0px; margin-bottom: 0px; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: black; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: black;text-decoration: none; } table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12px; } img { border:none; } textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: black; } .table2 { } .lgrad { background-image:url(lgrad.jpg); background-repeat:repeat-y; width:19px; } .linegrad { background-image:url(linegrad.PNG); background-repeat:repeat-y; background-align: center; width:2px; } .rgrad { background-image:url(rgrad.jpg); background-repeat:repeat-y; width:19px; } .dgrad { background-image:url(dgrad.jpg); background-repeat:repeat-x; height:38px; } .dgradl { background-image:url(dgradl.jpg); background-repeat:no-repeat; height:38px; width:38px; } .dgradr { background-image:url(dgradr.jpg); background-repeat:no-repeat; height:38px; width:38px; } .center { width:932px; background-color:#FFFFFF; vertical-align:top; text-align:center; } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#DEDEDE; height:22px; } .table3 td { background-color:#CCCCCC; } td .alt { background-color:#EEEEEE; height:22px; } td .h { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } .table th { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } --> </style></head> <body onload="getme();"> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td class="lgrad"></td> <td class="center">[img=title.jpg] <h2>Illusions Game Layout Installer</h2> <?php switch($_GET['code']) { case "install": install(); break; case "config": config(); break; default: diagnostics(); break; } function menuprint($highlight) { $items=array( 'diag' => '1. Diagnostics', 'input' => '2. Configuration', 'sql' => '3. Installation & Extras', ); $c=0; print "<hr />"; foreach($items as $k => $v) { $c++; if($c > 1) { print " >> "; } if($k==$highlight) { print "<font color='black'>{$v}</font>"; } else { print "<font color='gray'>{$v}</font>"; } } print "<hr />"; } function diagnostics() { menuprint("diag"); if (version_compare(phpversion(), '4.2.0') < 0) { $pv="<font color='red'>Failed</font>"; $pvf=0; } else { $pv="<font color='green'>PASSED</font>"; $pvf=1; } if(is_writable('./')) { $wv="<font color='green'>PASSED</font>"; $wvf=1; } else { $wv="<font color='red'>Failed</font>"; $wvf=0; } if(function_exists('mysql_connect') || function_exists('mysqli_connect')) { $dv="<font color='green'>PASSED</font>"; $dvf=1; } else { $dv="<font color='red'>Failed</font>"; $dvf=0; } if(str_replace('layoutinstall.php','',$_SERVER['SCRIPT_NAME']) == "/") { $av="<font color='green'>PASSED</font>"; $avf=1; } else { $av="<font color='red'>Failed</font>"; $avf=0; } print "<h3>Basic Diagnostic Results:</h3> <table width='80%' class='table' cellspacing='1'> <tr> <td>PHP version >= 4.2.0</td> <td>{$pv}</td> </tr> <tr> <td>Game folder writable</td> <td>{$wv}</td> </tr> <tr> <td>MySQL support in PHP present</td> <td>{$dv}</td> </tr> </table>"; if($pvf+$wvf+$dvf < 3) { print "<hr /><font color='red'>One of the basic diagnostics failed, so Setup cannot continue. Please fix the ones that failed and try again.</font><hr />"; } else { print "<hr />> <a href='layoutinstall.php?code=config']Next Step</a><hr />"; } } function config() { menuprint("input"); print "<h3>Configuration:</h3> <center> <form action='layoutinstall.php?code=install' method='post'> <table width='75%' class='table' cellspacing='1'> <tr> <th colspan='2'>DO NOT FORGET THIS STEP!</th> </tr> <tr> <td align='center'>MySQL Driver</td> <td><select name='driver' type='dropdown'>"; if(function_exists('mysql_connect')) { print "<option value='mysql'>MySQL Standard</option>"; } if(function_exists('mysqli_connect')) { print "<option value='mysql'>MySQLi Enhanced</option>"; } print "</select></td> </tr> <tr> <td align='center'>Hostname This is usually localhost</td> <td><input type='text' name='hostname' value='localhost' /></td> </tr> <tr> <td align='center'>Username The user must be able to use the database</td> <td><input type='text' name='username' value='root' /></td> </tr> <tr> <td align='center'>Password</td> <td><input type='text' name='password' value='' /></td> </tr> <tr> <td align='center'>Database Name The database should not have any other software using it.</td> <td><input type='text' name='database' value='mcc' /></td> </tr> <tr> <th colspan='2'><h2>Game Layout Configuration </h2></th> </tr> <tr> <td align='center'>Header Image Insert your own Header Image as jpg, gif, png</td> <td><input type='text' name='header_image' value='title.jpg' /></td> </tr> <tr> <td align='center'>Center Panel Width Alter center width default is 970</td> <td><input type='text' name='centerpane_width' value='970' /></td> </tr> <tr> <td align='center'>Center panel Colour Change Center Panel colour by HEX Codes dont add #</td> <td><input type='text' name='centerpane_colour' value='' /> <a href='colours.html']Colour Chart Viewer</a></td> </tr> <tr> <td align='center'>Center Panel Image If you dont want to use COLOUR you can use an image Make sure you leave the COLOUR HEX blank or Vice Versa</td> <td><input type='text' name='centerpane_image' value='' /></td> </tr> <tr> <td align='center'>Menu Colour Change Menu Colour HEX codes only</td> <td><input type='text' name='menu_colour' value='' /> <a href='colours.html']Colour Chart Viewer</a></td> </tr> <tr> <td align='center'>Menu Image Change if you have an image if not leave blank and use the above MENU COLOUR option</td> <td><input type='text' name='menu_colour' value='' /></td> </tr> <tr> <td align='center'>Menu Position Enter the text left or right to move menu</td> <td><input type='text' name='menu_position' value='left' /></td> </tr> <tr> <td align='center'>Menu Width Change Menu Width default is 20%</td> <td><input type='text' name='menu_width' value='20' /></td> </tr> <tr> <td align='center'>Text Font ( Static ) Change to verdana, arial, gothic or upload you own TFF and use that</td> <td><input type='text' name='text_font' value='arial' /></td> </tr> <tr> <td align='center'>Text Font ( Static ) Colour Change Text Colour by HEX</td> <td><input type='text' name='text_fontcolour' value='' /> <a href='colours.html']Colour Chart Viewer</a></td> </tr> <tr> <td align='center'>Text Font ( Hover ) Change to verdana, arial, gothic or upload you own TFF and use that</td> <td><input type='text' name='text_font1' value='arial' /></td> </tr> <tr> <td align='center'>Text Font ( HOVER ) Colour Change Text Colour by HEX</td> <td><input type='text' name='text_font1colour' value='' /> <a href='colours.html']Colour Chart Viewer</a></td> </tr> <tr> <td align='center'>Text Font ( Static ) Size Change Text size font</td> <td><input type='text' name='text_fontsize' value='12' /></td> </tr> <tr> <td align='center'>Text Font ( HOVER ) Size Change Text size font</td> <td><input type='text' name='text_fontsize1' value='14' /></td> </tr> <tr> <td align='center'>Drop Page height If the Header is too high you can Drop it Default is 0 and 10 drops by 10 pixels</td> <td><input type='text' name='droptop_position' value='0' /></td> </tr> <tr> <td align='center'>Welcome Game Message This will allow you to place a Scrolling message under the header banner</td> <td><input type='text' name='game_message' value='Welcome to our game' /></td> </tr> <tr> <td colspan='2' align='center'><input type='submit' value='Install' /></td> </tr> </table></form></center>"; } function install() { menuprint("sql"); { print "Config Bypass Started "; print "Config Bypass Successful Attempting DB connection "; define('MONO_ON', 1); require "class/class_db_{$_POST['driver']}.php"; $db=new database; $db->configure($_POST['hostname'], $_POST['username'], $_POST['password'], $_POST['database'], 0); $db->connect(); $c=$db->connection_id; print "Connection Successful. Writing Main MySQL data. "; { if(!(strpos($line,"--") === 0) && trim($line) != "") //check for commented lines or blankies { $query.=$line; if(!(strpos($line,";") === FALSE)) { $db->query($query); $query=""; } } } print "Settings data was written. Now write Extra MySQL data. "; $username=$_POST['a_username']; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $db->query("INSERT INTO settings VALUES(NULL, 'header_image', '{$_POST['header_image']}')"); $db->query("INSERT INTO settings VALUES(NULL, 'centerpane_width', '{$_POST['centerpane_width']}')"); $db->query("INSERT INTO settings VALUES(NULL, 'centerpane_colour', '{$_POST['centerpane_colour']}')"); $db->query("INSERT INTO settings VALUES(NULL, 'centerpane_image', '{$_POST['centerpane_image']}')"); $db->query("INSERT INTO settings VALUES(NULL, 'menu_colour', '{$_POST['menu_colour']}')"); $db->query("INSERT INTO settings VALUES(NULL, 'menu_image', '{$_POST['menu_image']}')"); $db->query("INSERT INTO settings VALUES(NULL, 'menu_position', '{$_POST['menu_position']}')"); $db->query("INSERT INTO settings VALUES(NULL, 'menu_width', '{$_POST['menu_width']}')"); $db->query("INSERT INTO settings VALUES(NULL, 'text_font', '{$_POST['text_font']}')"); $db->query("INSERT INTO settings VALUES(NULL, 'text_fontcolour', '{$_POST['text_fontcolour']}')"); $db->query("INSERT INTO settings VALUES(NULL, 'text_font1', '{$_POST['text_font1']}')"); $db->query("INSERT INTO settings VALUES(NULL, 'text_font1colour', '{$_POST['text_font1colour']}')"); $db->query("INSERT INTO settings VALUES(NULL, 'text_fontsize', '{$_POST['text_fontsize']}')"); $db->query("INSERT INTO settings VALUES(NULL, 'text_fontsize1', '{$_POST['text_fontsize1']}')"); $db->query("INSERT INTO settings VALUES(NULL, 'droptop_position', '{$_POST['droptop_position']}')"); $db->query("INSERT INTO settings VALUES(NULL, 'game_message', '{$_POST['game_message']}')"); $path=$_SERVER['HTTP_HOST']; print " <h2>[b]Settings Installation Successful![/b]</h2><hr /> >center><h1>!ATTENTION<h1></center> Once this Installer has been used you will be able to Edit Your Options via BASIC SETTINGS Panel in the Game"; } } ?> </td> <td class="rgrad"></td> </tr> <tr> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="dgradl"> </td> <td class="dgrad"> </td> <td class="dgradr"> </td> </tr> </table> </td> </tr> </table> </body> </html> -
[MCCODES V2] Fully Customise your game layout
Uridium replied to Uridium's topic in Free Modifications
just to note to everyone thsi script is CORRUPT which must have happened on the last forum changeover -
[MCCODES V2] Fully Customise your game layout
Uridium replied to Uridium's topic in Free Modifications
aha bare with me guys i'll try help you out this is an old mod so bare with me... -
few factors is this when a user first registers to your game is it happening whilst user has been on your game for a while or ??????
-
Im sure he told me once in a convo we had, that he was nearly 53 ;) but hey who am i to judge lol
-
include "sglobals.php"; if($ir['user_level'] > 2) { die("<center><h2>RESTRICTED ACCESS</h2><br /><br /><a href='index.php'>Return to Game</a>"); } Just makes it look neater than a nasty message saying 403
-
Nicely done Razor havent tested it but im sure it works fine :)
-
So your 40 your catching up to me ya old fart have a great day pal all the best :)
-
Looking forward to seeing it Octet :) keep up the brilliant work
-
makes you sick theres always some epople in the UK that wants to throw their voice in and be heared even if it means them sounding like a complete twat silly thing is though the british public help pay for the Olympics due to most of it being funded by the lottery which we pay for each week and we couldnt even get a seat at the olympics until yesterday. infact the british army were told to sit down on seats that were unoccupied...
-
I can see your game going a long way. if you can't even be bothered to do the most basic thing's on a game,,,
-
Anyone been listening to the radio they are saying that the opening ceremony was all political What a pile of crap, For me it was a ceremony now get over it ya strange people
-
im still working on my wizwych game i have story boards of text regards layout, routines and what will fit best on each page.... Communication is always the key though when working as a group effort, once one person fails to comply with a routine it creates a barrier for the other coders.....
-
Gramma QUOTE from your login page A evil criminal has fleed to an abandoned town few weeks ago after escaping prison. SOME CORRECTIONS FOR YOU TO NOTE A evil = An evil fleed = fled Capital C for Criminal as your telling someone about a character escaping prison = escaping from prison
-
question is everyone of them pages different other than just grabbing player data and loction ?
-
are you calling for a users location in an QUERY look at how viewuser uses the attack link to grab info then do the same for example their whereabouts but i cant see this happening as both people would need to be in the same place example both in NY and both in i donn for arguments sake Winter Ruins location....
-
DAngelo do you mean so they can be viewed on viewuser or to be attacked example
-
I did actually watch the opening of the olympics on Iplayer and I have to say it was fookin brilliant, our little nation took ahold of everything that was pure form previous britain and told a brilliant story about it Absouletly loved it well done london :)
-
I'll be honest i was sceptical about the opening ceremony but damn London have put on a great show...
-
sanca ya dead ;)
-
Too be honest im proud of every country thats entered anyone ever watch Cool Runnings may need to think about what a great country is all about regardless of their achievements :)
-
On a realistic note i give congratualtions to any country that achieve gold or even those that participate and fail to me everyone who enters the olympics deserves the right to be winners even if they failed..