Пример #1
0
 function view()
 {
     $data[] = 0;
     $num_items = $this->cart->total_items();
     generate_header($data);
     $this->_set_stock_info($data);
     check_domain_discount();
     if ($num_items) {
         $this->_show_cheat_code_after_timeout(25000);
     }
     $data['cheat_hints'] = $this->load->view('cheatcode_hints', null, true);
     display('cart', $data);
 }
Пример #2
0
<?php

include 'theme_functions.php';
?>
<!--Output highest level container division-->
<div id="plog-wrapper">

	<div id="header">
		<?php 
echo generate_header();
?>

		<div id="search-container">
				<?php 
echo generate_search_box();
?>
		</div><!-- /search-container -->

		<div id="breadcrumbs">
			<div id="slideshow">
				<?php 
echo plogger_slideshow_link();
echo plogger_print_button();
?>

			</div><!-- /slideshow -->
			<?php 
echo generate_breadcrumb('Home', ' | ');
?>

		</div><!-- /breadcrumbs -->
Пример #3
0
$Nav = new Nav();
$Menu = new Menu();
include $App->getProjectCommon();
# All on the same line to unclutter the user's desktop'
require_once "functions.php";
$proposal_title = get_title_from_html_document("proposal.html");
$pageTitle = $proposal_title;
$pageKeywords = "Eclipse, proposal";
$pageAuthor = "";
ob_start();
?>
<div id="maincontent">
	<div id="midcolumn">
	
		<h1><?php 
echo $proposal_title;
?>
</h1>
	
		<?php 
include_once $_SERVER['DOCUMENT_ROOT'] . "/projects/fragments/proposal-page-header.php";
generate_header($proposal_title);
include "proposal.html";
?>
	</div>
</div>
<?php 
$html = ob_get_contents();
ob_end_clean();
# Generate the web page
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
Пример #4
0
if (isset($_POST['nick']) && trim($_POST['nick']) !== '') {
    srand();
    $data['long'] = $mysession['long'];
    $data['lat'] = $mysession['lat'];
    $data['nick'] = $mysession['nick'];
    $data['range'] = $mysession['range'];
    $data['message'] = 'changed nick to <' . $_POST['nick'] . '> *';
    $data['color'] = $mysession['color'];
    $data['norange'] = $mysession['norange'];
    $dat = serialize($data);
    file_put_contents('./' . $seedroot . '/d/' . microtime(true) . '.php', $dat);
    $mysession['nick'] = $_POST['nick'];
    $mysession['zero'] = microtime(true);
    $mysession['color'] = 'background-color:rgb(' . rand(200, 240) . ',' . rand(200, 240) . ',' . rand(200, 240) . ');';
}
echo generate_header($site_name . ' - ' . $site_slogan, $site_description);
if (isset($mysession['lat']) && isset($mysession['long']) && isset($mysession['nick'])) {
    include 'chat.php';
    die;
}
$getloc = false;
?>
	


<?php 
if (!isset($_GET['lat']) && !isset($mysession['logout']) && isset($mysession['nick'])) {
    $getloc = true;
    ?>
<script>
navigator.geolocation.getCurrentPosition(GetLocation);
Пример #5
0
function _live($page, $data)
{
    $ci =& get_instance();
    $ci->load->library('session');
    $ci->load->model('database');
    generate_header($data);
    //Show header based on page
    $header = stristr($page, 'admin') ? $ci->load->view('admin/admin_header', $data, true) : $ci->load->view('header', $data, true);
    //Show body
    switch ($page) {
        case 'search':
            $body = $ci->load->view('view_search', $data, true);
            break;
        case 'browse':
            $body = $ci->load->view('home', $data, true);
            break;
        case 'product':
            $body = $ci->load->view('view_product', $data, true);
            break;
        case 'feedback_wall':
            $body = $ci->load->view('feedback_wall', $data, true);
            break;
        case 'view_giveaway':
            $body = $ci->load->view('view_giveaway', $data, true);
            break;
        case 'contact':
            $body = $ci->load->view('view_contact', $data, true);
            break;
        case 'cart':
            $body = $ci->load->view('view_cart', $data, true);
            break;
        case 'login':
            $body = $ci->load->view('auth/login_form', $data, true);
            break;
        case 'post_login':
            $body = $ci->load->view('auth/surprise', $data, true);
            break;
        case 'register_user_address':
            $body = $ci->load->view('auth/register', $data, true);
            break;
        case 'forgot_password':
            $body = $ci->load->view('auth/forgot_password_form', $data, true);
            break;
        case 'add_address':
            $body = $ci->load->view('auth/add_address', $data, true);
            break;
        case 'reset_password':
            $body = $ci->load->view('auth/reset_password_form', $data, true);
            break;
        case 'send_again':
            $body = $ci->load->view('auth/send_again_form', $data, true);
            break;
        case 'feedback_form':
            $body = $ci->load->view('auth/feedback_form', $data, true);
            break;
        case 'admin_orders':
            $body = $ci->load->view('admin/admin_orders', $data, true);
            break;
        case 'admin_products':
            $body = $ci->load->view('admin/admin_products', $data, true);
            break;
        case 'admin_product_add_edit':
            $body = $ci->load->view('admin/product_add_edit', $data, true);
            break;
        case 'admin_feedback':
            $body = $ci->load->view('admin/admin_feedbacks', $data, true);
            break;
        case 'admin_mail':
            $body = $ci->load->view('admin/admin_mails', $data, true);
            break;
        case 'admin_shipments':
            $body = $ci->load->view('admin/admin_shipments', $data, true);
            break;
        case 'admin_logistics':
            $body = $ci->load->view('admin/admin_logistics', $data, true);
            break;
        case 'admin_users':
            $body = $ci->load->view('admin/admin_users', $data, true);
            break;
        case 'admin_discounts':
            $body = $ci->load->view('admin/admin_discounts', $data, true);
            break;
        case 'admin_send_mail':
            $body = $ci->load->view('admin/admin_send_mail', $data, true);
            break;
        case 'admin_checkouts':
            $body = $ci->load->view('admin/admin_checkouts', $data, true);
            break;
        case 'address':
            $body = $ci->load->view('view_address', $data, true);
            break;
        case 'review':
            $body = $ci->load->view('view_review_order', $data, true);
            break;
        case 'message':
        case 'basic':
            $body = $ci->load->view('basic_view', $data, true);
            break;
        case 'insights':
            $body = $ci->load->view('view_insights', $data, true);
            break;
        default:
            show_404();
            break;
    }
    execute_events($data);
    $data['custom_events'] = $ci->load->view('custom_events', $data, true);
    $data['external_scripts'] = $ci->load->view('external_scripts', null, true);
    $data['event_tracking'] = $ci->load->view('event_tracking', null, true);
    $footer = $ci->load->view('footer', $data, true);
    $data['header'] = $header;
    $data['body'] = $body;
    $data['footer'] = $footer;
    $ci->load->view('main_view', $data);
}
Пример #6
0
            fatal_error("Unknown option: {$arg}");
    }
}
if ($name == "") {
    fatal_error("--name missing");
}
if ($input_file == "") {
    fatal_error("--input-file missing");
}
if ($output_dir == "") {
    fatal_error("--output-dir missing");
}
if (($data = file_get_contents($input_file)) === FALSE) {
    fatal_error("Failed to read input file");
}
if (!tokenize($data, $tokens)) {
    fatal_error("Failed to tokenize");
}
$parser = new parse_engine(new ProtoParser());
try {
    foreach ($tokens as $token) {
        $parser->eat($token[0], $token[1]);
    }
    $parser->eat_eof();
} catch (parse_error $e) {
    fatal_error("{$input_file}: Parse error: " . $e->getMessage());
}
$data = generate_header($name, $parser->semantic["directives"], $parser->semantic["messages"]);
if (file_put_contents("{$output_dir}/{$name}.h", $data) === NULL) {
    fatal_error("{$input_file}: Failed to write .h file");
}
Пример #7
0
<?php

