1. Dodanie pustych katalogów ./cache, ./db oraz ./data/*/archiwum.
2. Uwzględnienie w pliku budowania wyżej wymienionych katalogów.
3. Usunięcie linii dotyczących nieistniejącego katalogu ./test w BUILD.
4. Usuniecie sprawdzania możliwości zapisu do ./database jeśli katalog nie istnieje (test.php).
5. BotSession nie próbuje już usunąć pliku starej bazy (database/...), jeśli nie istnieje.
6. Wyciszenie błędów o brakującch indeksach w tablicy (wyniku parse_url) w BotUser.
4 files modified
6 files added
| | |
| | | # GIT |
| | | REMOVEGLOB /.git/* |
| | | REMOVEDIR /.git |
| | | |
| | | # TEST |
| | | REMOVEGLOB /test/* |
| | | REMOVEDIR /test |
| | | REMOVE /cache/.emptydir |
| | | REMOVE /data/humor/archiwum/.emptydir |
| | | REMOVE /data/kurs/archiwum/.emptydir |
| | | REMOVE /data/lotto/archiwum/.emptydir |
| | | REMOVE /data/tv/cache/.emptydir |
| | | REMOVE /db/.emptydir |
| | | |
| | | # Moje ustawienia |
| | | REPLACEBETWEEN /class/config.php "'numer' => '" ' "" |
| | |
| | | } |
| | | } |
| | | catch(Exception $e) { |
| | | @unlink(BOT_TOPDIR.'/database/'.sha1($this->user).'.sqlite'); |
| | | if(file_exists(BOT_TOPDIR.'/database/'.sha1($this->user).'.sqlite')) { |
| | | @unlink(BOT_TOPDIR.'/database/'.sha1($this->user).'.sqlite'); |
| | | } |
| | | throw $e; |
| | | } |
| | | } |
| | |
| | | $st->execute(array($this->class)); |
| | | } |
| | | } |
| | | ?> |
| | | ?> |
| | |
| | | $this->interface = $data['scheme']; |
| | | $this->uid = strtr($data['user'], array('\\@' => '@')); |
| | | $this->network = $data['host']; |
| | | $this->bot = substr($data['path'], 1); |
| | | $this->params = $data['query']; |
| | | $this->bot = substr(@$data['path'], 1); |
| | | $this->params = @$data['query']; |
| | | } |
| | | |
| | | function __get($name) { |
| | | return $this->$name; |
| | | } |
| | | } |
| | | ?> |
| | | ?> |
| | |
| | | testdir('./data/tv'); |
| | | testdir('./data/tv/cache'); |
| | | testdir('./db'); |
| | | testdir('./database'); |
| | | if(is_dir('./database')) { |
| | | testdir('./database'); |
| | | } |
| | | |
| | | echo '</table>'; |
| | | ?> |