Postado Abril 29, 2014 11 anos Olha la no final do topico: #REMOVIDO Pena que o link do ots.me n ta funcionando =x Editado Abril 29, 2014 11 anos por lamina (veja o histórico de edições) Antica Global - Server Online SITE: http://anticaglobal.com/ IP: anticaglobal.com EXP: 999x [sTAGES] ML: 300x SKILL: 500x LOOT: 10x VERSÃO: 10.77 PORTA: 7171 Stages: 1 - 8 level, 999x 9 - 20 level, 950x 21 - 50 level, 800x 51 - 100 level, 750x 101 - 130 level, 650x 131 - 180 level, 550x 181 - 230 level, 450x 231 - 300 level, 350x 301+ level, 300x
Postado Abril 29, 2014 11 anos lamina, você cometeu dois erros, um por cometer flood (quando precisar comentar novamente, edite seu ultimo comentário, só pode dar "up" depois de 24 horas) e outro por coloca o link de outro fórum, por favor, retire! Pois bem, sobre sua dúvida, é o que tu falou .. se a versão do seu PHP foi menor que 5.3 use este classes/databaselist.php: <?php if(!defined('INITIALIZED')) exit; class DatabaseList extends DatabaseHandler implements Iterator, Countable { public $data; public $iterator = 0; public $class; public $table; public $tables = array(); public $fields = array(); public $extraFields = array(); public $filter; public $orders = array(); public $limit; public $offset = 0; public function __construct($class = null) { if($class !== null) $this->setClass($class); } public function load() { $fieldsArray = array(); if(count($this->fields) > 0) foreach($this->fields as $fieldName) $fieldsArray[$fieldName] = $this->getDatabaseHandler()->tableName($this->table) . '.' . $this->getDatabaseHandler()->fieldName($fieldName); if(count($this->extraFields) > 0) foreach($this->extraFields as $field) if(!$field->hasAlias()) $fieldsArray[] = $this->getDatabaseHandler()->tableName($field->getTable()) . '.' . $this->getDatabaseHandler()->fieldName($field->getName()); else $fieldsArray[] = $this->getDatabaseHandler()->tableName($field->getTable()) . '.' . $this->getDatabaseHandler()->fieldName($field->getName()) . ' AS ' . $this->getDatabaseHandler()->fieldName($field->getAlias()); $tables = array(); foreach($this->tables as $table) $tables[] = $this->getDatabaseHandler()->tableName($table); $filter = ''; if($this->filter !== null) $filter = ' WHERE ' .$this->filter->__toString(); $order = ''; $orders = array(); if(count($this->orders) > 0) { foreach($this->orders as $_tmp_order) $orders[] = $_tmp_order->__toString(); if(count($orders) > 0) $order = ' ORDER BY ' . implode(', ', $orders); } $limit = ''; if($this->limit !== null) $limit = ' LIMIT ' . (int) $this->limit; $offset = ''; if($this->offset > 0) $offset = ' OFFSET ' . (int) $this->offset; $query = 'SELECT ' . implode(', ', $fieldsArray) . ' FROM ' . implode(', ', $tables) . $filter . $order . $limit . $offset; $this->data = $this->getDatabaseHandler()->query($query)->fetchAll(); } public function getResult($id) { if(!isset($this->data)) $this->load(); if(isset($this->data[$id])) { if(!is_object($this->data[$id])) { $reflect = new ReflectionClass($this->class); $_tmp = $reflect->newInstanceArgs(array()); $_tmp->loadData($this->data[$id]); return $_tmp; } else return $this->data[$id]; } else return false; } public function addExtraField($field) { $this->extraFields[] = $field; $this->addTables($field->getTable()); } public function addOrder($order) { $this->orders[] = $order; } public function setClass($class) { $this->class = $class; $reflect = new ReflectionClass($this->class); $instance = $reflect->newInstanceArgs(array()); $this->fields = $instance::$fields; if(isset($instance::$extraFields)) foreach($instance::$extraFields as $extraField) { if(!isset($extraField[2])) $this->extraFields[] = new SQL_Field($extraField[0], $extraField[1]); else $this->extraFields[] = new SQL_Field($extraField[0], $extraField[1], $extraField[2]); $this->tables[$extraField[1]] = $extraField[1]; } $this->table = $instance::$table; $this->tables[$instance::$table] = $instance::$table; } public function setFilter($filter) { $this->addTables($filter->getTables()); $this->filter = $filter; } public function setLimit($limit) { $this->limit = $limit; } public function setOffset($offset) { $this->offset = $offset; } public function addTables($tables) { if(is_array($tables)) { foreach($tables as $table) if($table != '' && !in_array($table, $this->tables)) $this->tables[$table] = $table; } elseif($tables != '' && !in_array($tables, $this->tables)) $this->tables[$tables] = $tables; } public function current() { return $this->getResult($this->iterator); } public function rewind() { if(!isset($this->data)) $this->load(); $this->iterator = 0; } public function next() { ++$this->iterator; } public function key() { return $this->iterator; } public function valid() { return isset($this->data[$this->iterator]); } public function count() { if(!isset($this->data)) $this->load(); return count($this->data); } } Espero que funcione ... agora fica a dica, atualize o seu xampp para a versão 1.7.3 ao invés de mudar isso! STYLLER OT 2022
Postado Abril 29, 2014 11 anos lamina, você cometeu dois erros, um por cometer flood (quando precisar comentar novamente, edite seu ultimo comentário, só pode dar "up" depois de 24 horas) e outro por coloca o link de outro fórum, por favor, retire! Pois bem, sobre sua dúvida, é o que tu falou .. se a versão do seu PHP foi menor que 5.3 use este classes/databaselist.php: <?php if(!defined('INITIALIZED')) exit; class DatabaseList extends DatabaseHandler implements Iterator, Countable { public $data; public $iterator = 0; public $class; public $table; public $tables = array(); public $fields = array(); public $extraFields = array(); public $filter; public $orders = array(); public $limit; public $offset = 0; public function __construct($class = null) { if($class !== null) $this->setClass($class); } public function load() { $fieldsArray = array(); if(count($this->fields) > 0) foreach($this->fields as $fieldName) $fieldsArray[$fieldName] = $this->getDatabaseHandler()->tableName($this->table) . '.' . $this->getDatabaseHandler()->fieldName($fieldName); if(count($this->extraFields) > 0) foreach($this->extraFields as $field) if(!$field->hasAlias()) $fieldsArray[] = $this->getDatabaseHandler()->tableName($field->getTable()) . '.' . $this->getDatabaseHandler()->fieldName($field->getName()); else $fieldsArray[] = $this->getDatabaseHandler()->tableName($field->getTable()) . '.' . $this->getDatabaseHandler()->fieldName($field->getName()) . ' AS ' . $this->getDatabaseHandler()->fieldName($field->getAlias()); $tables = array(); foreach($this->tables as $table) $tables[] = $this->getDatabaseHandler()->tableName($table); $filter = ''; if($this->filter !== null) $filter = ' WHERE ' .$this->filter->__toString(); $order = ''; $orders = array(); if(count($this->orders) > 0) { foreach($this->orders as $_tmp_order) $orders[] = $_tmp_order->__toString(); if(count($orders) > 0) $order = ' ORDER BY ' . implode(', ', $orders); } $limit = ''; if($this->limit !== null) $limit = ' LIMIT ' . (int) $this->limit; $offset = ''; if($this->offset > 0) $offset = ' OFFSET ' . (int) $this->offset; $query = 'SELECT ' . implode(', ', $fieldsArray) . ' FROM ' . implode(', ', $tables) . $filter . $order . $limit . $offset; $this->data = $this->getDatabaseHandler()->query($query)->fetchAll(); } public function getResult($id) { if(!isset($this->data)) $this->load(); if(isset($this->data[$id])) { if(!is_object($this->data[$id])) { $reflect = new ReflectionClass($this->class); $_tmp = $reflect->newInstanceArgs(array()); $_tmp->loadData($this->data[$id]); return $_tmp; } else return $this->data[$id]; } else return false; } public function addExtraField($field) { $this->extraFields[] = $field; $this->addTables($field->getTable()); } public function addOrder($order) { $this->orders[] = $order; } public function setClass($class) { $this->class = $class; $reflect = new ReflectionClass($this->class); $instance = $reflect->newInstanceArgs(array()); $this->fields = $instance::$fields; if(isset($instance::$extraFields)) foreach($instance::$extraFields as $extraField) { if(!isset($extraField[2])) $this->extraFields[] = new SQL_Field($extraField[0], $extraField[1]); else $this->extraFields[] = new SQL_Field($extraField[0], $extraField[1], $extraField[2]); $this->tables[$extraField[1]] = $extraField[1]; } $this->table = $instance::$table; $this->tables[$instance::$table] = $instance::$table; } public function setFilter($filter) { $this->addTables($filter->getTables()); $this->filter = $filter; } public function setLimit($limit) { $this->limit = $limit; } public function setOffset($offset) { $this->offset = $offset; } public function addTables($tables) { if(is_array($tables)) { foreach($tables as $table) if($table != '' && !in_array($table, $this->tables)) $this->tables[$table] = $table; } elseif($tables != '' && !in_array($tables, $this->tables)) $this->tables[$tables] = $tables; } public function current() { return $this->getResult($this->iterator); } public function rewind() { if(!isset($this->data)) $this->load(); $this->iterator = 0; } public function next() { ++$this->iterator; } public function key() { return $this->iterator; } public function valid() { return isset($this->data[$this->iterator]); } public function count() { if(!isset($this->data)) $this->load(); return count($this->data); } } Espero que funcione ... agora fica a dica, atualize o seu xampp para a versão 1.7.3 ao invés de mudar isso! Beleza, vou atualizar por que o erro foi pra linha 107 que é o mesmo code dando problema. Espero que funcione o gesior com a versão nova do xampp Mais aposto que vai aparecer mais 10 erro pra resolver 1 =x @Edit Como é que eu uso esse xampp 1.7.3, não conseguiu acessar page de segunração do apache pra criar a senha. =x Editado Abril 29, 2014 11 anos por lamina (veja o histórico de edições) Antica Global - Server Online SITE: http://anticaglobal.com/ IP: anticaglobal.com EXP: 999x [sTAGES] ML: 300x SKILL: 500x LOOT: 10x VERSÃO: 10.77 PORTA: 7171 Stages: 1 - 8 level, 999x 9 - 20 level, 950x 21 - 50 level, 800x 51 - 100 level, 750x 101 - 130 level, 650x 131 - 180 level, 550x 181 - 230 level, 450x 231 - 300 level, 350x 301+ level, 300x
Postado Abril 29, 2014 11 anos senha do phpmyadmin tu fala? Sim =x Beleza, consegui Obrigado cara Editado Abril 29, 2014 11 anos por lamina (veja o histórico de edições) Antica Global - Server Online SITE: http://anticaglobal.com/ IP: anticaglobal.com EXP: 999x [sTAGES] ML: 300x SKILL: 500x LOOT: 10x VERSÃO: 10.77 PORTA: 7171 Stages: 1 - 8 level, 999x 9 - 20 level, 950x 21 - 50 level, 800x 51 - 100 level, 750x 101 - 130 level, 650x 131 - 180 level, 550x 181 - 230 level, 450x 231 - 300 level, 350x 301+ level, 300x
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.