예제 #1
0
파일: view_v.php 프로젝트: rhertzog/lcs
 *            If not specified, current date will be used.
 * friendly - if set to 1, then page does not include links or trailer navigation.
 * (*) required field
 *
 * Security:
 * Must have "allow view others" enabled ($ALLOW_VIEW_OTHER) in System Settings
 * unless the user is an admin user ($is_admin). If the view is not global, the
 * user must be owner of the view. If the view is global, then and
 * user_sees_only_his_groups is enabled, then we remove users not in this user's
 * groups (except for nonuser calendars... which we allow regardless of group).
 */
include_once 'includes/init.php';
include_once 'includes/views.php';
$DAYS_PER_TABLE = 7;
$error = '';
view_init($id);
$printerStr = generate_printer_friendly('view_v.php');
set_today($date);
$nextdate = date('Ymd', mktime(0, 0, 0, $thismonth, $thisday + 7, $thisyear));
$prevdate = date('Ymd', mktime(0, 0, 0, $thismonth, $thisday - 7, $thisyear));
$wkstart = get_weekday_before($thisyear, $thismonth, $thisday + 1);
$wkend = $wkstart + 86400 * ($DISPLAY_WEEKENDS == 'N' ? 5 : 7);
$thisdate = date('Ymd', $wkstart);
$nextStr = translate('Next');
$prevStr = translate('Previous');
print_header(array('js/popups.php/true'));
ob_start();
echo '
    <div style="width:99%;">
      <a title="' . $prevStr . '" class="prev" href="view_v.php?id=' . $id . '&amp;date=' . $prevdate . '"><img src="images/leftarrow.gif" alt="' . $prevStr . '" /></a>
      <a title="' . $nextStr . '" class="next" href="view_v.php?id=' . $id . '&amp;date=' . $nextdate . '"><img src="images/rightarrow.gif" alt="' . $nextStr . '" /></a>
예제 #2
0
파일: init.php 프로젝트: superman1982/ddd
<?php

require_once dirname(__FILE__) . '/mysql.class.php';
require_once dirname(__FILE__) . '/msg.php';
error_reporting(E_ALL ^ E_NOTICE);
$dns = new dns_msg();
$dns->init_target("dns");
$mysql = new MySQL();
$mysql->opendb("NewDns", "utf8");
if (domain_init()) {
    echo "domain init failed\n";
}
if (extend_init()) {
    echo "extend init failed\n";
}
if (view_init()) {
    echo "extend init failed\n";
}
if (mask_init()) {
    echo "extend init failed\n";
}
if (errdst_init()) {
    echo "errdst init failed\n";
}
if (illreq_init()) {
    echo "illreq init failed\n";
}
if (pktlog_init()) {
    echo "pktlog init failed\n";
}
return 0;