diff --git a/install/sql/incremental/upd_0011.sql b/install/sql/incremental/upd_0011.sql deleted file mode 100644 index 8646c9ee1a09025f0e8f5da4e04017d5dd94b6f6..0000000000000000000000000000000000000000 --- a/install/sql/incremental/upd_0011.sql +++ /dev/null @@ -1,2 +0,0 @@ --- database patch for displaying error logs for the sites. -ALTER TABLE `web_domain` ADD `logs` MEDIUMTEXT NOT NULL ; \ No newline at end of file diff --git a/install/sql/ispconfig3.sql b/install/sql/ispconfig3.sql index 2d921c8e07f98f7dca0bb2b942175fe2a070fe11..55daa1194f30fa15c1172ad6d618df351666bae8 100644 --- a/install/sql/ispconfig3.sql +++ b/install/sql/ispconfig3.sql @@ -1151,7 +1151,6 @@ CREATE TABLE `web_domain` ( `backup_copies` INT NOT NULL DEFAULT '1', `active` enum('n','y') NOT NULL default 'y', `traffic_quota_lock` enum('n','y') NOT NULL default 'n', - `logs` MEDIUMTEXT NOT NULL, PRIMARY KEY (`domain_id`) ) ENGINE=MyISAM AUTO_INCREMENT=1; diff --git a/interface/web/sites/form/web_domain.tform.php b/interface/web/sites/form/web_domain.tform.php index 1436967b50f907bc0cc9412a2255a655905bbf2e..5f690791df0bae62620138b1646ede8599b4b7ee 100644 --- a/interface/web/sites/form/web_domain.tform.php +++ b/interface/web/sites/form/web_domain.tform.php @@ -395,33 +395,6 @@ $form["tabs"]['stats'] = array ( ) ); - -//* Logs -$form["tabs"]['logs'] = array ( - 'title' => "logs", - 'width' => 100, - 'template' => "templates/web_domain_logs.htm", - 'readonly' => true, - 'fields' => array ( - ################################## - # Begin Datatable fields - ################################## - 'logs' => array ( - 'datatype' => 'TEXT', - 'formtype' => 'TEXTAREA', - 'default' => 'DEFAULT', - 'value' => 'VALUE', - 'cols' => '30', - 'rows' => '10' - ) - ################################## - # ENDE Datatable fields - ################################## - ) -); - - - if($_SESSION["s"]["user"]["typ"] == 'admin') { //* Backup diff --git a/interface/web/sites/templates/web_domain_logs.htm b/interface/web/sites/templates/web_domain_logs.htm deleted file mode 100644 index ff00cb1a124cbcd6d62ff0d259184182953b9a27..0000000000000000000000000000000000000000 --- a/interface/web/sites/templates/web_domain_logs.htm +++ /dev/null @@ -1,18 +0,0 @@ -

-

- -
- -
- - -
- - -
- - -
-
- -
diff --git a/interface/web/sites/web_domain_edit.php b/interface/web/sites/web_domain_edit.php index 87b57a50c1c706c7563437b0c2177780bc2baec2..bac49eb37fe61f9312eb7519f4dbdca3c4853ef9 100644 --- a/interface/web/sites/web_domain_edit.php +++ b/interface/web/sites/web_domain_edit.php @@ -262,32 +262,6 @@ class page_action extends tform_actions { $app->tpl->setVar("domain_option",$domain_select); } - // Code to display the error log for the site. - - // Query the logfile name - $tmp = $app->db->queryOneRecord("SELECT document_root FROM web_domain WHERE domain_id = ".$this->id); - $logfile = $tmp["document_root"]."/log/error.log"; - - $lines = count(file($logfile)); - - // the "tail" function - $handle = @fopen($logfile, "r"); - if ($handle) { - while (($buffer = fgets($handle)) !== false) { - $lines = $lines -1; - // this constant defines how many lines to display - if ($lines<60) $tail .= $buffer; // TODO: We need a newline here. - } - if (!feof($handle)) { - $tail = "Error."; - } - fclose($handle); - } - - // store the tail so it can be displayed in the interface - $app->db->query("UPDATE web_domain SET logs = '$tail' WHERE domain_id = ".$this->id); - - parent::onShowEnd(); } @@ -631,4 +605,4 @@ class page_action extends tform_actions { $page = new page_action; $page->onLoad(); -?> +?> \ No newline at end of file