.htaccess | ●●●●● patch | view | raw | blame | history | |
BUILD | ●●●●● patch | view | raw | blame | history | |
INSTALL | ●●●●● patch | view | raw | blame | history | |
UPGRADE | ●●●●● patch | view | raw | blame | history | |
class/BotSession.php | ●●●●● patch | view | raw | blame | history | |
upgrade.php | ●●●●● patch | view | raw | blame | history |
.htaccess
@@ -31,9 +31,6 @@ <Files test.php> Allow from all </Files> <Files upgrade.php> Allow from all </Files> <Files index.html> Allow from all BUILD
@@ -7,7 +7,6 @@ REMOVEDIR /.git REMOVE /cache/.emptydir REMOVE /data/humor/archiwum/.emptydir REMOVE /data/kino/cache/.emptydir REMOVE /data/kurs/archiwum/.emptydir REMOVE /data/lotto/archiwum/.emptydir REMOVE /data/pogoda/.emptydir INSTALL
@@ -1,5 +1,4 @@ * rozpakuj archiwum z botem do wybranego folderu * usuń plik upgrade.php * zezwól na zapis (ustaw chmody) w folderach i ich podkatalogach: - ./cache - ./data UPGRADE
@@ -6,11 +6,6 @@ * zastąp plik ./modules/70_kino/handler.php * usuń katalog ./data/kino * zastąp plik ./.htaccess * wgraj plik ./upgrade.php * uruchom plik upgrade.php w przeglądarce * usuń plik ./upgrade.php =========================== AKTUALIZACJA Z WERSJI 2.3 =========================== @@ -24,11 +19,6 @@ * zastąp plik ./data/lotto/pobierz.php * usuń katalog ./data/kino * usuń wszystkie pliki z katalogu ./cache * zastąp plik ./.htaccess * wgraj plik ./upgrade.php * uruchom plik upgrade.php w przeglądarce * usuń plik ./upgrade.php ====================================== AKTUALIZACJA Z WERSJI 2.2/2.1/2.0 RC class/BotSession.php
@@ -37,6 +37,24 @@ $this->PDO = new PDO('sqlite:'.BOT_TOPDIR.'/database/'.sha1($this->user).'.sqlite'); $this->PDO->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $this->PDO->setAttribute(PDO::ATTR_ORACLE_NULLS, PDO::NULL_TO_STRING); $st = $this->PDO->query('SELECT value FROM data WHERE class=\'\' AND name=\'_version\''); if($st->rowCount > 0) { $row = $st->fetch(PDO::FETCH_ASSOC); $version = (int)$row['value']; } else { $version = 0; } $st->closeCursor(); if($version < 1) { $this->PDO->query('UPDATE data SET class=\'kino\' WHERE class=\'\' AND name=\'kino\''); $this->PDO->query('INSERT OR REPLACE INTO data (class, name, value) VALUES (\'\', \'_version\', 1)'); $version = 1; } return; } @@ -65,6 +83,8 @@ $this->PDO->beginTransaction(); $st = $this->PDO->prepare('INSERT OR REPLACE INTO data (class, name, value) VALUES (?, ?, ?)'); $st->execute(array('', '_version', 1)); foreach($files as $file) { $data = unserialize(file_get_contents($file)); foreach($data as $name => $value) { upgrade.php
File was deleted