* -------------------------------------------------------------------- *
* Kurzbeschreibung : "Home"-Seite festlegen *
* -------------------------------------------------------------------- *
- * $Revision:: 856 $ *
- * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. March 2009) $ *
+ * $Revision:: $ *
+ * $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
- * $Author:: stelzi $ *
+ * $Author:: $ *
* Needs to be in all Files and every File needs "svn propset *
* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
// Some security stuff...
if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+ $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
}
// Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
-// Init "sub" value
-$sub = "";
-if (REQUEST_ISSET_GET(('sub'))) $sub = REQUEST_GET('sub');
+// Init 'sub' value
+$sub = '';
+if (REQUEST_ISSET_GET('sub')) $sub = REQUEST_GET('sub');
switch ($sub)
{
OUTPUT_HTML("<a href=\"{!URL!}/modules.php?module=admin&what=config_home&sub=settings\">{--ADMIN_CONTINUE_TO_CONFIG--}</a>");
} else {
// Prepare data for the template
- $content = array_fill(-1, 60, "");
- $content[getConfig('index_delay')] = " selected=\"selected\"";
+ $content = array_fill(-1, 60, '');
+ $content[getConfig('index_delay')] = ' selected="selected"';
define('__INDEX_COOKIE_SELECTION', CREATE_TIME_SELECTIONS(getConfig('index_cookie'), "index_cookie", "YMWD"));
LOAD_TEMPLATE("admin_config_home_settings", false, $content);
// Init variables
$SW = 2;
- $OUT = "";
+ $OUT = '';
// Process all entries
while ($content = SQL_FETCHARRAY($result)) {