Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Bugfix: Nun wird beim Installer auch das Feld Administrator-Benutzern…
Browse files Browse the repository at this point in the history
…ame beachtet.

Bugfix: Das cronscript versucht jetzt nicht mehr .htaccess oder .htpasswd zu loeschen, wenn diese garnicht existieren.


git-svn-id: file:///var/svn/trunk@52 45fdb5c4-e40b-0410-b369-9aab4fe9a275
  • Loading branch information
Florian Lippert committed Oct 22, 2004
1 parent 9200069 commit 7a8b8b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions syscp/install/install.php
Expand Up @@ -16,7 +16,7 @@
*
* @author Florian Lippert <flo@redenswert.de>
* @copyright (C) 2003-2004 Florian Lippert
* @package Panel
* @package System
* @version $Id$
*/

Expand Down Expand Up @@ -464,7 +464,7 @@ function split_sql_file($sql, $delimiter)

//last but not least create the main admin
status_message('begin', $lng['install']['adding_admin_user']);
$db->query("INSERT INTO `".TABLE_PANEL_ADMINS."` (`loginname`, `password`, `name`, `email`, `customers`, `customers_used`, `customers_see_all`, `domains`, `domains_used`, `domains_see_all`, `change_serversettings`, `diskspace`, `diskspace_used`, `mysqls`, `mysqls_used`, `emails`, `emails_used`, `email_forwarders`, `email_forwarders_used`, `ftps`, `ftps_used`, `subdomains`, `subdomains_used`, `traffic`, `traffic_used`, `deactivated`) VALUES ('admin', '".md5($admin_pass1)."', 'Siteadmin', 'admin@$servername', -1, 0, 1, -1, 0, 1, 1, -1024, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1048576, 0, 0);");
$db->query("INSERT INTO `".TABLE_PANEL_ADMINS."` (`loginname`, `password`, `name`, `email`, `customers`, `customers_used`, `customers_see_all`, `domains`, `domains_used`, `domains_see_all`, `change_serversettings`, `diskspace`, `diskspace_used`, `mysqls`, `mysqls_used`, `emails`, `emails_used`, `email_forwarders`, `email_forwarders_used`, `ftps`, `ftps_used`, `subdomains`, `subdomains_used`, `traffic`, `traffic_used`, `deactivated`) VALUES ('".$admin_user."', '".md5($admin_pass1)."', 'Siteadmin', 'admin@$servername', -1, 0, 1, -1, 0, 1, 1, -1024, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1048576, 0, 0);");
status_message('green', 'OK');

//now we create the userdata.inc.php with the mysql-accounts
Expand Down
4 changes: 2 additions & 2 deletions syscp/scripts/cronscript.php
Expand Up @@ -251,11 +251,11 @@
fclose($htpasswd_file_handler);
}

if($htaccess_file == '' && file_exists($row['data']['path']).'.htaccess')
if($htaccess_file == '' && file_exists($row['data']['path'].'.htaccess') )
{
unlink($row['data']['path'].'.htaccess');
}
if($htpasswd_file == '' && file_exists($row['data']['path']).'.htpasswd')
if($htpasswd_file == '' && file_exists($row['data']['path'].'.htpasswd') )
{
unlink($row['data']['path'].'.htpasswd');
}
Expand Down

0 comments on commit 7a8b8b8

Please sign in to comment.