$block1->contentRow($strings['ical_url'], buildLink("{$root}/calendar/icalendar.php", "{$root}/calendar/icalendar.php", LINK_OUT));
$block1->contentRow($strings['url_dev'], buildLink($projectDetail->pro_url_dev[0], $projectDetail->pro_url_dev[0], LINK_OUT));
$block1->contentRow($strings['url_prod'], buildLink($projectDetail->pro_url_prod[0], $projectDetail->pro_url_prod[0], LINK_OUT));
$block1->contentRow($strings['owner'], buildLink('../users/viewuser.php?id=' . $projectDetail->pro_mem_id[0], $projectDetail->pro_mem_name[0], LINK_INSIDE) . ' (' . buildLink($projectDetail->pro_mem_email_work[0], $projectDetail->pro_mem_login[0], LINK_MAIL) . ')');
$block1->contentRow($strings['created'], createDate($projectDetail->pro_created[0], $_SESSION['timezoneSession']));
$block1->contentRow($strings['modified'], createDate($projectDetail->pro_modified[0], $_SESSION['timezoneSession']));
if ($projectDetail->pro_org_id[0] == '1') {
    $block1->contentRow($strings['organization'], $strings['none']);
} else {
    $block1->contentRow($strings['organization'], buildLink('../clients/viewclient.php?id=' . $projectDetail->pro_org_id[0], $projectDetail->pro_org_name[0], LINK_INSIDE));
}
$block1->contentRow($strings['status'], $status[$idStatus]);
$block1->contentRow($strings['type'], $projectType[$projectDetail->pro_type[0]]);
if ($fileManagement == 'true') {
    $block1->contentRow($strings['max_upload'] . $blockPage->printHelp('max_file_size'), convertSize($projectDetail->pro_upload_max[0]));
    $block1->contentRow($strings['project_folder_size'] . $blockPage->printHelp('project_disk_space'), convertSize(folder_info_size('../files/' . $projectDetail->pro_id[0] . '/')));
}
$block1->contentRow($strings['estimated_time'], $estimated_time . ' ' . $strings['hours']);
$block1->contentRow($strings['actual_time'], $proj_time . ' ' . $strings['hours']);
$block1->contentRow($strings['scope_creep'] . $blockPage->printHelp('project_scope_creep'), $diff_time . ' ' . $strings['days']);
if ($sitePublish == 'true') {
    if ($projectDetail->pro_published[0] == '1') {
        $block1->contentRow($strings['project_site'], '<' . buildLink('../projects/addprojectsite.php?id=' . $id, $strings['create'] . '...', LINK_INSIDE) . '>');
    } else {
        $block1->contentRow($strings['project_site'], '<' . buildLink('../projects/viewprojectsite.php?id=' . $id, $strings['details'], LINK_INSIDE) . '>');
    }
}
if ($enableHelpSupport == 'true' && ($teamMember == 'true' || $_SESSION['profilSession'] == '5') && $supportType == 'team') {
    $block1->contentTitle($strings['support']);
    $block1->contentRow($strings['new_requests'], $comptListNewRequests . ' - ' . buildLink('../support/support.php?action=new&project=' . $projectDetail->pro_id[0], $strings['manage_new_requests'], LINK_INSIDE));
    $block1->contentRow($strings['open_requests'], $comptListOpenRequests . ' - ' . buildLink('../support/support.php?action=open&project=' . $projectDetail->pro_id[0], $strings['manage_open_requests'], LINK_INSIDE));
Exemple #2
0
if ($databaseType == "postgresql") {
    $databaseTypeMore = "PostgreSQL";
    $link = pg_connect("host=" . MYSERVER . " port=5432 dbname=" . MYDATABASE . " user="******" password="******"SELECT VERSION() as version";
    $res = pg_query($link, $local_query);
    $databaseVersion = pg_result($res, 0, 'version');
}
if ($databaseType == "sqlserver") {
    $databaseTypeMore = "Sql Server";
    $link = mssql_connect(MYSERVER, MYLOGIN, MYPASSWORD) or die("Connection impossible");
    $local_query = "SELECT @@version as version";
    $res = mssql_query($local_query, $link);
    $databaseVersion = mssql_result($res, 0, 'version');
}
$block1->contentRow("Database Type", $databaseTypeMore);
$block1->contentRow("Files folder size", convertSize(folder_info_size("../files/")));
$block1->contentTitle($strings["system_properties"]);
$block1->contentRow("PHP Version", phpversion() . " " . $blockPage->buildLink("../administration/phpinfo.php?", "PhpInfo", inblank));
$block1->contentRow($databaseTypeMore . " version", $databaseVersion);
$block1->contentRow("extension_dir", ini_get(extension_dir));
$ext = get_loaded_extensions();
$comptExt = count($ext);
for ($i = 0; $i < $comptExt; $i++) {
    $extensions .= "{$ext[$i]}";
    if ($i != $comptExt - 1) {
        $extensions .= ', ';
    }
}
$block1->contentRow("Loaded extensions", $extensions);
$include_path = ini_get(include_path);
if ($include_path == "") {
Exemple #3
0
/**
 * Return recursive folder size
 * 
 * @param string $location Path of directory to calculate
 * @param boolean $recursive Option to use recursivity
 * @access public 
 */
function folder_info_size($path, $recursive = true)
{
    $result = 0;
    if (is_dir($path) || is_readable($path)) {
        $dir = opendir($path);
        while ($file = readdir($dir)) {
            if ($file != '.' && $file != '..') {
                if (is_dir($path . $file)) {
                    $result += $recursive ? folder_info_size($path . $file . '/') : 0;
                } else {
                    $result += filesize($path . $file);
                }
            }
        }
        closedir($dir);
        return $result;
    }
}
Exemple #4
0
$block1->contentRow('Product Site Publish', $sitePublish);
$block1->contentRow('Notifications', $notifications);
$block1->contentRow('Root', $root);
if ($useLDAP == true) {
    $loginMethodMore = ' + LDAP';
}
$block1->contentRow('Login Method', $loginMethod . $loginMethodMore);
if ($databaseType == 'mysql') {
    $databaseTypeMore = 'MySql';
    $MY_DBH = openDatabase();
    $local_query = 'SELECT VERSION() as version';
    $res = mysql_query($local_query, $MY_DBH);
    $databaseVersion = mysql_result($res, 0, 'version');
}
$block1->contentRow('Database Type', $databaseTypeMore);
$block1->contentRow('Files folder size', convertSize(folder_info_size('../files/')));
$block1->contentTitle($strings['system_properties']);
$block1->contentRow('PHP Version', phpversion() . ' ' . buildLink('../administration/phpinfo.php?', 'PhpInfo', LINK_BLANK));
$block1->contentRow($databaseTypeMore . ' version', $databaseVersion);
$block1->contentRow('extension_dir', ini_get(extension_dir));
$ext = get_loaded_extensions();
$comptExt = count($ext);
for ($i = 0; $i < $comptExt; $i++) {
    $extensions .= $ext[$i];
    if ($i != $comptExt - 1) {
        $extensions .= ', ';
    }
}
$block1->contentRow('Loaded extensions', $extensions);
$include_path = ini_get(include_path);
if ($include_path == '') {
Exemple #5
0
/**
 * Return recursive folder size
 * @param string $location Path of directory to calculate
 * @param boolean $recursive Option to use recursivity
 * @access public
 **/
function folder_info_size($path, $recursive = TRUE)
{
    $result = 0;
    if (is_dir($path) || is_readable($path)) {
        $dir = opendir($path);
        while ($file = readdir($dir)) {
            if ($file != "." && $file != "..") {
                if (@is_dir("{$path}{$file}/")) {
                    $result += $recursive ? folder_info_size("{$path}{$file}/") : 0;
                } else {
                    $result += filesize("{$path}{$file}");
                }
            }
        }
        closedir($dir);
        return $result;
    }
}
Exemple #6
0
}
$block1->contentRow($strings["description"], nl2br($projectDetail->pro_description[0]));
$block1->contentRow($strings["url_dev"], $blockPage->buildLink($projectDetail->pro_url_dev[0], $projectDetail->pro_url_dev[0], out));
$block1->contentRow($strings["url_prod"], $blockPage->buildLink($projectDetail->pro_url_prod[0], $projectDetail->pro_url_prod[0], out));
$block1->contentRow($strings["owner"], $blockPage->buildLink("../users/viewuser.php?id=" . $projectDetail->pro_mem_id[0], $projectDetail->pro_mem_name[0], in) . " (" . $blockPage->buildLink($projectDetail->pro_mem_email_work[0], $projectDetail->pro_mem_login[0], mail) . ")");
$block1->contentRow($strings["created"], createDate($projectDetail->pro_created[0], $timezoneSession));
$block1->contentRow($strings["modified"], createDate($projectDetail->pro_modified[0], $timezoneSession));
if ($projectDetail->pro_org_id[0] == "1") {
    $block1->contentRow($strings["organization"], $strings["none"]);
} else {
    $block1->contentRow($strings["organization"], $blockPage->buildLink("../clients/viewclient.php?id=" . $projectDetail->pro_org_id[0], $projectDetail->pro_org_name[0], in));
}
$block1->contentRow($strings["status"], $status[$idStatus]);
if ($fileManagement == "true") {
    $block1->contentRow($strings["max_upload"] . $blockPage->printHelp("max_file_size"), convertSize($projectDetail->pro_upload_max[0]));
    $block1->contentRow($strings["project_folder_size"] . $blockPage->printHelp("project_disk_space"), convertSize(folder_info_size("../files/" . $projectDetail->pro_id[0] . "/")));
}
$block1->contentRow($strings["estimated_time"], $estimated_time . " " . $strings["hours"]);
$block1->contentRow($strings["actual_time"], $actual_time . " " . $strings["hours"]);
$block1->contentRow($strings["scope_creep"] . $blockPage->printHelp("project_scope_creep"), $diff_time . " " . $strings["days"]);
if ($sitePublish == "true") {
    if ($projectDetail->pro_published[0] == "1") {
        $block1->contentRow($strings["project_site"], "&lt;" . $blockPage->buildLink("../projects/addprojectsite.php?id={$id}", $strings["create"] . "...", in) . "&gt;");
    } else {
        $block1->contentRow($strings["project_site"], "&lt;" . $blockPage->buildLink("../projects/viewprojectsite.php?id={$id}", $strings["details"], in) . "&gt;");
    }
}
if ($enableInvoicing == "true" && ($idSession == $projectDetail->pro_owner[0] || $profilSession == "0" || $profilSession == "5")) {
    if ($projectDetail->pro_invoicing[0] == "1") {
        $block1->contentRow($strings["invoicing"], $strings["true"]);
    } else {