Postado Setembro 1, 2016 8 anos 1 minuto atrás, Brendojb3 disse: vai na pasta system/pages e ver se tem a page do shop se tiver manda aki http://prntscr.com/cd1ucw tem essas coisas mas nada de shop O rei de seu proprio destino é aquele que luta pela gloria do amanhã! Discord : ZoR#9373
Postado Setembro 1, 2016 8 anos crie um arquivo la chamado SHop e add Spoiler <div class='message'> <div class='title'>Shop PokexMostyer</div> <div class='content'> <?PHP require("config.php"); $ots = POT::getInstance(); $ots->connect(POT::DB_MYSQL, connection()); $SQL = $ots->getDBHandle(); $ide = new IDE; $light = '#151515'; $dark = '#070707'; if ($ide->isLogged() == true) { include("shop/gifts.php"); } else echo '<div align="center"><br />Voce Precisa Estar Logado Para Ver Nosso Shop</div>'; ?> </div></div> Meu facebook Spoiler https://www.facebook.com/csbjgames1 Meu Projeto Spoiler https://www.facebook.com/otpMysterious/?fref=ts Meu Skype Spoiler brendo.dmg.yago Meu Servidor Online: Spoiler Em Construção
Postado Setembro 1, 2016 8 anos 2 minutos atrás, Brendojb3 disse: crie um arquivo la chamado SHop e add Ocultar conteúdo <div class='message'> <div class='title'>Shop PokexMostyer</div> <div class='content'> <?PHP require("config.php"); $ots = POT::getInstance(); $ots->connect(POT::DB_MYSQL, connection()); $SQL = $ots->getDBHandle(); $ide = new IDE; $light = '#151515'; $dark = '#070707'; if ($ide->isLogged() == true) { include("shop/gifts.php"); } else echo '<div align="center"><br />Voce Precisa Estar Logado Para Ver Nosso Shop</div>'; ?> </div></div> tou colocando tudo certo mas da erro Spoiler A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: 8192 Message: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 13 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: 8192 Message: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 13 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: 8192 Message: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 13 Shop System Succesfully Installed! Your shop system has been installed succesfully!! click HERE to see your shop meu server e de NTO O rei de seu proprio destino é aquele que luta pela gloria do amanhã! Discord : ZoR#9373
Postado Setembro 1, 2016 8 anos mande uma print da sua Data Base Meu facebook Spoiler https://www.facebook.com/csbjgames1 Meu Projeto Spoiler https://www.facebook.com/otpMysterious/?fref=ts Meu Skype Spoiler brendo.dmg.yago Meu Servidor Online: Spoiler Em Construção
Postado Setembro 2, 2016 8 anos 4 horas atrás, ZikaLord disse: tou colocando tudo certo mas da erro Mostrar conteúdo oculto A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: 8192 Message: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 13 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: 8192 Message: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 13 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: 8192 Message: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead Filename: config/functions.php Line Number: 12 A PHP Error was encountered Severity: Notice Message: Undefined index: database Filename: config/functions.php Line Number: 13 Shop System Succesfully Installed! Your shop system has been installed succesfully!! click HERE to see your shop meu server e de NTO eu tinha esse problema , consegui resolver usando esse functions.php veja se no seu tabém pega Spoiler <?php class shop { function connect() { $ots = POT::getInstance(); $ots->connect(POT::DB_MYSQL, connection()); return $ots->getDBHandle(); } function points($account) { $SQL = $this->connect(); $points = $SQL->query('SELECT premium_points FROM accounts WHERE name = "'.$account.'"')->fetch(); return $points['premium_points']; } function getPlayerAccount($name) { $SQL = $this->connect(); $player = $SQL->query('SELECT account_id FROM players WHERE name = "'.$name.'"')->fetch(); return $SQL->query('SELECT * from accounts WHERE id = '.$player['account_id'].''); } function AddPremium($name,$days) { $SQL = $this->connect(); $account = $this->getPlayerAccount($name)->fetch(); return $SQL->query('UPDATE accounts SET premdays = (premdays + '.$days.') WHERE name = "'.$account['name'].'"'); } function CharacterList($account) { $SQL = $this->connect(); $id = $SQL->query('SELECT id FROM accounts WHERE name = "'.$account.'"')->fetch(); return $SQL->query('SELECT * FROM players WHERE account_id = '.$id['id'].''); } function isOnline($name) { $SQL = $this->connect(); $player = $SQL->query('SELECT online FROM players WHERE name = "'.$name.'"')->fetch(); return $player['online']; } function isBanned($name) { $SQL = $this->connect(); $ID = $this->getPlayerAccount($name)->fetch(); return $SQL->query('SELECT * FROM bans WHERE value = '.$ID['id'].''); } function UnBan($name) { $SQL = $this->connect(); $ID = $this->getPlayerAccount($name)->fetch(); return $SQL->query('DELETE FROM bans WHERE value = '.$ID['id'].''); } function execute_file($file) { if (!file_exists($file)) { $this->last_error = "The file $file does not exist."; return false; } $str = file_get_contents($file); if (!$str) { $this->last_error = "Unable to read the contents of $file."; return false; } // split all the queries into an array $quote = ''; $line = ''; $sql = array(); $ignoreNextChar = ''; for ($i = 0; $i < strlen($str); $i++) { if ( !$ignoreNextChar ) { $char = substr($str, $i, 1); $line .= $char; if ($char == ';' && $quote == '') { $sql[] = $line; $line = ''; } else if ( $char == '\\' ) { // Escape char; ignore the next char in the string $ignoreNextChar = TRUE; } else if ($char == '"' || $char == "'" || $char == '`') { if ( $quote == '' ) // Start of a new quoted string; ends with same quote char $quote = $char; else if ( $char == $quote ) // Current char matches quote char; quoted string ends $quote = ''; } } else $ignoreNextChar = FALSE; } if ($quote != '') return false; foreach ($sql as $query) { if (!empty($query)) { $r = mysql_query($query); if (!$r) { $this->last_error = mysql_error(); return false; } } } return true; } function install() { $SQL = $this->connect(); if ($this->isInstalled()) return false; else return $this->execute_file("gifts/config/Shop.sql"); } } ?>
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.