예제 #1
0
파일: template.php 프로젝트: klarclm/sgv
                        } else {
                            $plt->set_if('rows_' . $rn2, 'islabel', false);
                        }
                        if (strpos($f, '.html') || strpos($f, '.htm') || strpos($f, '.js') || strpos($f, '.xml') || strpos($f, '.css')) {
                            $plt->set_if('rows_' . $rn2, 'isedit', true);
                        } else {
                            $plt->set_if('rows_' . $rn2, 'isedit', false);
                        }
                    }
                }
            }
        }
        unset($colarr);
        unset($valarr);
        unset($farr);
        $sumsize = getFormatSize($sumsize);
        if ($num_path == 0) {
            $plt->set_var('rows_' . $rn1, '');
        }
        if ($num_file == 0) {
            $plt->set_var('rows_' . $rn2, '');
        }
    } else {
        $plt->set_var('rows_' . $rn1, '');
        $plt->set_var('rows_' . $rn2, '');
    }
    $plt->set_var('sumsize', $sumsize);
    $plt->set_var('filecount', $num_file);
    $plt->set_var('pathcount', $num_path);
} elseif ($method == 'info') {
    $plt->set_file('main', $ac . '_' . $method . '.html');
예제 #2
0
파일: function.php 프로젝트: klarclm/sgv
function getRunTime()
{
    $t2 = execTime() - MAC_STARTTIME;
    $size = memory_get_usage();
    $memory = getFormatSize($size);
    unset($unit);
    return 'Processed in: ' . round($t2, 4) . ' second(s), ' . $GLOBALS['db']->sql_qc . '  queries ' . $memory . ' Mem On.';
}