-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
41 lines (34 loc) · 1.03 KB
/
config.php
File metadata and controls
41 lines (34 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
# __ _ _
# ___ ___ _ __ / _(_) __ _ _ __ | |__ _ __
# / __/ _ \| '_ \| |_| |/ _` | | '_ \| '_ \| '_ \
#| (_| (_) | | | | _| | (_| |_| |_) | | | | |_) |
# \___\___/|_| |_|_| |_|\__, (_) .__/|_| |_| .__/
# |___/ |_| |_|
if (!isset($_SESSION)) {
session_start();
}
ini_set('display_errors', 0);
error_reporting(E_ERROR | E_WARNING | E_PARSE);
$pwd = getcwd();
$bpwd = basename($pwd);
$root = realpath(__DIR__);
$doc_root = $_SERVER["DOCUMENT_ROOT"];
#SCHIMBA ASTA DACA INDEX.PHP NU SE AFLA IN FOLDERUL RADACINA !!
$root2 = "/web/RezProbleme";
if (!file_exists($doc_root.'/'.$root2)) {
$root2 = "/RezProbleme";
if (!file_exists($doc_root.'/'.$root2)) {
$root2 = '';
}
}
#Compilatoare
$_SERVER['cc'] = 'gcc';
$_SERVER['cxx'] = 'g++';
$_SERVER['dc'] = 'dmd';
$_SERVER['py'] = 'python';
#Username temporar
if (!isset($_SESSION["nume"])) {
$_SESSION["nume"] = "Anonim";
}
?>