EHCP-Force-Edition/ehcp/index.php
2018-04-02 16:26:17 -06:00

46 lines
1.5 KiB
PHP
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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: info@ehcpforce.tk
see classapp.php for real application.
*/
# setlocale(LC_ALL, "en_EN.UTF-8"); # Bu olmadıgında, bir php bug'ından dolayı, "Fatal error: Interface 'Iterator' not found in..." hatası veriyor. bug: https://bugs.php.net/bug.php?id=18556
# bu da çözüm olmadı. tam çözüm/workaround için: http://ehcp.net/?q=node/1273
// include_once("/adodb5/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();
?>