|
You last visited: Today at 21:28
Advertisement
Shakes & Fidget Server - Code & Anleitung
Discussion on Shakes & Fidget Server - Code & Anleitung within the Browsergames forum part of the Other Online Games category.
07/01/2014, 09:15
|
#1
|
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
|
Shakes & Fidget Server - Code & Anleitung
Hallo liebe Leute,
da ich nun nicht mehr für psfgame.com entwickle, will ich die letzte Version des Codes, an dem ich gearbeitet habe, teilen. Stand 29.06.2014.
Ich komm' dann gleich mal zur Sache
Anforderungen
Minimale Anforderungen:- Apache2, PHP5, MySQL
- vServer
- 4 GB RAM, Dualcore-Prozessor ~2 GHz
- Ein Ressourcenpaket
- PHP/SQL-Kenntnisse
Empfohlene Anforderungen:- Apache2, PHP5, getunter MySQL-Server, der nur auf MyISAM setzt
- Debian 7.5 oder Gentoo
- Dedizierter Server (root oder managed)
- 16 GB RAM, Quadcore-Prozessor ~3 GHz
- PHP/SQL/JS/AJAX-Kenntnisse
- Ein Ressourcenpaket
Ausdrücklich NICHT empfohlen:
- Jede Art von Webhosting
a) werden exec() und system() i.d.R. nicht unterstützt
b) ist die Performance den Anforderungen nicht gewachsen
- Ohne jegliches Wissen einen Server zu starten.
a) bringt ein Server eine große Verantwortung mit sich, da ich NICHT garantiere, dass jegliche, denkbare Lücken geschlossen sind. Ich habe mir natürlich große Mühe gegeben und am Ende schien die Source sicher zu sein, aber es ist natürlich ein Katz-und-Maus-Spiel. Wer ohne Kenntnisse von Serverarchitektur und Sicherheit einen Root-Server mietet und nutzt geht ein erhebliches Risiko ein. Falls die Kiste geknackt wird, können Anzeigen oder hohe Rechnungen folgen. Man darf bei Root-Servern niemals vergessen: DU BIST ROOT! Wer dieser Verantwortung nicht gewachsen ist, oder nicht bereit ist sie zu tragen, MUSS zwangsläufig tiefer in die Tasche greifen und auf einen Managed-Server zurückgreifen. Dort kümmert sich ein ausgebildeter Serveradmin um alle möglichen Sicherheitsbelange und der Hoster trägt im Zweifel die Verantwortung und haftet dementsprechend auch.
b) Ohne Wissen über die verwendeten Sprachen, wird es extrem schwierig Bugs zu finden und zu beheben. Ich habe darauf Wert gelegt, den Code so sauber wie möglich zu schreiben, aber Teile der request.php, die ich noch nicht überarbeitet habe, sind natürlich nicht ordentlich eingerückt.
Inhalt
- Das Basis-Skript um den Server zu starten und zu betreiben
- Engine um von externen Seiten auf Userdaten zuzugreifen (Cookiebased)
- ACP aus meiner Feder mit unzähligen Möglichkeiten
- Supportformular, Externer Shop für Angebote
- AJAX-Chat und -Useranzeige
- CTracker-Antiworm/Injection System, diverse Sicherheitsmaßnahmen
- 1-Click Datenbank-Backupper (mit Restorefunktion)
- Paypal-API (Praxistest fehlt noch
)
- unzählige Fixes und feineres Balance zwischen den Klassen
Installation
Ich gehe davon aus, dass ihr den oberen Text aufmerksam gelesen habt und über einen FTP und SQL-Account verfügt. Ich werde also nicht beim Urschleim beginnen.
1. Archiv auf den Server laden
2. Archiv entpacken
3. Daten in den Files anpassen.
3.1 - 3.8
3.1
öffne die Datei client_cfg.php
PHP Code:
1 de 2 http://img.playa-games.com/res/sfgame/ 3 http://img.playa-games.com/res/sfgame/ 7 domain.com 8 http://domain.com/ 9 0 10 http://www.elitepvpers.com 11 http://domain.com/support.php 12 http://www.gamepsf.de/ 13 http://domain.com/rules.html 14 http://domain.com/shop.php 17 3 18 domain 21 3 23 1 25 http://domain.com/req.php?req=%1&random=%2 29 support@domain.com 30 http://domain.com/papaya44.swf 31 http://domain.com/papaya_cfg.php 32 1 34 2 35 http://domain.com/spenden.php 36 gamestaff@domain.com 42 1 43 1337 48 http://domain.com/res/sfgame_low/ 46 de/ar/cs/da/en/es/fr/el/hu/it/ja/nl/pl/pt/pt-br/ru/sv/tr 47 german/arabic/czech/danish/english/spanish/french/greek/hungarian/italian/japanese/dutch/polish/portuguese/brazilian portuguese/russian/swedish/turkish
26 166;;http://domain.com/cid/cid.php?cid=%cid%&action=166&playerid=%playerid%&mushbought=%mushbought%&bid=<bid>&token=<token>&serverid=3&gameid=1 26 1;;http://domain.com/cid/cid.php?cid=%cid%&action=1&playerid=%playerid%&mushbought=%mushbought%&bid=<bid>&token=<token>&serverid=3&gameid=1 //26 188;;http://domain.com/cid/cid.php?cid=%cid%&action=188&playerid=%playerid%&mushbought=%mushbought%&bid=<bid>&token=<token>&serverid=3&gameid=1
domain.com ist durch deine Domain zu ersetzen.
3.2
öffne die Datei dtoverride.php
PHP Code:
<?php // Timezone date_default_timezone_set('Europe/Berlin');
function dbc() { mysql_connect("localhost", "USER", "PASSWORD") or die(mysql_error()); mysql_select_db("DATABASE") or die(mysql_error()); }
Got it!?
3.3
öffne die Datei index.php
Code:
http://psfgame.com/
muss ersetzt werden. (2-3 mal oder so)
3.4
öffne die Datei req.php (line 4411)
PHP Code:
try{ $db = new PDO ( 'mysql:host=localhost;dbname=DATABSE;charset=utf8', 'USER', 'PASSWORD'); }catch(Exception $e){ exit(); }
3.5
öffne die Datei adminui/mysql_overview.php (line 90)
PHP Code:
$res = @mysql_query('SHOW TABLE STATUS FROM `psfgame_de`') or Die(mysql_error());
3.6
öffne die Datei adminui/dbbacker.php
ROOTDATEN oder Daten mit VOLLEM ZUGRIFF ANGEBEN!
Der (hoffentlich) eingeschränkte Standardzugriff reicht NICHT aus!
PHP Code:
//////////////////////////////////////////// // Zugangsdaten zur Datenbank // // ACHTUNG -- ROOT-Daten verwenden // //////////////////////////////////////////// $db_host = "localhost"; $db_user = "USER"; // hier den Benutzernamen rein $db_passwort = "PASSWORD"; // hier das Passwort rein $db_mysql = "DATABASE"; // hier den Namen der Datenbank rein $backupdir = "dbbu"; // hier den Namen des Backupverzeichnisses rein $prefix = "pre_"; // hier könnt Ihr einen Namen eintragen, welcher den Backups vorangestellt wird
3.7
öffne die Datei adminui/backend/config.php
PHP Code:
<?php // Power-Switch $GLOBALS["SITE_ONLINE"] = TRUE;
// Name im Browser $GLOBALS["SITE"] = "SF TCP";
// System-ID $GLOBALS["SYSTEM_ID"] = "1";
// Cookie-Stuff $GLOBALS["C_STRING"] = "fsfsdfadgehegcd"; $GLOBALS["C_UIDSALT"] = "A71379A"; // <-- Sieben zufällige Zeichen
?>
3.8
öffne die Datei adminui/backend/secrets.php
PHP Code:
<?php
$mysql_host = "localhost"; $mysql_user = "USER"; $mysql_pass = "PASSWORD"; $mysql_db = "DATABASE";
?>
4.
Lade den sfgame-Ordner per FTP in res-Ordner (NICHT ENTHALTEN im RLS) (by Crasim:  )
5.
CHMOD für dbbu setzen (777)
6. Datenbank einfügen.
7. Account registrieren
8. Account auf "Admin" schalten
Code:
UPDATE `user_data` SET `usysclass` = '5',
`donor` = 'yes' WHERE `user_id` =2;
Downloadlink
Down: Mirror: Mirror 2:
Ressourcen:
So, ich denke das war's.. Viel Freude mit dem Paket und ein THX wäre lieb.
Bilder
FAQ
i can't spend into the guild
Quote:
Originally Posted by petyanbi4
hello! how to fix guild donate function? system get my shrooms and silver, but doesnt insert them into guild.
|
Quote:
Originally Posted by ǝnd1ǝss-ɯonǝʎ
|
Notice: Undefined index: ajax in
Quote:
Originally Posted by Heroic9614
Problem in ajax chat.. :/
Notice: Undefined index: ajax in C:\xampp\htdocs\ajax_chat.php on line 48
Notice: Undefined index: hid in C:\xampp\htdocs\ajax_chat.php on line 50
Notice: Undefined index: view in C:\xampp\htdocs\ajax_chat.php on line 51
Notice: Undefined index: del in C:\xampp\htdocs\ajax_chat.php on line 52
Notice: Undefined variable: old_s in C:\xampp\htdocs\dtoverride.php on line 441
Notice: Undefined variable: old_s in C:\xampp\htdocs\dtoverride.php on line 441
Notice: Undefined variable: old_s in C:\xampp\htdocs\dtoverride.php on line 441
Notice: Undefined variable: old_s in C:\xampp\htdocs\dtoverride.php on line 441
how to fix?
|
Quote:
Originally Posted by ǝnd1ǝss-ɯonǝʎ
go to php.ini
Find:
Code:
; This directive controls whether or not and where PHP will output errors,
; notices and warnings too. Error output is very useful during development, but
; it could be very dangerous in production environments. Depending on the code
; which is triggering the error, sensitive information could potentially leak
; out of your application such as database usernames and passwords or worse.
; It's recommended that errors be logged on production servers rather than
; having the errors sent to STDOUT.
; Possible Values:
; Off = Do not display any errors
; stderr = Display errors to STDERR (affects only CGI/CLI binaries!)
; On or stdout = Display errors to STDOUT
; Default Value: On
; Development Value: On
; Production Value: Off
; http://php.net/display-errors
display_errors=On
Set to "Off"
|
I dont have php.ini
Quote:
Originally Posted by TheCry
I dont have php.ini xd
|
Quote:
Originally Posted by ǝnd1ǝss-ɯonǝʎ
So you don't use PHP.. Install php to your webserver (Apache2)
1.
Code:
apt-get install php5-common libapache2-mod-php5 php5-cli
2.
Code:
service apache2 restart
|
|
|
|
07/01/2014, 09:19
|
#2
|
elite*gold: 28
Join Date: Jun 2014
Posts: 514
Received Thanks: 31
|
Thx aber braucht man ei vServer ? Also ist das Voraussetzung steht zwar da komm ich da irgendwie rum ohne eins?
|
|
|
07/01/2014, 09:19
|
#3
|
elite*gold: LOCKED
Join Date: Apr 2013
Posts: 1,280
Received Thanks: 200
|
Schön erklärt
Quote:
Originally Posted by Views4U
Thx aber braucht man ei vServer ? Also ist das Voraussetzung steht zwar da komm ich da irgendwie rum ohne eins?
|
Da fast kein Webserver die Leistung erbringt, schätze ich nicht.
|
|
|
07/01/2014, 09:21
|
#4
|
elite*gold: 0
Join Date: Aug 2013
Posts: 1
Received Thanks: 0
|
SUPER! Thanks given  Du bischt beste Mann!
|
|
|
07/01/2014, 09:25
|
#5
|
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
|
Quote:
Originally Posted by Views4U
Thx aber braucht man ei vServer ? Also ist das Voraussetzung steht zwar da komm ich da irgendwie rum ohne eins?
|
Quote:
Ausdrücklich NICHT empfohlen:
- Jede Art von Webhosting
a) werden exec() und system() i.d.R. nicht unterstützt
b) ist die Performance den Anforderungen nicht gewachsen
|
|
|
|
07/01/2014, 09:38
|
#6
|
elite*gold: 0
Join Date: Nov 2013
Posts: 167
Received Thanks: 57
|
Thank you very much!
|
|
|
07/01/2014, 10:23
|
#7
|
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
|
Pictures added
|
|
|
07/01/2014, 10:26
|
#8
|
elite*gold: 0
Join Date: Nov 2013
Posts: 167
Received Thanks: 57
|
ǝnd1ǝss-ɯonǝʎ - are you working on userdetails.php? Can i help?
|
|
|
07/01/2014, 10:30
|
#9
|
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
|
not really.  i want to create something really big with it..
|
|
|
07/01/2014, 10:37
|
#10
|
elite*gold: 0
Join Date: Nov 2013
Posts: 167
Received Thanks: 57
|
Okay 
Btw ..... skype
What i have wrong? I edited it in my language and shop.php stopped working. Please help
PHP Code:
<?php
require_once("dtoverride.php");
dbc();
$coodata = secure_uid_cookie($_COOKIE["uid"]);
// get config $cfg = array(); $sql = "SELECT * FROM game_settings WHERE setting IN ('SHOP_GTOP_MULTI', 'SHOP_GTOP_SHROOM', 'SHOP_GTOP_SHROOM_L', 'SHOP_GTOP_SHROOM_XL') ORDER BY id ASC"; $qry = mysql_query($sql); while($row = mysql_fetch_assoc($qry)) { $cfg[] = $row; }
$shop_gtop_multi = $cfg[0]['value']; $shop_gtop_shroom = $cfg[1]['value']; $shop_gtop_shroom_l = $cfg[2]['value']; $shop_gtop_shroom_xl = $cfg[3]['value']; // end of config
if(proof_uid_cookie($_COOKIE["uid"]) == "1" && !isset($_POST["doit"])) { $u_data = mysql_fetch_assoc(mysql_query("SELECT lvl, silver, usysclass, mushroom FROM user_data WHERE user_id = " . $coodata . " LIMIT 1")); } elseif(proof_uid_cookie($_COOKIE["uid"]) == "1" && isset($_POST["doit"])) { $u_data = mysql_fetch_assoc(mysql_query("SELECT lvl, silver, usysclass, mushroom, potion_time1, potion_time2, potion_time3 FROM user_data WHERE user_id = " . $coodata . " LIMIT 1"));
if(isset($_POST["snack_m"])) { if($u_data["mushroom"] >= 4) { $output_h = "Mňam"; $output = "Určite to bolo vynikajúce, barman vám určite dá ešte pivo "; mysql_query("UPDATE user_data SET mushroom = mushroom-4, beers = beers-1 WHERE user_id = " . $coodata . " LIMIT 1"); } else { $output_h = "Nee"; $output = "Du musst ein paar Pilze zusammen bekommen.. Durch Quests.. Ach ne geht ja nicht.. hm.."; } } elseif(isset($_POST["snack_l"])) { if($u_data["mushroom"] >= 44) { $output_h = "Yummy"; $output = "Das war bestimmt lecker.. So gestärkt sollte der Barkeeper bestimmt noch ein Bier geben."; mysql_query("UPDATE user_data SET mushroom = mushroom-44, beers = beers-10 WHERE user_id = " . $coodata . " LIMIT 1"); } else { $output_h = "Nee"; $output = "Du musst ein paar Pilze zusammen bekommen.. Durch Quests.. Ach ne geht ja nicht.. hm.."; } } elseif(isset($_POST["klo"])) { if($u_data["mushroom"] >= 75) { $output_h = "Pracovitý.."; $output = "A dokonca aj toaleta je opäť čistá."; mysql_query("UPDATE user_data SET mushroom = mushroom-75, toilet_full = 0 WHERE user_id = " . $coodata . " LIMIT 1"); } else { $output_h = "Ospravdlňte ma"; $output = "Škriatkovia budú radšej pracovať inde. Nemáte dostatok húbičiek"; } } /*elseif(isset($_POST["wpn"])) { if($u_data["mushroom"] >= 400) { $output_h = "Ui.."; $output = "Wer hätte gedacht, dass man diese Waffe noch verbessern kann..?"; mysql_query("UPDATE user_data SET mushroom = mushroom-150 WHERE user_id = " . $coodata . " LIMIT 1"); mysql_query("UPDATE items SET dmg_min = dmg_min+10, dmg_max = dmg_max+10 WHERE slot = 8 AND owner_id = " . $coodata . " LIMIT 1"); } else { $output_h = "Nope.."; $output = "Naja immerhin wusstest Du den Preis vorher und bist nicht umsonst nach Mittelerde gereist."; } }*/ elseif(isset($_POST["bff"])) { if($u_data["mushroom"] >= 0) { $output_h = "Platba úspešná.."; $output = "A teraz sa pozri na svoj charakter!."; mysql_query("UPDATE user_data SET mushroom = mushroom-49, attr_str = attr_str+300,attr_agi = attr_agi+300, attr_int= attr_int+300, attr_wit = attr_wit+300, attr_luck = attr_luck+300 WHERE user_id = " . $coodata . " LIMIT 1"); } else { $output_h = "Nie!"; $output = "Nemáte dostatok húbičiek"; } } elseif(isset($_POST["tranktrank"])) { if($u_data["usysclass"] >= 3) { if($u_data["mushroom"] >= 50) { $longer = 259200; // 3 days if($u_data["potion_time1"] == 0 && $u_data["potion_time2"] == 0 && $u_data["potion_time3"] == 0) { $output_h = "???"; $output = "Nemáte vypitý žiadny elixír. Tak čo chcete predlžiť?"; } else { if($u_data["potion_time1"] != 0) { $pot1 = $u_data["potion_time1"]+$longer; } else { $pot1 = 0; }
if($u_data["potion_time2"] != 0) { $pot2 = $u_data["potion_time2"]+$longer; } else { $pot2 = 0; }
if($u_data["potion_time3"] != 0) { $pot3 = $u_data["potion_time3"]+$longer; } else { $pot3 = 0; }
$output_h = "Fuj!"; $output = "Ako môžete zaplatiť za h&#>o? A ešte huby?"; mysql_query("UPDATE user_data SET mushroom = mushroom-50, potion_time1 = " . $pot1 . ", potion_time2 = " . $pot2 . ", potion_time3 = " . $pot3 . " WHERE user_id = " . $coodata . " LIMIT 1"); } } else { $output_h = "Nie!"; $output = "Nemáš huby!"; } } else { $output_h = "VIP"; $output = "iba!"; } } elseif(isset($_POST["gtop_m"])) { if($u_data["lvl"] >= 100) { $neededsilver = $shop_gtop_multi*$u_data["lvl"]*$shop_gtop_shroom*100; if($u_data["silver"] >= $neededsilver) { $output_h = "Jo.."; $output = "Beehren sie uns bald wieder.. Aber nicht so schnell.. ^^"; mysql_query("UPDATE user_data SET silver = silver-" . $neededsilver . ", mushroom = mushroom+" . $shop_gtop_shroom . " WHERE user_id = " . $coodata . " LIMIT 1"); } else { $output_h = "Tjaa"; $output = "Nemáš na to financie, prepáč..."; } } else { $output_h = "Sorry"; $output = "Musíte mať aspoň stý level."; } } elseif(isset($_POST["gtop_l"])) { if($u_data["lvl"] >= 100) { $neededsilver = $shop_gtop_multi*$u_data["lvl"]*$shop_gtop_shroom_l*100*0.9; if($u_data["silver"] >= $neededsilver) { $output_h = "Jo.."; $output = "Ďakujeme že ste použili naše služby ^^"; mysql_query("UPDATE user_data SET silver = silver-" . $neededsilver . ", mushroom = mushroom+" . $shop_gtop_shroom_l . " WHERE user_id = " . $coodata . " LIMIT 1"); } else { $output_h = "Tjaa"; $output = "Nemáš na to financie, prepáč.."; } } else { $output_h = "Sorry"; $output = "Musíte mať aspoň stý level."; } elseif(isset($_POST["gtop_xl"])) { if($u_data["usysclass"] >= 3) { if($u_data["lvl"] >= 100) { $neededsilver = $shop_gtop_multi*$u_data["lvl"]*$shop_gtop_shroom_xl*100*0.8; if($u_data["silver"] >= $neededsilver) { $output_h = "Jo.."; $output = "Ďakujeme že ste použili naše služby ^^"; mysql_query("UPDATE user_data SET silver = silver-" . $neededsilver . ", mushroom = mushroom+" . $shop_gtop_shroom_xl . " WHERE user_id = " . $coodata . " LIMIT 1"); } else { $output_h = "Tjaa"; $output = "Nemáš na to financie, prepáč.."; } } else { $output_h = "Sorry"; $output = "Musíte mať aspoň stý level."; } } else { $output_h = "VIP"; $output = "only!"; } } elseif(isset($_POST["ptog"])) { if($u_data["mushroom"] >= 10) { $output_h = "Ale počkaj.."; $output = "Teraz si pán :3"; mysql_query("UPDATE user_data SET silver = silver+10000000, mushroom = mushroom-10 WHERE user_id = " . $coodata . " LIMIT 1"); } else { $output_h = "Tjaa"; $output = "Nemáš na to financie, prepáč.."; } } elseif(isset($_POST["vip"])) { if($u_data["mushroom"] >= 25000) { if($u_data["usysclass"] >= 3) { $output_h = "Error"; $output = "Buď ste už VIP alebo nemáte dostatok financií"; } else { $output_h = "Gratulujem"; $output = "Teraz ste VIP!"; mysql_query("UPDATE user_data SET usysclass = 3, mushroom = mushroom-25000 WHERE user_id = " . $coodata . " LIMIT 1"); } } else { $output_h = "Nie!"; $output = "VIP je exkluzívne! Zožeň si viac hubičiek.."; } } else { $output_h = "Error"; $output = "Nastala nejaká chyba"; } } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="de" dir="ltr"> <title>Spezial-Shop</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="expires" content="300"> <meta http-equiv="cache-control" content="private"> <meta name="robots" content="noindex, nofollow, noarchive"> <meta name="MSSmartTagsPreventParsing" content="true"> <link rel="stylesheet" type="text/css" href="res/shop/style.css"> </head> <?php if(isset($_POST["doit"])) { // Todo Seite nach 3 Sekunden schließen ?> <body> <!-- Design by Sascha 4 psfgame.de --> <?php } else { ?> <body> <!-- Design by Sascha 4 psfgame.de --> <?php } ?> <div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin:auto;" > <center> <h1><b>Special-Shop</b></h1> Stále ti niečo chýba, a preto su ti prišiel? <b>Tu</b> dostaneš hocičo!<br>Vaše peniaze: <?=number_format($u_data["silver"]/100,0)?> <img src="res/shop/icon_gold.png" border="0" /> <?=$u_data["mushroom"]?> <img src="res/shop/icon_pilz.png" border="0" /> </center><br> </div> <br> <?php if(proof_uid_cookie($_COOKIE["uid"]) == "1" && !isset($_POST["doit"])) { ?> <form action="<?=$_SERVER["PHP_SELF"] ?>" method="post" enctype="multipart/form-data" target="_self"> <?php if(isset($_POST["p1"]) || !isset($_POST["p2"]) && !isset($_POST["p1"])) { ?> <div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin:auto;"> <div id="item"><img src="res/shop/snack.png" align="left" hspace="5px"></div> Ste stále smedný ale barman si myslí,že máte dosť? Tak si kúpte občerstvenie! Cena: 1 občerstvenie, 4 húbičky. Cena: 10 občerstvení, 44 húbičiek <hr> <center><input type="submit" name="snack_m" value="Zjesť meso"> <input type="submit" name="snack_l" value="Zjesť meso 10 krát"></center> </div><br> <div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin: auto;"> <div id="item"><img src="res/shop/klo.png" align="left" hspace="5px"></div> Máte upchatú toaletu? Potom si zavolajte škriatkov ktorý vám prinesú čarovný toaletný papier, ktorý vám pomôže zase niečo do záchodu hodiť! Samozrejme škriatkovia sú drahý. Cena: 75 húbičiek <hr> <center><input type="submit" name="klo" value="Zavolať škriatka"></center> </div><br> <div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin: auto;"> <div id="item"><img src="res/shop/weaponbuff.png" align="left" hspace="5px"></div> V ohňoch hory osudu .... žije ork. Divný chlapík ale pozná čo potrebujete!. Min & Max Poškodenie +10 .. Cena: 400 hubičiek <hr> <center><input type="submit" name="wpn" value="Aktivovať (deaktivované)" disabled="disabled"></center> </div><br> <div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin: auto;"> <div id="item"><img src="res/shop/accbuff.png" align="left" hspace="5px"></div> Tajomný elixír Miraculix: Všetky atribúty +300. Cena: 49 húbičiek <hr> <center><input type="submit" name="bff" value="Vypiť Miraculix"></center> </div><br> <?php } elseif(isset($_POST["p2"])) { if($u_data["usysclass"] < 3) { $ttrank_button = "<input type=\"submit\" name=\"tranktrank\" value=\"Iba pre VIP!\" disabled=\"disabled\">"; } else { $ttrank_button = "<input type=\"submit\" name=\"tranktrank\" value=\"Vypiť h#&đ&ý elixír\">"; } ?> <div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin:auto;"> <div id="item"><img src="res/shop/potbuff.png" align="left" hspace="5px"></div> Nová várka od tajomných elfov v lese! Chuti ako h%&?o.Tento elixír vám predlží všetky elixíry o 72 hodín. Cena: 50 hubičiek (iba pre VIP) <hr> <center><?=$ttrank_button ?></center> </div><br> <?php if($u_data["usysclass"] >= 3) { $gtop_xl_button = "<input type=\"submit\" name=\"gtop_xl\" value=\"(XL) " . number_format($shop_gtop_shroom_xl*$shop_gtop_multi*$u_data["lvl"]*0.8,0) . " Gold\">"; } else { $gtop_xl_button = "<input type=\"submit\" name=\"gtop_xl\" value=\"VIP only!\" disabled=\"disabled\">"; } ?> <div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin: auto;"> <div id="item"><img src="res/shop/gtop.png" align="left" hspace="5px"></div> Naliehavo potrebujete hubičky ale žiadne nemáte? M: <?=$shop_gtop_shroom ?> P. (<?=number_format($shop_gtop_multi*$u_data["lvl"],0) ?>:1)<br>L: <?=$shop_gtop_shroom_l ?> P. (<?=number_format($shop_gtop_multi*$u_data["lvl"]*0.9,0) ?>:1) (-10%) -<font color="#00FF33"> XL: <?=$shop_gtop_shroom_xl ?> P. (<?=number_format($shop_gtop_multi*$u_data["lvl"]*0.8,0) ?>:1) (-20%) (Iba pre VIP)</font> <hr> <center><input type="submit" name="gtop_m" value="(M) <?=number_format($shop_gtop_shroom*$shop_gtop_multi*$u_data["lvl"],0) ?> Gold"> <input type="submit" name="gtop_l" value="(L) <?=number_format($shop_gtop_shroom_l*$shop_gtop_multi*$u_data["lvl"]*0.9,0) ?> Gold"> <?=$gtop_xl_button ?></center> </div><br> <div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin: auto;"> <div id="item"><img src="res/shop/ptog.png" align="left" hspace="5px"></div> Ahoj! Daj sem 10 húbičiek a dostaneš 100.000 Goldov! <hr> <center><input type="submit" name="ptog" value="No daj!"></center> </div><br> <div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin: auto;"> <div id="item"><img src="res/shop/vip.png" align="left" hspace="5px"></div> Chceš mať <font color="#00FF33">Farebné meno</font> A mať prednosť na podpore?<br> Tak VIP stojí 25.000 Hubičiek. <hr> <center><input type="submit" name="vip" value="Kúpiť VIP"></center> </div><br> <?php } ?> <input type="hidden" name="doit" value="yes" /> </form>
<form action="<?=$_SERVER["PHP_SELF"] ?>" method="post" enctype="multipart/form-data" target="_self"> <div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin: auto;"> <div align="right"> <?php if(isset($_POST["p2"])) { ?> <input type="submit" name="p1" value="1 Strana"> <?php } else { ?> <input type="submit" name="p2" value="2 Strana"> <?php } ?> </div> </div> </form> <?php } elseif(proof_uid_cookie($_COOKIE["uid"]) == "0" && !isset($_POST["doit"])) { // seite aufgerufen aber kein cookie ?><br><br><br><br><br> <div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin:auto;" > <center> <h1><b>Error</b></h1> </center><br> </div> <?php } elseif(proof_uid_cookie($_COOKIE["uid"]) == "0" && isset($_POST["doit"])) { // struktureller fehler ?><br><br><br><br><br> <div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin:auto;" > <center> <h1><b>Error</b></h1> </center><br> </div> <?php } elseif(proof_uid_cookie($_COOKIE["uid"]) == "1" && isset($_POST["doit"])) { // ausgewerteter vorgang - kauf abgeschlossen oder fehler ?><br><br><br><br><br> <div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin:auto;" > <center> <h1><b><?=$output_h?></b></h1> <h3><?=$output?></h3> <a href="javascript:window.close()">Zavrieť stránku.</a> </center><br> </div> <?php } ?> </body> </html>
|
|
|
07/01/2014, 13:44
|
#11
|
elite*gold: 0
Join Date: Jul 2011
Posts: 88
Received Thanks: 18
|
Thanks, very good job!
I'm translate hungary you can not go wrong
|
|
|
07/01/2014, 14:04
|
#12
|
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
|
Quote:
Originally Posted by EptunLP
Okay 
Btw ..... skype
What i have wrong? I edited it in my language and shop.php stopped working. Please help
PHP Code:
<?php
require_once("dtoverride.php");
dbc();
$coodata = secure_uid_cookie($_COOKIE["uid"]);
// get config
$cfg = array();
$sql = "SELECT * FROM game_settings WHERE setting IN ('SHOP_GTOP_MULTI', 'SHOP_GTOP_SHROOM', 'SHOP_GTOP_SHROOM_L', 'SHOP_GTOP_SHROOM_XL') ORDER BY id ASC";
$qry = mysql_query($sql);
while($row = mysql_fetch_assoc($qry))
{
$cfg[] = $row;
}
$shop_gtop_multi = $cfg[0]['value'];
$shop_gtop_shroom = $cfg[1]['value'];
$shop_gtop_shroom_l = $cfg[2]['value'];
$shop_gtop_shroom_xl = $cfg[3]['value'];
// end of config
if(proof_uid_cookie($_COOKIE["uid"]) == "1" && !isset($_POST["doit"]))
{
$u_data = mysql_fetch_assoc(mysql_query("SELECT lvl, silver, usysclass, mushroom FROM user_data WHERE user_id = " . $coodata . " LIMIT 1"));
}
elseif(proof_uid_cookie($_COOKIE["uid"]) == "1" && isset($_POST["doit"]))
{
$u_data = mysql_fetch_assoc(mysql_query("SELECT lvl, silver, usysclass, mushroom, potion_time1, potion_time2, potion_time3 FROM user_data WHERE user_id = " . $coodata . " LIMIT 1"));
if(isset($_POST["snack_m"]))
{
if($u_data["mushroom"] >= 4)
{
$output_h = "Mňam";
$output = "Určite to bolo vynikajúce, barman vám určite dá ešte pivo ";
mysql_query("UPDATE user_data SET mushroom = mushroom-4, beers = beers-1 WHERE user_id = " . $coodata . " LIMIT 1");
}
else
{
$output_h = "Nee";
$output = "Du musst ein paar Pilze zusammen bekommen.. Durch Quests.. Ach ne geht ja nicht.. hm..";
}
}
elseif(isset($_POST["snack_l"]))
{
if($u_data["mushroom"] >= 44)
{
$output_h = "Yummy";
$output = "Das war bestimmt lecker.. So gestärkt sollte der Barkeeper bestimmt noch ein Bier geben.";
mysql_query("UPDATE user_data SET mushroom = mushroom-44, beers = beers-10 WHERE user_id = " . $coodata . " LIMIT 1");
}
else
{
$output_h = "Nee";
$output = "Du musst ein paar Pilze zusammen bekommen.. Durch Quests.. Ach ne geht ja nicht.. hm..";
}
}
elseif(isset($_POST["klo"]))
{
if($u_data["mushroom"] >= 75)
{
$output_h = "Pracovitý..";
$output = "A dokonca aj toaleta je opäť čistá.";
mysql_query("UPDATE user_data SET mushroom = mushroom-75, toilet_full = 0 WHERE user_id = " . $coodata . " LIMIT 1");
}
else
{
$output_h = "Ospravdlňte ma";
$output = "Škriatkovia budú radšej pracovať inde. Nemáte dostatok húbičiek";
}
}
/*elseif(isset($_POST["wpn"]))
{
if($u_data["mushroom"] >= 400)
{
$output_h = "Ui..";
$output = "Wer hätte gedacht, dass man diese Waffe noch verbessern kann..?";
mysql_query("UPDATE user_data SET mushroom = mushroom-150 WHERE user_id = " . $coodata . " LIMIT 1");
mysql_query("UPDATE items SET dmg_min = dmg_min+10, dmg_max = dmg_max+10 WHERE slot = 8 AND owner_id = " . $coodata . " LIMIT 1");
}
else
{
$output_h = "Nope..";
$output = "Naja immerhin wusstest Du den Preis vorher und bist nicht umsonst nach Mittelerde gereist.";
}
}*/
elseif(isset($_POST["bff"]))
{
if($u_data["mushroom"] >= 0)
{
$output_h = "Platba úspešná..";
$output = "A teraz sa pozri na svoj charakter!.";
mysql_query("UPDATE user_data SET mushroom = mushroom-49, attr_str = attr_str+300,attr_agi = attr_agi+300, attr_int= attr_int+300, attr_wit = attr_wit+300, attr_luck = attr_luck+300 WHERE user_id = " . $coodata . " LIMIT 1");
}
else
{
$output_h = "Nie!";
$output = "Nemáte dostatok húbičiek";
}
}
elseif(isset($_POST["tranktrank"]))
{
if($u_data["usysclass"] >= 3)
{
if($u_data["mushroom"] >= 50)
{
$longer = 259200; // 3 days
if($u_data["potion_time1"] == 0 && $u_data["potion_time2"] == 0 && $u_data["potion_time3"] == 0)
{
$output_h = "???";
$output = "Nemáte vypitý žiadny elixír. Tak čo chcete predlžiť?";
}
else
{
if($u_data["potion_time1"] != 0)
{
$pot1 = $u_data["potion_time1"]+$longer;
}
else
{
$pot1 = 0;
}
if($u_data["potion_time2"] != 0)
{
$pot2 = $u_data["potion_time2"]+$longer;
}
else
{
$pot2 = 0;
}
if($u_data["potion_time3"] != 0)
{
$pot3 = $u_data["potion_time3"]+$longer;
}
else
{
$pot3 = 0;
}
$output_h = "Fuj!";
$output = "Ako môžete zaplatiť za h&#>o? A ešte huby?";
mysql_query("UPDATE user_data SET mushroom = mushroom-50, potion_time1 = " . $pot1 . ", potion_time2 = " . $pot2 . ", potion_time3 = " . $pot3 . " WHERE user_id = " . $coodata . " LIMIT 1");
}
}
else
{
$output_h = "Nie!";
$output = "Nemáš huby!";
}
}
else
{
$output_h = "VIP";
$output = "iba!";
}
}
elseif(isset($_POST["gtop_m"]))
{
if($u_data["lvl"] >= 100)
{
$neededsilver = $shop_gtop_multi*$u_data["lvl"]*$shop_gtop_shroom*100;
if($u_data["silver"] >= $neededsilver)
{
$output_h = "Jo..";
$output = "Beehren sie uns bald wieder.. Aber nicht so schnell.. ^^";
mysql_query("UPDATE user_data SET silver = silver-" . $neededsilver . ", mushroom = mushroom+" . $shop_gtop_shroom . " WHERE user_id = " . $coodata . " LIMIT 1");
}
else
{
$output_h = "Tjaa";
$output = "Nemáš na to financie, prepáč...";
}
}
else
{
$output_h = "Sorry";
$output = "Musíte mať aspoň stý level.";
}
}
elseif(isset($_POST["gtop_l"]))
{
if($u_data["lvl"] >= 100)
{
$neededsilver = $shop_gtop_multi*$u_data["lvl"]*$shop_gtop_shroom_l*100*0.9;
if($u_data["silver"] >= $neededsilver)
{
$output_h = "Jo..";
$output = "Ďakujeme že ste použili naše služby ^^";
mysql_query("UPDATE user_data SET silver = silver-" . $neededsilver . ", mushroom = mushroom+" . $shop_gtop_shroom_l . " WHERE user_id = " . $coodata . " LIMIT 1");
}
else
{
$output_h = "Tjaa";
$output = "Nemáš na to financie, prepáč..";
}
}
else
{
$output_h = "Sorry";
$output = "Musíte mať aspoň stý level.";
}
elseif(isset($_POST["gtop_xl"]))
{
if($u_data["usysclass"] >= 3)
{
if($u_data["lvl"] >= 100)
{
$neededsilver = $shop_gtop_multi*$u_data["lvl"]*$shop_gtop_shroom_xl*100*0.8;
if($u_data["silver"] >= $neededsilver)
{
$output_h = "Jo..";
$output = "Ďakujeme že ste použili naše služby ^^";
mysql_query("UPDATE user_data SET silver = silver-" . $neededsilver . ", mushroom = mushroom+" . $shop_gtop_shroom_xl . " WHERE user_id = " . $coodata . " LIMIT 1");
}
else
{
$output_h = "Tjaa";
$output = "Nemáš na to financie, prepáč..";
}
}
else
{
$output_h = "Sorry";
$output = "Musíte mať aspoň stý level.";
}
}
else
{
$output_h = "VIP";
$output = "only!";
}
}
elseif(isset($_POST["ptog"]))
{
if($u_data["mushroom"] >= 10)
{
$output_h = "Ale počkaj..";
$output = "Teraz si pán :3";
mysql_query("UPDATE user_data SET silver = silver+10000000, mushroom = mushroom-10 WHERE user_id = " . $coodata . " LIMIT 1");
}
else
{
$output_h = "Tjaa";
$output = "Nemáš na to financie, prepáč..";
}
}
elseif(isset($_POST["vip"]))
{
if($u_data["mushroom"] >= 25000)
{
if($u_data["usysclass"] >= 3)
{
$output_h = "Error";
$output = "Buď ste už VIP alebo nemáte dostatok financií";
}
else
{
$output_h = "Gratulujem";
$output = "Teraz ste VIP!";
mysql_query("UPDATE user_data SET usysclass = 3, mushroom = mushroom-25000 WHERE user_id = " . $coodata . " LIMIT 1");
}
}
else
{
$output_h = "Nie!";
$output = "VIP je exkluzívne! Zožeň si viac hubičiek..";
}
}
else
{
$output_h = "Error";
$output = "Nastala nejaká chyba";
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="de" dir="ltr">
<title>Spezial-Shop</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="300">
<meta http-equiv="cache-control" content="private">
<meta name="robots" content="noindex, nofollow, noarchive">
<meta name="MSSmartTagsPreventParsing" content="true">
<link rel="stylesheet" type="text/css" href="res/shop/style.css">
</head>
<?php
if(isset($_POST["doit"]))
{ // Todo Seite nach 3 Sekunden schließen
?>
<body> <!-- Design by Sascha 4 psfgame.de -->
<?php
}
else
{
?>
<body> <!-- Design by Sascha 4 psfgame.de -->
<?php
}
?>
<div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin:auto;" >
<center>
<h1><b>Special-Shop</b></h1>
Stále ti niečo chýba, a preto su ti prišiel? <b>Tu</b> dostaneš hocičo!<br>Vaše peniaze: <?=number_format($u_data["silver"]/100,0)?> <img src="res/shop/icon_gold.png" border="0" /> <?=$u_data["mushroom"]?> <img src="res/shop/icon_pilz.png" border="0" />
</center><br>
</div>
<br>
<?php
if(proof_uid_cookie($_COOKIE["uid"]) == "1" && !isset($_POST["doit"]))
{
?>
<form action="<?=$_SERVER["PHP_SELF"] ?>" method="post" enctype="multipart/form-data" target="_self">
<?php
if(isset($_POST["p1"]) || !isset($_POST["p2"]) && !isset($_POST["p1"]))
{
?>
<div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin:auto;">
<div id="item"><img src="res/shop/snack.png" align="left" hspace="5px"></div>
Ste stále smedný ale barman si myslí,že máte dosť? Tak si kúpte občerstvenie! Cena: 1 občerstvenie, 4 húbičky. Cena: 10 občerstvení, 44 húbičiek
<hr>
<center><input type="submit" name="snack_m" value="Zjesť meso"> <input type="submit" name="snack_l" value="Zjesť meso 10 krát"></center>
</div><br>
<div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin: auto;">
<div id="item"><img src="res/shop/klo.png" align="left" hspace="5px"></div>
Máte upchatú toaletu? Potom si zavolajte škriatkov ktorý vám prinesú čarovný toaletný papier, ktorý vám pomôže zase niečo do záchodu hodiť! Samozrejme škriatkovia sú drahý. Cena: 75 húbičiek
<hr>
<center><input type="submit" name="klo" value="Zavolať škriatka"></center>
</div><br>
<div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin: auto;">
<div id="item"><img src="res/shop/weaponbuff.png" align="left" hspace="5px"></div>
V ohňoch hory osudu .... žije ork. Divný chlapík ale pozná čo potrebujete!. Min & Max Poškodenie +10 .. Cena: 400 hubičiek
<hr>
<center><input type="submit" name="wpn" value="Aktivovať (deaktivované)" disabled="disabled"></center>
</div><br>
<div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin: auto;">
<div id="item"><img src="res/shop/accbuff.png" align="left" hspace="5px"></div>
Tajomný elixír Miraculix: Všetky atribúty +300. Cena: 49 húbičiek
<hr>
<center><input type="submit" name="bff" value="Vypiť Miraculix"></center>
</div><br>
<?php
}
elseif(isset($_POST["p2"]))
{
if($u_data["usysclass"] < 3)
{
$ttrank_button = "<input type=\"submit\" name=\"tranktrank\" value=\"Iba pre VIP!\" disabled=\"disabled\">";
}
else
{
$ttrank_button = "<input type=\"submit\" name=\"tranktrank\" value=\"Vypiť h#&đ&ý elixír\">";
}
?>
<div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin:auto;">
<div id="item"><img src="res/shop/potbuff.png" align="left" hspace="5px"></div>
Nová várka od tajomných elfov v lese! Chuti ako h%&?o.Tento elixír vám predlží všetky elixíry o 72 hodín. Cena: 50 hubičiek (iba pre VIP)
<hr>
<center><?=$ttrank_button ?></center>
</div><br>
<?php
if($u_data["usysclass"] >= 3)
{
$gtop_xl_button = "<input type=\"submit\" name=\"gtop_xl\" value=\"(XL) " . number_format($shop_gtop_shroom_xl*$shop_gtop_multi*$u_data["lvl"]*0.8,0) . " Gold\">";
}
else
{
$gtop_xl_button = "<input type=\"submit\" name=\"gtop_xl\" value=\"VIP only!\" disabled=\"disabled\">";
}
?>
<div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin: auto;">
<div id="item"><img src="res/shop/gtop.png" align="left" hspace="5px"></div>
Naliehavo potrebujete hubičky ale žiadne nemáte? M: <?=$shop_gtop_shroom ?> P. (<?=number_format($shop_gtop_multi*$u_data["lvl"],0) ?>:1)<br>L: <?=$shop_gtop_shroom_l ?> P. (<?=number_format($shop_gtop_multi*$u_data["lvl"]*0.9,0) ?>:1) (-10%) -<font color="#00FF33"> XL: <?=$shop_gtop_shroom_xl ?> P. (<?=number_format($shop_gtop_multi*$u_data["lvl"]*0.8,0) ?>:1) (-20%) (Iba pre VIP)</font>
<hr>
<center><input type="submit" name="gtop_m" value="(M) <?=number_format($shop_gtop_shroom*$shop_gtop_multi*$u_data["lvl"],0) ?> Gold"> <input type="submit" name="gtop_l" value="(L) <?=number_format($shop_gtop_shroom_l*$shop_gtop_multi*$u_data["lvl"]*0.9,0) ?> Gold"> <?=$gtop_xl_button ?></center>
</div><br>
<div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin: auto;">
<div id="item"><img src="res/shop/ptog.png" align="left" hspace="5px"></div>
Ahoj! Daj sem 10 húbičiek a dostaneš 100.000 Goldov!
<hr>
<center><input type="submit" name="ptog" value="No daj!"></center>
</div><br>
<div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin: auto;">
<div id="item"><img src="res/shop/vip.png" align="left" hspace="5px"></div>
Chceš mať <font color="#00FF33">Farebné meno</font> A mať prednosť na podpore?<br>
Tak VIP stojí 25.000 Hubičiek.
<hr>
<center><input type="submit" name="vip" value="Kúpiť VIP"></center>
</div><br>
<?php
}
?>
<input type="hidden" name="doit" value="yes" />
</form>
<form action="<?=$_SERVER["PHP_SELF"] ?>" method="post" enctype="multipart/form-data" target="_self">
<div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin: auto;">
<div align="right">
<?php
if(isset($_POST["p2"]))
{
?>
<input type="submit" name="p1" value="1 Strana">
<?php
}
else
{
?>
<input type="submit" name="p2" value="2 Strana">
<?php
}
?>
</div>
</div>
</form>
<?php
}
elseif(proof_uid_cookie($_COOKIE["uid"]) == "0" && !isset($_POST["doit"]))
{ // seite aufgerufen aber kein cookie
?><br><br><br><br><br>
<div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin:auto;" >
<center>
<h1><b>Error</b></h1>
</center><br>
</div>
<?php
}
elseif(proof_uid_cookie($_COOKIE["uid"]) == "0" && isset($_POST["doit"]))
{ // struktureller fehler
?><br><br><br><br><br>
<div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin:auto;" >
<center>
<h1><b>Error</b></h1>
</center><br>
</div>
<?php
}
elseif(proof_uid_cookie($_COOKIE["uid"]) == "1" && isset($_POST["doit"]))
{ // ausgewerteter vorgang - kauf abgeschlossen oder fehler
?><br><br><br><br><br>
<div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin:auto;" >
<center>
<h1><b><?=$output_h?></b></h1>
<h3><?=$output?></h3>
<a href="javascript:window.close()">Zavrieť stránku.</a>
</center><br>
</div>
<?php
}
?>
</body>
</html>
|
Looks good.  try debugging with error_reporting(E_ALL)
|
|
|
07/01/2014, 14:08
|
#13
|
elite*gold: 0
Join Date: Nov 2013
Posts: 167
Received Thanks: 57
|
Okay
|
|
|
07/01/2014, 14:13
|
#14
|
elite*gold: 0
Join Date: Jul 2011
Posts: 88
Received Thanks: 18
|
Problem in ajax chat.. :/
Notice: Undefined index: ajax in C:\xampp\htdocs\ajax_chat.php on line 48
Notice: Undefined index: hid in C:\xampp\htdocs\ajax_chat.php on line 50
Notice: Undefined index: view in C:\xampp\htdocs\ajax_chat.php on line 51
Notice: Undefined index: del in C:\xampp\htdocs\ajax_chat.php on line 52
Notice: Undefined variable: old_s in C:\xampp\htdocs\dtoverride.php on line 441
Notice: Undefined variable: old_s in C:\xampp\htdocs\dtoverride.php on line 441
Notice: Undefined variable: old_s in C:\xampp\htdocs\dtoverride.php on line 441
Notice: Undefined variable: old_s in C:\xampp\htdocs\dtoverride.php on line 441
how to fix?
|
|
|
07/01/2014, 14:16
|
#15
|
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
|
go to php.ini
Find:
Code:
; This directive controls whether or not and where PHP will output errors,
; notices and warnings too. Error output is very useful during development, but
; it could be very dangerous in production environments. Depending on the code
; which is triggering the error, sensitive information could potentially leak
; out of your application such as database usernames and passwords or worse.
; It's recommended that errors be logged on production servers rather than
; having the errors sent to STDOUT.
; Possible Values:
; Off = Do not display any errors
; stderr = Display errors to STDERR (affects only CGI/CLI binaries!)
; On or stdout = Display errors to STDOUT
; Default Value: On
; Development Value: On
; Production Value: Off
; http://php.net/display-errors
display_errors=On
Set to "Off"
|
|
|
Similar Threads
|
10€ Shakes and Fidget Code
10/14/2012 - Browsergames Trading - 0 Replies
Hi,
verkaufe hier ne 10er PSC die nur für Shakes and Fidget benutzt werden kann.
No permission
Gruß
|
Shakes and Fidget Code
04/20/2012 - elite*gold Trading - 0 Replies
Huhu,
Thread: hier der Thread
Mfg
|
Shakes & Fidget Pilze Code
04/08/2012 - elite*gold Trading - 1 Replies
Hey kurz knapp Code für 10 Pilze,
26 e*Gold hier die Treasure!
No permission
|
[S]Shakes und Fidget Code
11/23/2010 - elite*gold Trading - 7 Replies
Suche Shakes und Fidget Code für 150 Pilze.
Natürlich unbenutzt!
gogo :)
|
Shakes&Fidget Code 50e*gold
11/22/2010 - elite*gold Trading - 3 Replies
hier ist die Treasure:
No permission
|
All times are GMT +1. The time now is 21:29.
|
|