From ab8ec5e5c9cc182e5177d868cedda464878631e7 Mon Sep 17 00:00:00 2001 From: niekt0 Date: Sat, 23 Oct 2010 00:46:42 +0200 Subject: [PATCH] path fixup + errors enabled --- README | 11 + control.php | 335 ------------------ doc/{README => INSTALL} | 22 +- {config => wwwroot/config}/config_default.inc | 0 wwwroot/nodes.php | 23 +- 5 files changed, 20 insertions(+), 371 deletions(-) create mode 100644 README delete mode 100644 control.php rename doc/{README => INSTALL} (56%) rename {config => wwwroot/config}/config_default.inc (100%) diff --git a/README b/README new file mode 100644 index 0000000..789acaa --- /dev/null +++ b/README @@ -0,0 +1,11 @@ +#Kyberia README + +##Kyberia + * This repository contains sources of Kyberia.sk website. + * See http://kyberia.sk/ and http://kyberia.cz/ for more. + +##COPYING + * everything in this repository + * is protected by copyright of it's respective author(s) + * is licensed as specified in COPYING file in root of this repository + * can be licensed somehow else if other licence was specified by author diff --git a/control.php b/control.php deleted file mode 100644 index e323ac9..0000000 --- a/control.php +++ /dev/null @@ -1,335 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -
">Filename ">MTime ">Size ">Reloads ">Hits 
KB ()
- - - - - - - - - - - - - - - - -
NameCreatedSizettl
KB
- - - - - eAccelerator control panel - - - - - - - - - - -

eAccelerator control panel

- - -

Information

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Caching enabled
Optimizer enabled
Memory usage% - (MB/ - MB)
Free memoryMB
Cached scripts
Removed scripts
Cached keys
- - - -

Actions

-
- - - - - - - - - - - - - - - - - - - - - -
Caching
Optimizer
Clear cache
Clean cache
Purge cache
-
- - -

Cached scripts

- - -

Removed scripts

- - -Cached keys"; - create_key_table(eaccelerator_list_keys()); -} -?> - - -

- - -
- eA logo - Created by the eAccelerator team, http://eaccelerator.net

- eAccelerator [shm: sem:]
- PHP [ZE ]
- Using on
-
- - - - - diff --git a/doc/README b/doc/INSTALL similarity index 56% rename from doc/README rename to doc/INSTALL index 1a22688..5ad96b6 100644 --- a/doc/README +++ b/doc/INSTALL @@ -1,25 +1,14 @@ -#Kyberia README - -##Kyberia - * This repository contains sources of Kyberia.sk website. - * See http://kyberia.sk/ and http://kyberia.cz/ for more. - -##COPYING - * everything in this repository - * is protected by copyright of it's respective author(s) - * is licensed as specified in COPYING file in root of this repository - * can be licensed somehow else if other licence was specified by author - ## How to make your kyberia run. -1. Install: apache2 (+php support), mysql +1. Install: apache2 (+php&mysql support ), mysql 2. Create mysql account ( create user kyberia identified by "pass") 3. Create database kyberia2 (as user kyberia) 4. Import data (mysql -u kyberia -p kyberia2 < kyberia_2.3_...sql ) -5. Copy http dir from svn into your www-root (for example cp kyberia/trunk /var/www/ ) +5. Copy http dir from repository into your www-root ( XXX) 6. Copy kyberia-data dir into same directory. -7. Copy 003-kyberia.conf (apache2 conf. file) into /etc/apache2/sites-enabled. Edit if needed. -8. Maybe you will need something apache configuration tweaks (like a2enmod rewrite). +7. Include kyberia.conf into your apache conf. + (dir /etc/apache2/sites-enabled in debian). Edit if needed. +8. Maybe you will need some apache configuration tweaks (like a2enmod rewrite). 9. Start apache and mysql (something like /etc/init.d/apache2 start, ...) 10. Set DB login data in inc/db.inc 11. Depends on your DNS, maybe add alias www.localhost to /etc/hosts file. @@ -27,6 +16,7 @@ 13. Find out why it is still not working. (check permisions, symlinks, directory names...) 14. If you want full functionality, add following lines to your www users crontab + XXX */2 * * * * /path-to-kyberia-wwwroot/cron/logoutidle.php 0 0 * * * /path-to-kyberia-wwwroot/cron/k.php */3 * * * * /path-to-kyberia-wwwroot/cron/process-img.sh diff --git a/config/config_default.inc b/wwwroot/config/config_default.inc similarity index 100% rename from config/config_default.inc rename to wwwroot/config/config_default.inc diff --git a/wwwroot/nodes.php b/wwwroot/nodes.php index 8b3e150..5783ffd 100644 --- a/wwwroot/nodes.php +++ b/wwwroot/nodes.php @@ -2,29 +2,12 @@ // output buffering forcing (mx) if (!empty($_POST['FORCE_OB']) && $_POST['FORCE_OB'] == 'true') ob_start(); -//header("Location: http://kyberia.sk"); -// just a little joke:-))) darkaural -//header("Location: http://kenny.in-the-hell.org/albums/album22/HPIM1443.sized.jpg"); -//header("Location: http://zoznamka.azet.sk/inzeraty.phtml?&kat=8"); //header("Location: http://web.archive.org/web/20020925021139/http://kyberia.sk"); -//echo "este posledna pauza :)"; -//exit; -//die("tak este nie ;o)
uplatky posielajte postovou poukazkou ;-p
prajem pekny den
stab
"); //echo "je to uz uplne v pici. vsetky data su stratene, prajem pekny den :)"; //exit; -error_reporting(0); -// echo "
prvy april presiel ale ja nechcem byt koderom azetu takze ring volny
"; -//echo "ehm, roztiekla sa databaza, zachovajte paniku, snad sme o hodinku spat ;)
br"; -//echo "establishing artificial environment

healing database inconsistency.comeback today
"; -//echo '

je mi luto, ale nachvilku to musim sundat ;). s pozdravom brrrrr
'; -//echo '

je mi luto, ale nachvilku to musim sundat ;). s pozdravom br
'; -//session_start(); -//if ($_GET['node_id'] != 2334 && $_SESSION['user_id'] != '2334' && $_SESSION['user_id'] != 2095638 && $_SESSION['user_id'] != 2088 && $_GET['node_id'] != 1478235) { -//echo "


"; -//echo "

snazime sa nieco spravit s rychlostou, stay tuned.


"; -//echo "PS: my sme to odpojili z vonka
"; +error_reporting(1); //exit; -//} + //starting timer for benchmarking purposes $timer_start=Time()+SubStr(MicroTime(),0,8); @@ -44,7 +27,7 @@ if ($_SESSION['debugging']) { } //requiring main config file with path/database etc. constants -require('../config/config.inc'); +require('config/config.inc'); require(INCLUDE_DIR.'senate.inc'); preg_match("/id\/(.*)\//",$_SERVER['HTTP_REFERER'],$ref_match); -- 2.30.2