Source for file install.php
Documentation is available at install.php
if (!include_once './lib/libTest.php') {
/* Try and provide enough information to debug the missing file. */
echo '<br /><span class="notsupported">Unable to find phpUserTrack/lib/libTest.php. ' .
'Your phpUserTrack installation may be missing critical files, or PHP may not ' .
'have sufficient permissions to include files. There may be error messages printed ' .
'above this message that will help you in debugging the problem.</span>';
/* phpUserTrack definitions. */
$module = 'phpUserTrack';
require_once './include/version.php';
'descrip' => 'MySQLi Support',
'error' => 'phpUserTrack cannot run without MySQLi support in PHP'
'descrip' => _('GD Graphics Library'),
'error' => 'Provides dynamic graph images'
'path' => 'Net/GeoIP.php',
'error' => 'You do not have the GeoIP package installed on your system. ' .
'Lots of cool functionality comes from installing it, so you should :P',
'error' => 'Database abstraction layer.',
'MDB2 MySQL Driver' => array(
'path' => 'MDB2/Driver/mysql.php',
'error' => 'MySQL Database abstraction layer.',
'MDB2 MySQLi Driver' => array(
'path' => 'MDB2/Driver/mysqli.php',
'error' => 'MySQLi Database abstraction layer.',
$module_output = $phpUserTrack_test->phpModuleCheck($module_list);
$pear_output = $phpUserTrack_test->PEARModuleCheck($pear_list);
return '<img src="images/success.png" /><br />';
return '<img src="images/error.png" /> <strong>' . $msg . '</strong><br />';
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>phpUserTrack Admin Page</title>
<script type="text/javascript" src="javascript/nicetitle.js"></script>
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://localhost/phpusertrack/javascript/phpusertrack.js.php?site=31"> </script>
<h1 style="margin: 0px;"><img src="images/logo.png" /></h1>
<h3>File Permissions</h3>
<em>templates_c</em> Directory Permission:
echo success_fail($templates_c_perm, '0755', 'Please run <code>chmod 755 templates_c</code> in the root phpUserTrack directory');
<em>browscap.ini</em> File Permission:
echo success_fail($browscap_perm, '0777', 'Please run <code>chmod 777 include/browscap.ini</code> in the root phpUserTrack directory');
<em>conf.php</em> Configuration File Exists:
echo success_fail($conf, true, 'Please copy conf/conf.php.dist to conf/conf.php and edit the file to match your configuration');
<h3>PHP Module Capabilities</h3>
<?php echo $module_output ?>
<?php echo $pear_output ?>
|