-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.php
45 lines (33 loc) · 1.28 KB
/
index.php
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
42
43
44
45
<?php
/*
EASY HOSTING CONTROL PANEL MAIN index.php FILE Version 0.30 - www.ehcp.net
IF YOU SEE THIS ON BROWSER, IMMADIATELY STOP WEBSERVER with /etc/init.d/apache2 stop, otherwise, your passwords may be seen by others...
IF YOU SEE THIS INSTEAD OF A WEB PAGE, THEN YOU PROBABLY DIDN'T INSTALL PHP EXTENSION, PLEASE RE-RUN EHCP INSTALL SCRIPT OR MANUALLY INSTALL APACHE2-PHP EXTENSION..
*
by I.Bahattin Vidinli,
mail&msn: [email protected]
see classapp.php for real application.
*/
include_once("config/dbutil.php"); # this should be removed later...
include_once("config/adodb/adodb.inc.php"); # adodb database abstraction layer.. hope database abstracted...
include_once("classapp.php"); # real application class
degiskenal(array("op"));
global $commandline;
$commandline=false;
$user = $_SERVER['HTTP_USER_AGENT'];
if($argv and $argc and (is_array($argv))and (!$user)) {
$commandline=true;
$op=$argv[1];
print_r($argv);
echo "Commandline active, argc: $argc \n op:$op:\n argv:".print_r($argv);
} else {
session_start();
}
//echo "argc: $argc <br>\n";
$app = new Application();
$app->cerceve="standartcerceve";
$app->usertable="domainusers";
$app->userfields=array("id","domainname","username","email","quota");
$app->op=strtolower($op);
$app->run();
?>