Skip to content

Commit

Permalink
small improvements to the admin panel
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian authored and Sebastian committed Apr 6, 2012
1 parent ce2f0de commit 9b377e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

session_start();

if (!file_exists('../conf/magirc.cfg.php')) die('Please configure conf/magirc.cfg.dist.php and rename it to conf/magirc.cfg.php');
if (!file_exists('../conf/magirc.cfg.php')) die('<strong>MagIRC</strong> is not configured<br />Please run <a href="../setup/">Setup</a>');
if (!is_writable('tmp/')) die("The 'admin/tmp/' directory is not writable. Please chmod it to 0777.");

include_once('../lib/magirc/version.inc.php');
Expand Down Expand Up @@ -120,7 +120,7 @@
@touch($db_config_file);
}
if (!$db) {
$db = array('username' => 'magirc', 'password' => 'magirc', 'database' => 'magirc', 'hostname' => 'localhost');
$db = array('username' => 'denora', 'password' => 'denora', 'database' => 'denora', 'hostname' => 'localhost');
}
$admin->tpl->assign('db_config_file', $db_config_file);
$admin->tpl->assign('writable', is_writable($db_config_file));
Expand Down

0 comments on commit 9b377e0

Please sign in to comment.