%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /data/www_bck/varak.net_bck/wow2.varak.net/stats/
Upload File :
Create Path :
Current File : //data/www_bck/varak.net_bck/wow2.varak.net/stats/make.php

<?php
  include "lib.php";
  
  /*$sql = "localhost";
  $usr = "waritko2";
  $pass = "yS8YhEb";
  $db = "waritko2";*/
  $sql = "wpc.kybli.net";
  $usr = "root";
  $pass = "waritko";
  $db = "characters";
  $step = 5;
  
  $spojeni = mysql_connect($sql, $usr, $pass);
	mysql_select_db($db, $spojeni);
	
	$honor = array();
  
  $txt = $xmlhead;
  $txt .= "<stats>\n";
  
  
  $cnt = q("select count(*) from `characters`");
  for($i = 0; $i < $cnt; $i += $step)
  {
    $j = $i+$step;
    $res = q("select name, race, class, data from `characters` order by guid limit $i, $j");
    print_r($res);
    foreach($res as $r)
    {
      $honor[]['name'] = $r[0];
      $honor[]['race'] = $r[1];
      $honor[]['class'] = $r[2];
      $data = explode(" ", $r[3]);
      //print_r($data);
      die;
    }
  }
  
  mysql_close($spojeni);  
  $txt .= "</stats>"
?>

Zerion Mini Shell 1.0