Beispiel #1
0
}
if (!empty($_REQUEST['revission'])) {
    $res = $AVE_DB->Query("SELECT doc_data FROM " . PREFIX . "_document_rev WHERE doc_id='" . (int) $_REQUEST['id'] . "' AND doc_revision='" . (int) $_REQUEST['revission'] . "' LIMIT 1")->GetCell();
    $res = @unserialize($res);
    $flds = get_document_fields((int) $_REQUEST['id'], $res);
}
$AVE_Core->coreSiteFetch(get_current_document_id());
$content = ob_get_clean();
//file_put_contents(BASE_DIR.'/cache/doc-'.$_REQUEST['id'].'.html',$content);
ob_start();
eval('?>' . $content . '<?');
$cont = ob_get_clean();
$rubheader = empty($GLOBALS["user_header"]) ? "" : implode(chr(10), $GLOBALS["user_header"]);
$cont = str_replace('[tag:rubheader]', $rubheader, $cont);
if (isset($_REQUEST['id']) and $_REQUEST['id'] == PAGE_NOT_FOUND_ID) {
    report404("<strong class=\"code_red\">404 ERROR:</strong> " . "<br />" . "<strong class=\"code\">HTTP_USER_AGENT</strong> - " . $_SERVER['HTTP_USER_AGENT'] . "<br />" . "<strong class=\"code\">HTTP_REFERER</strong> - " . @$_SERVER['HTTP_REFERER'] . "<br />" . "<strong class=\"code\">REQUEST_URI</strong> - " . $_SERVER['REQUEST_URI'], 2, 2);
    header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found', true);
}
if (isset($_REQUEST['apage']) && is_numeric($_REQUEST['apage']) && $_REQUEST['apage'] > $GLOBALS['page_id'][$_REQUEST['id']]['apage'] or isset($_REQUEST['page']) && is_numeric($_REQUEST['page']) && $_REQUEST['page'] > $GLOBALS['page_id'][$_REQUEST['id']]['page'] or isset($_REQUEST['artpage']) && is_numeric($_REQUEST['artpage']) && $_REQUEST['artpage'] > $GLOBALS['page_id'][$_REQUEST['id']]['artpage']) {
    if ($_REQUEST['id'] == 1) {
        header('Location:' . ABS_PATH);
    } else {
        header('Location:' . ABS_PATH . $AVE_Core->curentdoc->document_alias . URL_SUFF);
    }
    exit;
}
echo $cont;
//if (isset($cache) && is_object($cache)) $cache->end();
if (!defined('ONLYCONTENT') && UGROUP == 1 && defined('PROFILING') && PROFILING) {
    echo get_statistic(1, 1, 1, 1);
}
	    						<td bgcolor=#F7E1F6 align=right width=60>' . round($new_total['user_total_time'] / $task_total['user_total_time'] * 100) . '%;</td>    						
	    				</tr>';
        }
    }
}
echo '<center>
			
			<table width="980" cellpadding="0" cellspacing="0" border="1">
				<tr><td><img src=images/logo.png></td></tr>
				<tr height=40>
					<form action="http://' . $_SERVER['HTTP_HOST'] . '/analytic.php" method="post" enctype="multipart/form-data">
					<td colspan=8 align=right>
						from:&nbsp;<input style="width:88;text-align: center;" name=dt1 value="' . $date_from . '">&nbsp;&nbsp;
						to:&nbsp;<input style="width:88;text-align: center;" name=dt2 value="' . $date_to . '">&nbsp;&nbsp;
						<input style="cursor:pointer;" type=submit value="Analyze">&nbsp;
					</td>
					</form>
				</tr>
			</table><table width="984" cellpadding="6" cellspacing="0" border="1">';
get_statistic(0, 'Total statistic', $date_from, $date_to);
$projects_sql = mysql_query('select id, name from b_project order by name ASC');
$p = mysql_num_rows($projects_sql);
for ($j = 0; $j < $p; $j++) {
    $project = mysql_fetch_assoc($projects_sql);
    get_statistic($project['id'], $project['name'], $date_from, $date_to);
}
echo '</table>
			<table width="980" cellpadding="6" cellspacing="0" border="0">
				<tr><td align=right><small>Software Company Aura</small></td></tr>
			</table>	
</center>';