plogger_init();
// Output highest level container division
print '<div id="wrapper">
			<div id="header"><div>' . generate_header() . '</div>
			<div id="jump-search-container">' . generate_search_box() . '</div></div>';
print '<div id="main_container">
			' . plogger_download_selected_form_start() . '
			<div id="breadcrumbs">
				<div id="download-selected">' . plogger_print_button() . plogger_download_selected_button() . '</div>
				<div>' . generate_breadcrumb() . '</div>
			</div>';
Пример #8
0
<?php

plogger_init();
print plogger_download_selected_form_start();
// Output highest level container division
print '<div id="wrapper">
			<table id="header-table" width="100%"><tr><td>' . generate_header() . '</td><td id="jump-search-container">' . generate_jump_menu() . generate_search_box() . '</td></tr></table>';
print '<div id="main_container">
			<div id="breadcrumbs">
				<table width="100%">
					<tr>
						<td>
							' . generate_breadcrumb() . '
						</td>
						<td class="align-right">' . plogger_download_selected_button() . plogger_print_button() . '				</td>
					</tr>
				</table>
			</div>';
Пример #9
0
$Menu = new Menu();
include $App->getProjectCommon();
# All on the same line to unclutter the user's desktop'
$pageTitle = "";
$pageKeywords = "";
$pageAuthor = "";
ob_start();
?>
    <div id="maincontent">
	<div id="midcolumn">

<h1>SVN Team Provider</h1>
</p>
<?php 
include_once $_SERVER['DOCUMENT_ROOT'] . "/projects/fragments/proposal-page-header.php";
generate_header("svn");
?>

<h2>Introduction</h2>

<p>The SVN Team Provider Project is a proposed open source project 
under the <a href="http://www.eclipse.org/technology/">Eclipse Technology
Project</a>.</p>

<p>This proposal is in the Project Proposal Phase (as defined in the
<a href="http://www.eclipse.org/projects/dev_process/"> Eclipse Development
Process document</a>) and is written to declare its intent and scope. This 
proposal is written to solicit additional participation and  input from the 
Eclipse community. You are invited to comment on and/or join the project. Please 
send all feedback to the <a 
href="news://news.eclipse.org/eclipse.technology.svn">
Пример #10
0
        } else {
            header('Location: ' . $url);
        }
        exit;
        break;
    case 200:
    case 400:
    case 401:
    case 403:
    case 404:
    case 500:
        if ($status != 200) {
            http_response_code($status);
        }
        if (!$suppress_skin) {
            echo generate_header($response['title'], $request, $response['js'], $response['css'], $response['onload']);
        }
        echo $response['body'];
        if (!$suppress_skin) {
            echo generate_footer($request);
        }
        break;
    default:
        http_response_code(500);
        echo 'INVALID RESPONSE CODE';
        break;
}
if ($log_not_found) {
    $path = $request['path'];
    if (strlen($path) > 200) {
        $path = substr($path, 0, 200);