loganalyzer/userchange.php
Andre Lorbach 0c076853f3 Added initial collection of files for Version 2 of PhpLogCon.
This is a total rewrite, and still lots of code is missing.
2008-02-22 14:43:33 +01:00

52 lines
1.4 KiB
PHP

<?php
/*
*********************************************************************
* Copyright by Adiscon GmbH | 2008! *
* -> www.phplogcon.org <- *
* *
* Use this script at your own risk! *
* ----------------------------------------------------------------- *
* Main Index File *
* *
* -> Loads the main PhpLogCon Site *
* *
* All directives are explained within this file *
*********************************************************************
*/
// *** Default includes and procedures *** //
define('IN_PHPLOGCON', true);
$gl_root_path = './';
include($gl_root_path . 'include/functions_common.php');
include($gl_root_path . 'include/functions_frontendhelpers.php');
InitPhpLogCon();
InitFrontEndDefaults(); // Only in WebFrontEnd
// *** *** //
// --- BEGIN Custom Code
if ( isset($_SERVER['HTTP_REFERER']) )
$szRedir = $_SERVER['HTTP_REFERER'];
else
$szRedir = "index.php"; // Default
if ( isset($_GET['op']) )
{
if ( $_GET['op'] == "changestyle" )
{
if ( VerifyTheme($_GET['stylename']) )
$_SESSION['CUSTOM_THEME'] = $_GET['stylename'];
}
if ( $_GET['op'] == "changelang" )
{
if ( VerifyLanguage($_GET['langcode']) )
$_SESSION['CUSTOM_LANG'] = $_GET['langcode'];
}
}
// Final redirect
RedirectPage( $szRedir );
// ---
?>