diff --git a/bin/deploy b/bin/deploy index 98bf1b8..7bb8b0f 100755 --- a/bin/deploy +++ b/bin/deploy @@ -17,7 +17,6 @@ RSYNC="/home/hosted/pouet/bin/rsync \ --exclude=othernfo \ --exclude=results \ --exclude=screenshots \ - --exclude=include/*.inc \ --exclude=rulez/*.log \ --exclude=tmp/* \ --exclude=include/auth.php \ diff --git a/bin/sync b/bin/sync index 098fef6..2e1294d 100755 --- a/bin/sync +++ b/bin/sync @@ -16,7 +16,6 @@ RSYNC="rsync --recursive \ --exclude=othernfo \ --exclude=results \ --exclude=screenshots \ - --exclude=include/*.inc \ --exclude=rulez/*.log \ --exclude=tmp/* \ --exclude=include/auth.php \ @@ -39,7 +38,7 @@ function usage() copy_cache_from_live_to_test() { - ssh pouet cp $LIVE_PATH/include/*.inc $TEST_PATH/include/ + ssh pouet cp $LIVE_PATH/tmp/* $TEST_PATH/tmp/ ssh pouet cp $LIVE_PATH/include/auth.php $TEST_PATH/include/auth.php } diff --git a/bin/sync_v2 b/bin/sync_v2 index 6a531b8..5161221 100755 --- a/bin/sync_v2 +++ b/bin/sync_v2 @@ -20,7 +20,6 @@ RSYNC="rsync --recursive \ --exclude=othernfo \ --exclude=results \ --exclude=screenshots \ - --exclude=include/*.inc \ --exclude=rulez/*.log \ --exclude=include/auth.php \ --exclude=LAST_SCENEORG_CHECK \ diff --git a/include/misc.php b/include/misc.php index 98bfdb7..48d075d 100644 --- a/include/misc.php +++ b/include/misc.php @@ -1,5 +1,6 @@ 0) { - include('include/onelines.cache.inc'); + include(TMP_FOLDER.'/onelines.cache.inc'); $onelines = array_slice($onelines, 0, $user["indexoneliner"]); } @@ -25,34 +25,34 @@ $rs = @$rss->GetCached('http://bitfellas.org/e107_plugins/rss_menu/rss.php?1.2') // latest added prods if ($user["indexlatestadded"]>0) { - include('include/latest_demos.cache.inc'); + include(TMP_FOLDER.'/latest_demos.cache.inc'); $latest_demos = array_slice($latest_demos, 0, $user["indexlatestadded"]); } // latest released prods if ($user["indexlatestreleased"]>0) { - include('include/latest_released_prods.cache.inc'); + include(TMP_FOLDER.'/latest_released_prods.cache.inc'); $latest_released_prods = array_slice($latest_released_prods, 0, $user["indexlatestreleased"]); } // debut calcul top demos if ($user["indextopprods"]>0) { - include('include/top_demos.cache.inc'); + include(TMP_FOLDER.'/top_demos.cache.inc'); $top_demos = array_slice($top_demos, 0, $user["indextopprods"]); } if ($user["indextopkeops"]>0) { - include('include/top_keops.cache.inc'); + include(TMP_FOLDER.'/top_keops.cache.inc'); $top_keops = array_slice($top_keops, 0, $user["indextopkeops"]); } // latest commented prods if ($user["indexlatestcomments"]>0) { - include('include/latest_comments.cache.inc'); + include(TMP_FOLDER.'/latest_comments.cache.inc'); $latest_comments = array_slice($latest_comments, 0, $user["indexlatestcomments"]); } @@ -69,7 +69,7 @@ if ($user["indextopglops"]>0) if ($user["indexstats"]>0) { if (rand(0,11)==0) create_stats_cache(); - include('include/stats.cache.inc'); + include(TMP_FOLDER.'/stats.cache.inc'); } // cdc @@ -128,7 +128,7 @@ while($tmp = mysql_fetch_array($result)) { if ($user["indexlatestparties"]>0) { - include('include/latest_released_parties.cache.inc'); + include(TMP_FOLDER.'/latest_released_parties.cache.inc'); $latest_parties = array_slice($latest_released_parties, 0, $user["indexlatestparties"]); } diff --git a/rulez/update.php b/rulez/update.php index 340c279..a3c2ec7 100644 --- a/rulez/update.php +++ b/rulez/update.php @@ -1,4 +1,7 @@ -\n"); fclose($fp); } - -//require('../include/misc.php'); cant use that include couz i need relative path of /include/ - - ?> options: - all @@ -209,7 +208,6 @@ if ($ojuice||$all) print("ojuice stage 2!
"); } -require_once("../include/auth.php"); $dbinfo=$db; $db=mysql_connect($dbinfo['host'],$dbinfo['user'], $dbinfo['password']); mysql_select_db($dbinfo['database'],$db);