本文整理汇总了PHP中Computer::unixTimestampToString方法的典型用法代码示例。如果您正苦于以下问题:PHP Computer::unixTimestampToString方法的具体用法?PHP Computer::unixTimestampToString怎么用?PHP Computer::unixTimestampToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Computer
的用法示例。
在下文中一共展示了Computer::unixTimestampToString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initFastTemplate
require_once 'config.php';
require_once OLIB_PATH . '/class.ad.php';
require_once OLIB_PATH . '/class.session.php';
require_once OLIB_PATH . '/class.process.php';
$tpl =& initFastTemplate();
$tpl->define(array('pc_table' => 'body.pc.table_head.tpl', 'pc' => 'body.pc.tpl', 'process' => 'body.pc.process.tpl'));
$ses = new Session(true);
$tpl->assign('MESSAGE', $ses->msg());
if (isset($_GET['sort'])) {
$sort = $_GET['sort'];
} else {
$sort = 'cn';
}
if (isset($_GET['name'])) {
$pc = new Computer($_GET['name']);
$tpl->assign(array('CN' => $pc->cn, 'TITLE' => $pc->cn, 'LOCATION' => $pc->location, 'DESCRIPTION' => $pc->description, 'NAME' => $pc->name, 'CREATE' => $pc->unixTimestampToString($pc->createtimestamp), 'LASTLOGON' => $pc->unixTimestampToString($pc->lastlogon), 'LASTLOGONTS' => $pc->unixTimestampToString($pc->lastlogontimestamp), 'LOGONCOUNT' => $pc->logoncount, 'MODIFYTS' => $pc->unixTimestampToString($pc->modifytimestamp), 'OS' => $pc->operatingsystem, 'SP' => $pc->operatingsystemservicepack, 'OSVER' => $pc->operatingsystemversion, 'PASSSET' => $pc->unixTimestampToString($pc->pwdlastset), 'CREATED' => $pc->unixTimestampToString($pc->whencreated), 'CHANGED' => $pc->unixTimestampToString($pc->whenchanged)));
$gr = $pc->groups();
echo $gr->samaccountname[0];
foreach ($gr->samaccountname as $group) {
$gr->tplPlainHtml('MEMBEROF', $group . '<BR>');
}
$process = new Process();
$process->selectActiveProcesses($_GET['name']);
$process->retrive();
for ($i = 0; $i < $process->count; $i++) {
$tpl->assign(array('PROCESS' => $process->process[$i], 'START' => $process->unixTimestampToString($process->start[$i]), 'STOP' => $process->stop[$i]));
$tpl->parse('PROCESS_LIST', '.process');
}
$tpl->parse('BODY', 'pc');
} else {
$users = new Computer('TONIPI-*');