if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
-}
+} // END - if
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
if (REQUEST_POST('cache_path') != getConfig('cache_path')) {
// Okay, cache path has been altered so we have to test it again!
REQUEST_SET_POST('cache_tested', 'Y');
- }
+ } // END - if
if ((REQUEST_POST('cache_admins') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile('admins'))) {
$GLOBALS['cache_instance']->destroyCacheFile();
- }
+ } // END - if
- if ((REQUEST_POST('cache_acls') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile("acls"))) {
+ if ((REQUEST_POST('cache_acls') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile('acls'))) {
$GLOBALS['cache_instance']->destroyCacheFile();
- }
+ } // END - if
- if ((REQUEST_POST('cache_exts') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile("extensions", true))) {
+ if ((REQUEST_POST('cache_exts') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile('extensions', true))) {
$GLOBALS['cache_instance']->destroyCacheFile();
- }
+ } // END - if
- if ((REQUEST_POST('cache_config') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile("config"))) {
+ if ((REQUEST_POST('cache_config') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile('config'))) {
$GLOBALS['cache_instance']->destroyCacheFile();
- }
+ } // END - if
- if ((REQUEST_POST('cache_modreg') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile("modreg"))) {
+ if ((REQUEST_POST('cache_modreg') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile('modreg'))) {
$GLOBALS['cache_instance']->destroyCacheFile();
- }
+ } // END - if
- if ((REQUEST_POST('cache_refdepth') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile("refdepth"))) {
+ if ((REQUEST_POST('cache_refdepth') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile('refdepth'))) {
$GLOBALS['cache_instance']->destroyCacheFile();
- }
+ } // END - if
- if ((REQUEST_POST('cache_refsys') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile("refsys"))) {
+ if ((REQUEST_POST('cache_refsys') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile('refsys'))) {
$GLOBALS['cache_instance']->destroyCacheFile();
- }
+ } // END - if
// Save configuration
ADMIN_SAVE_SETTINGS_POST();
} else {
// Prepare data
+ // @TODO Rewrite all constants
switch (getConfig('cache_admins')) {
case 'Y':
define('__ADMINS_Y', ' checked="checked"');
define('__ADMINS_Y', '');
define('__ADMINS_N', ' checked="checked"');
break;
- }
+ } // END - switch
switch (getConfig('cache_acls')) {
case 'Y':
define('__ACLS_Y', '');
define('__ACLS_N', ' checked="checked"');
break;
- }
+ } // END - switch
switch (getConfig('cache_exts')) {
case 'Y':
define('__EXTS_Y', '');
define('__EXTS_N', ' checked="checked"');
break;
- }
+ } // END - switch
switch (getConfig('cache_config')) {
case 'Y':
define('__CONFIG_Y', '');
define('__CONFIG_N', ' checked="checked"');
break;
- }
+ } // END - switch
switch (getConfig('cache_modreg')) {
case 'Y':
define('__MODREG_Y', '');
define('__MODREG_N', ' checked="checked"');
break;
- }
+ } // END - switch
switch (getConfig('cache_refdepth')) {
case 'Y':
define('__REFDEPTH_Y', '');
define('__REFDEPTH_N', ' checked="checked"');
break;
- }
+ } // END - switch
switch (getConfig('cache_refsys')) {
case 'Y':
define('__REFSYS_Y', '');
define('__REFSYS_N', ' checked="checked"');
break;
- }
+ } // END - switch
switch (getConfig('cache_themes')) {
case 'Y':
define('__THEMES_Y', '');
define('__THEMES_N', ' checked="checked"');
break;
- }
+ } // END - switch
switch (getConfig('cache_admin_menu')) {
case 'Y':
define('__ADMIN_MENU_Y', '');
define('__ADMIN_MENU_N', ' checked="checked"');
break;
- }
+ } // END - switch
define('__PATH', getConfig('cache_path'));
// Load template
- LOAD_TEMPLATE("admin_config_cache");
+ LOAD_TEMPLATE('admin_config_cache');
}
//
// Add description as navigation point
ADD_DESCR('guest', __FILE__);
-OUTPUT_HTML("<div style=\"padding-left: 10px; padding-right: 10px\">");
+OUTPUT_HTML('<div style="padding-left: 10px; padding-right: 10px">');
$rdf = new fase4_rdf();
$rdf->use_dynamic_display(false);
-$rdf->set_CacheDir(constant('PATH')."inc/cache/");
+$rdf->set_CacheDir(constant('PATH') . 'inc/cache/');
$rdf->set_salt(md5(getConfig('SITE_KEY')));
$rdf->set_max_item(10);
$rdf->set_Options(
-array(
- 'textinput' => "hidden",
- 'sitelink' => "http://www.wds66.com",
+ array(
+ 'textinput' => 'hidden',
+ 'sitelink' => 'http://www.wds66.com',
'refid' => getConfig('wernis_refid'),
- 'reflink' => "/ref.php?refid=",
-)
+ 'reflink' => '/ref.php?refid=',
+ )
);
// Use proxy?
} // END - if
} // END - if
-$rdf->parse_RDF("http://www.wds66.com/rss.xml");
+$rdf->parse_RDF('http://www.wds66.com/rss.xml');
-// Fix to avoid "headers already sent" bug. Thanks to Profi-Concept
+// Fix to avoid 'headers already sent' bug. Thanks to Profi-Concept
OUTPUT_HTML($rdf->finish(true));
-// @TODO Can this be removed? $rdf->clear_cache();
-OUTPUT_HTML("</div>");
+OUTPUT_HTML('</div>');
//
?>
<td colspan="2" class="seperator" height="10"> </td>
</tr>
<tr>
- <td class="switch_sw1" align="right" width="350" height="20">
+ <td align="right" width="350" height="20">
{--ADMIN_CACHE_ADMINS--}</td>
- <td class="switch_sw1" width="150" style="padding-left: 10px"><input
+ <td width="150" style="padding-left: 10px"><input
type="radio" name="cache_admins" value="Y" class="admin_normal"{!__ADMINS_Y!} /> {--YES--}
<input type="radio" name="cache_admins" value="N" class="admin_normal"{!__ADMINS_N!} /> {--NO--}
</td>
<td colspan="2" class="seperator" height="10"> </td>
</tr>
<tr>
- <td class="switch_sw2" align="right" width="350" height="20">
+ <td align="right" width="350" height="20">
{--ADMIN_CACHE_ACLS--}</td>
- <td class="switch_sw2" width="150" style="padding-left: 10px"><input
+ <td width="150" style="padding-left: 10px"><input
type="radio" name="cache_acls" value="Y" class="admin_normal"{!__ACLS_Y!} /> {--YES--}
<input type="radio" name="cache_acls" value="N" class="admin_normal"{!__ACLS_N!} /> {--NO--}
</td>