Ignore:
Timestamp:
Jan 31, 2008, 8:38:47 PM (17 years ago)
Author:
george
Message:

Upraveno: Přepsán přístup k databázi přes třídu mysqli v systémové složce.
Odstraněno: Staré verze souborů a staré nepoužité soubory.

Location:
system
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • system

    • Property svn:ignore set to
      nohup.out
  • system/backup/do-backup.php

    r1 r37  
    1 <?
    2 include('/a/html/db.php');
    3 DB_Init('localhost','root','','backup');
     1<?php
     2include('../html/global.php');
     3$Database->select_db('backup');
    44
    5 function mkdirrec($path,$mode) {
     5function mkdirrec($path,$mode)
     6{
    67  if (!is_dir($path)) {
    78    if (!@mkdir($path,$mode)) {
     
    1617// Nacti polozky z databaze
    1718$Rows = array();
    18 DB_Query("SELECT * FROM items WHERE parent=0");
    19 while($Row = DB_Row()) array_push($Rows,$Row);
     19$DbResult = $Database->query("SELECT * FROM items WHERE parent=0");
     20while($Row = $DbResult->fetch_array()) array_push($Rows,$Row);
    2021
    2122while ($Row = array_shift($Rows)) {
    2223  if ($Row['description']) echo('Zalohuji '.$Row['description']."\n");
    2324  // Nacteni vyjimek
    24   DB_Query("SELECT * FROM items WHERE parent=".$Row['id']);
     25  $DbResult = $Database->query("SELECT * FROM items WHERE parent=".$Row['id']);
    2526  $Exceptions = array();
    26   while($Except = DB_Row()) $Exceptions[$Except['name']] = 1;
     27  while($Except = $DbResult->fetch_array()) $Exceptions[$Except['name']] = 1;
    2728  // Prochazeni slozek
    2829  $root = $Row['name'];
Note: See TracChangeset for help on using the changeset viewer.