Member
|
01-19-2019
, 09:31
Re: [Release]Linux control panel
|
#46
|
Quote:
Originally Posted by arne1288
Well, if you guys would stop all your "not working"-crap, the Internet would be very happy:
Instead move on with sharing useful information, such as the exact errors you see and information when you see them (what actions you did), as well as the logs files from your web servers, that are pinpointing to where the errors actually are.
In that case you follow that information, someone else would actually have a possibility of making an updated version with the issues you see fixed...
It is very clear that you DO NOT WANT a fixed version at all, when you do not want to give useful/helpful information that could eventually help you getting a such fixed version..
It's actually not that hard to give "useful information", ...
|
Well there is no error on weblog..
http://82.146.60.239/panel/control-panel/home.php
and when you try to install it:
Quote:
aTSlash($homeDir); $backupsDir = $_POST['backupsDir']; $backupsDir = $pathing->aTSlash($backupsDir); $salt = Misc::random(; $cpuser = $_POST['cpuser']; //$pass = $_POST['cppass']; $cppass = sha1(sha1($salt . $_POST['cppass'])); $cpemail = $_POST['cpemail']; $senderName = $_POST['senderName']; $senderEmail = $_POST['senderEmail']; $dump = $_POST['dump']; if (isset($_POST['senderDumpAddy']) && !empty($_POST['senderDumpAddy'])) { $dumpAddy = $_POST['senderDumpAddy']; } else { $dumpAddy = ''; } @$mysqli = new mysqli($host, $user, $pass, $dbname); if (empty($mysqli->connect_error)) { $tables = array(" CREATE TABLE IF NOT EXISTS `" . $dbprefix . "_backups` ( `id` int(11) NOT NULL AUTO_INCREMENT, `server_name` varchar(64) NOT NULL, `srv_path` varchar(12 NOT NULL, `backup_path` varchar(12 NOT NULL, `compression` varchar(4) NOT NULL, `has_pw` int(1) NOT NULL, `timestamp` int(32) NOT NULL, `username` varchar(64) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;", " CREATE TABLE IF NOT EXISTS `" . $dbprefix . "_logs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(32) NOT NULL, `user` varchar(64) NOT NULL, `log` varchar(1000) NOT NULL, `timestamp` int(32) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;", "CREATE TABLE IF NOT EXISTS `" . $dbprefix . "_new_servers` ( `id` int(11) NOT NULL AUTO_INCREMENT, `appid` int(16) NOT NULL, `path` varchar(512) NOT NULL, `steamuser` varchar(64) NOT NULL, `steampass` varchar(64) NOT NULL, `user_name` varchar(32) NOT NULL, `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `created` int(11) NOT NULL DEFAULT '0', `email_confirm` varchar(12 DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;", "CREATE TABLE IF NOT EXISTS `" . $dbprefix . "_servers` ( `id` int(11) NOT NULL AUTO_INCREMENT, `appid` varchar(64) NOT NULL, `name_friendly` varchar(64) NOT NULL, `path` varchar(256) NOT NULL, `exec_path` varchar(256) NOT NULL, `cmd_line` varchar(256) NOT NULL, `cmd_line_hidden` varchar(256) DEFAULT NULL, `pid_file` varchar(256) DEFAULT NULL, `ip` varchar(16) NOT NULL, `port` int( NOT NULL, `rcon_pass` varchar(64) DEFAULT NULL, `steam_inf_path` varchar(12 DEFAULT NULL, `steamuser` varchar(64) DEFAULT NULL, `steampass` varchar(64) DEFAULT NULL, `notes` varchar(1000) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `auto_update` int(1) NOT NULL DEFAULT '0', `enabled` int(1) NOT NULL DEFAULT '0', `status` int(1) NOT NULL DEFAULT '0', `auto_restart` int(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;", "CREATE TABLE IF NOT EXISTS `" . $dbprefix . "_server_order` ( `id` int(11) NOT NULL, `order` int(11) NOT NULL, KEY `id` (`id`), CONSTRAINT `id` FOREIGN KEY (`id`) REFERENCES `" . $dbprefix . "_servers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=latin1;", "CREATE TABLE IF NOT EXISTS `" . $dbprefix . "_users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(32) NOT NULL, `password` varchar(256) NOT NULL, `permissions` int(32) NOT NULL, `enabled` int(1) NOT NULL DEFAULT '0', `email` varchar(12 NOT NULL, `rec_email` int(1) NOT NULL DEFAULT '1', `srvStats` int(1) NOT NULL DEFAULT '1', `rconPopOut` int(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `email` (`email`), UNIQUE KEY `username` (`username`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; ", "INSERT INTO " . $dbprefix . "_users (`username`, `email`, `password`, `permissions`, `rec_email`, `enabled`) VALUES ('$cpuser', '$cpemail', '$cppass', '511', '1', '1') "); foreach ($tables as $sql) { $mysqli->query($sql)or die($mysqli->error); if (empty($mysqli->error)) { continue; } else { die('Error creating tables ' . $mysqli->error); } } echo "Connected to MySQL server and installed tables.
"; $file = " "; echo "Proceed to page 2"; echo ""; } else { die("Un-able to connect to MySQL server. " . $mysqli->connect_error); } } function rollback($num) { echo 'rolling back
'; global $mysqli, $dbname, $homeDir, $configDir, $backupsDir; if ($num >= 1) { $mysqli->query("DROP DATABASE `$dbname`;"); $mysqli->query("CREATE DATABASE `$dbname`;"); } if ($num >= 2) { rmdir($configDir); } if ($num >= 4) { rmdir($homeDir); } if ($num >= 5) { rmdir($backupsDir); @unlink($configDir . 'config.php'); @unlink($configDir . 'email.php'); } }
|
Last edited by ae2x; 01-19-2019 at 09:31.
|
|