code stringlengths 1 2.01M | language stringclasses 1
value |
|---|---|
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_discount_type {
//Methods
public function __construct() {
}
public function get_all() {
$db = new connection();
$con = $... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_city {
//Methods
public function __construct() {
}
public function get_all() {
$db = new connection();
$con = $db->open_... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_combo {
//Methods
public function __construct() {
}
public function get_all() {
$db = new connection();
$con = $db->open... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_seat {
//Methods
public function __construct() {
}
public function get_all() {
$db = new connection();
$con = $db->open_... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_date.php';
class dao_ticket {
//Methods
public function __construct() {
}
public function ... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_booking_line {
//Methods
public function __construct() {
}
public function get_all() {
$db = new connection();
$con = $d... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_user {
//Methods
public function __construct() {
}
public function get_all() {
$db = new connection();
$con = $db->open_... | PHP |
<?php
/**
* User: Viet Anh
* Date: 10/06/2014
* Time: 23:31
*/
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_option
{
public function __construct()
{
... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_seat_status {
//Methods
public function __construct() {
}
public function get_all() {
$db = new connection();
$con = $db... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_movie_status {
//Methods
public function __construct() {
}
public function get_all() {
$db = new connection();
$con = $d... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_movie {
//Methods
public function __construct() {
}
public function get_all() {
$db = new connection();
$con = $db->open... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_cinema {
//Methods
public function __construct() {
}
public function get_all() {
$db = new connection();
$con = $db->ope... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_seat_template {
//Methods
public function __construct() {
}
public function get_all() {
$db = new connection();
$con = $... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_coupon {
//Methods
public function __construct() {
}
public function get_all() {
$db = new connection();
$con = $db->ope... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
class lib_redirect {
// public static function Redirect($redirect_link, $permanent = false) {
// if (headers_sent() === false) {
// header('Location: ' . LINK_ROOT . $redirect_link, true, ($permanent === true) ? 301 : ... | PHP |
<?php
class lib_upload {
public $input_control_name;
public $upload_location;
public function __construct() {
}
public function upload_file($input_control_name, $upload_location) {
$name = $_FILES[$input_control_name]['name'];
$tmp_name = $_FILES[$input_cont... | PHP |
<?php
class lib_code_generator {
public function __construct() {
}
public static function generate_random_string($length = 8) {
$characters = '0123456789abcdefghijklmnopqrst uvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$string = '';
for ($p = 0; $p < $length; $p++) {
... | PHP |
<?php
class lib_pager {
public $total_page;
public $current_page;
public $page_size;
public $total_list;
public function __construct($total_list, $page_size) {
$this->total_list = $total_list;
$this->page_size = $page_size;
$this->total_page = ceil((count($tota... | PHP |
<?php
class lib_data_input {
public $data;
public function __construct() {
}
public function data_input($data) {
$data1 = trim($data);
$data2 = stripslashes($data1);
$data3 = htmlspecialchars($data2);
return $data3;
}
}
| PHP |
<?php
class lib_sql_convert {
const SINGLE_QUOTES = '&squo;';
public function __construct() {
}
public static function get_converted_string($sql_string) {
return str_replace("'", self::SINGLE_QUOTES, $sql_string);
}
public static function get_sql_string($converted_s... | PHP |
<?php
class lib_date {
public function __construct() {
}
public static function get_now() {
return date("Y-m-d H:i:s");
}
public static function convert_to_sql_date($date, $format) {
$temp = DateTime::createFromFormat($format, $date);
return date_format... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_ticket.php";
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_movie.php";
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_seat.php";
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_seat_... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_coupon.php";
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_discount_type.php";
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_sql_convert.php';
/*
* To change this license h... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_cinema.php";
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_city.php";
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_cinema.php";
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'li... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_combo.php";
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_sql_convert.php';
/*
* To change this license header, choose License Headers in Project Properties.
* To change this t... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_seat.php";
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_seat_status.php";
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_sql_convert.php';
/*
* To change this license heade... | PHP |
<?php
/**
* User: Viet Anh
* Date: 10/06/2014
* Time: 23:36
*/
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_option.php";
class api_config
{
public static function get_easypaisa_detail()
... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_movie.php";
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_movie_status.php";
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_sql_convert.php';
/*
* To change this license hea... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_user.php";
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_user.php";
require_once DOCUMENT_ROOT . DIR_SHARED_API . "api_security.php";
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'li... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_booking.php";
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_user.php";
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_combo.php";
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_coup... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_user.php";
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_redirect.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_code_generator.php';
/*
* To change this license h... | PHP |
<?php /* <body><pre>
-------------------------------------------------------------------------------------------
CKEditor - Posted Data
We are sorry, but your Web server does not support the PHP language used in this script.
Please note that CKEditor can be used with any other server-side language than ... | PHP |
<!DOCTYPE html>
<?php
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
?>
<html>
<head>
<meta charset="utf-8">
<title>Sample — CKEditor</title>
<link rel="stylesheet" href="sample.css">
</head>
<body>
<... | PHP |
<?php
//require section
require_once dirname(__FILE__) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_session.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_outside_booking.php';
$title = 'Find ticket by date';
if (!empty($_POST)) {
}
?>
<!DOCTYPE html>
<html>
<head... | PHP |
<?php
//require section
require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_upload.php';
require_once DOCUM... | PHP |
<?php
//require section
require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_security.php';
$title = 'Admin Page';
?>
<!DOCTYPE html>
<html>
<head>
<?php
requir... | PHP |
<?php
//require section
require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_upload.php';
require_once DOCUM... | PHP |
<?php
//require section
require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_upload.php';
require_once DOCUM... | PHP |
<?php
//require section
require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_upload.php';
require_once DOCUM... | PHP |
<?php
//require section
require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_config.php';
$title = 'Configuration';
$txt_ep = filter_input(INPUT_POST, ... | PHP |
<script type="text/javascript">
$(document).ready(function() {
$('.ui .item').on('click', function() {
$('.ui .item').removeClass('active');
$(this).addClass('active');
});
$('.ui.dropdown').dropdown({
on: 'hover'
});
});
fu... | PHP |
<div class="ui orange pointing menu">
<?php
if (empty($_SESSION['user_info']['cinema_id'])) {
?>
<a class="active item" href="<?php echo LINK_ROOT . DIR_ADMIN . "index.php" ?>">
<i class="home icon"></i>Home
</a>
<a class="item" href="... | PHP |
<link rel="stylesheet" href="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_CSS ?>site.css">
<link rel="stylesheet" href="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_CSS ?>ts.css"> | PHP |
<?php
require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'title.php';
require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'menu.php';
?> | PHP |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo $title; ?></title>
<!-- Favicon -->
<link rel="icon" type="image/png" href="<?php echo LINK_ROOT . '/favicon.png' ?>">
<!-- Semantic CSS -->
<link href="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_SEMANTIC_CSS ?>semantic.min.css" rel=... | PHP |
<?php
//require section
require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_cinema_login.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_security.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_booking.php';
$title = 'Admin Pag... | PHP |
<?php
//require section
require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_upload.php';
require_once DOCUM... | PHP |
<?php
//require section
require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_upload.php';
require_once DOCUM... | PHP |
<?php
//require section
require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_upload.php';
require_once DOCUM... | PHP |
<?php
//require section
require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . '/check_user_login.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_upload.php';
require_once DOCUM... | PHP |
<?php
//require section
require_once dirname(__FILE__) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_session.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_outside_booking.php';
$title = 'Find ticket by cinema';
if (!empty($_POST)) {
}
?>
<!DOCTYPE html>
<html>
<he... | PHP |
<?php
//require section
require_once dirname(__FILE__) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_session.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_outside_booking.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_cinemas.php';
require_once DOCUMENT_ROOT . DIR_... | PHP |
<script type="text/javascript">
$(document).ready(function() {
$('.ui .item').on('click', function() {
$('.ui .item').removeClass('active');
$(this).addClass('active');
});
$('.ui.dropdown').dropdown({
on: 'hover'
});
$('.ui.checkb... | PHP |
<?php
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_redirect.php';
if (empty($_SESSION['book_info']['status'])
|| $_SESSION['book_info']['status'] !== "started"
|| empty($_SESSION['user_login'])
|| $_SESSION['user_login'] !== "logined") {
lib_redirect::Redirect('/login.ph... | PHP |
<?php
$time_out = 60;
if(empty($_SESSION['timeout'])){
$_SESSION['timeout'] = time();
} else {
$inactive_time = time() - $_SESSION['timeout'];
if($inactive_time > $time_out){
$_SESSION['timeout'] = time();
}
}
?>
<div class="ui orange pointing menu">
<a href="<?php echo LINK_RO... | PHP |
<?php
session_start();
$time_out = 60;
if(empty($_SESSION['timeout'])){
$_SESSION['timeout'] = time();
} else {
$inactive_time = time() - $_SESSION['timeout'];
if($inactive_time > $time_out){
$_SESSION['timeout'] = time();
}
} | PHP |
<?php
session_start();
require_once dirname(dirname(__FILE__)) . '/shared/libraries/lib_redirect.php';
if (empty($_SESSION['user_login']) || empty($_SESSION['user_info']['cinema_id'])) {
lib_redirect::Redirect('/login.php');
}
| PHP |
<?php
session_start();
require_once dirname(dirname(__FILE__)) . '/shared/libraries/lib_redirect.php';
if (empty($_SESSION['user_login']) || !($_SESSION['user_info']['email'] === 'admin')) {
lib_redirect::Redirect('/login.php');
}
| PHP |
<link rel="stylesheet" href="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_CSS ?>site.css">
<link rel="stylesheet" href="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_CSS ?>ts.css"> | PHP |
<?php
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'menu.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'slider.php';
?> | PHP |
<!-- Slider -->
<div id="wowslider-container1" style="margin-top: 30px;">
<div class="ws_images">
<ul>
<li><img src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES_SLIDESHOW ?>images/1.jpg" alt="X-men" title="X-men" id="wows1_0"/></li>
<li><img src="<?php echo LINK_ROOT . DIR_S... | PHP |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo $title; ?></title>
<!-- Favicon -->
<link rel="icon" type="image/png" href="<?php echo LINK_ROOT . '/favicon.png' ?>">
<!-- Semantic CSS -->
<link href="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_SEMANTIC_CSS ?>semantic.min.css" rel=... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_booking.php';
?>
<div class="four wide column">
<h1>Book Tickets</h1>
<form name="form_book_ticket" id="form_book_ticket" method="... | PHP |
<?php
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_booking.php';
if (!empty($_SESSION['book_info']['status'])
&& $_SESSION['book_info']['status'] === "started") {
if (!empty($_SESSION['book_info']['booking_id'])) {
api_booking::delete_booking($_SESSION['book_info']['booking_id']);
... | PHP |
<?php
function show_movie($item) { ?>
<div class="item" onclick="window.location = 'movie_detail.php?m_id=<?php echo $item["id"] ?>#container'">
<div class="image">
<img src="<?php echo LINK_ROOT . DIR_SHARED_UPLOAD_IMAGES_POSTERS . $item['poster']; ?>">
</div>
<div class... | PHP |
<?php
//require section
require_once dirname(__FILE__) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_session.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_outside_booking.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_movies.php';
$title = '... | PHP |
<?php
//require section
require_once dirname(__FILE__) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_session.php';
//require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_outside_booking.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_security.php';
$title = 'Login Page';
$email... | PHP |
<?php
//require section
require_once dirname(__FILE__) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_session.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_outside_booking.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_cinemas.php';
$ti... | PHP |
<?php
//require section
require_once dirname(__FILE__) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_session.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_inside_booking.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_seats.php';
require_once DOCUMENT_ROOT . DIR_SHA... | PHP |
<?php
//require section
require_once dirname(__FILE__) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_session.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_outside_booking.php';
$title = 'Find ticket by movie';
if (!empty($_POST)) {
}
?>
<!DOCTYPE html>
<html>
<hea... | PHP |
<?php
//require section
require_once dirname(__FILE__) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_session.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'check_outside_booking.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php';
require_once DOCUMENT_ROOT . ... | PHP |
#!/usr/bin/env php
<?php
require_once 'lib/spark/spark_source.php';
require_once 'lib/spark/spark_cli.php';
// define a source
$sources = array();
if ($fh = @fopen(dirname(__FILE__) . '/lib/spark/sources', 'r'))
{
while ($line = fgets($fh))
{
$line = trim($line);
if ($line && $line[0] != '#') ... | PHP |
<?php
class Install_test extends Spark_test_case {
function test_install_with_version()
{
$clines = $this->capture_buffer_lines(function($cli) {
$cli->execute('install', array('-v1.0', 'example-spark'));
});
$success = (bool) (strpos(end($clines), chr(27) . '[1;36m[ SPARK ]... | PHP |
<?php
class Search_test extends Spark_test_case {
function test_search()
{
$clines = $this->capture_buffer_lines(function($cli) {
$cli->execute('search', array('markdown'));
});
// Less than ideal, I know
$this->assertEquals(array("\033[33mmarkdown\033[0m - A markdo... | PHP |
<?php
class Version_test extends Spark_test_case {
function test_version()
{
$clines = $this->capture_buffer_lines(function($cli) {
$cli->execute('version');
});
$this->assertEquals(array(SPARK_VERSION), $clines);
}
function test_sources()
{
$clines = ... | PHP |
<?php
class Remove_test extends Spark_test_case {
function test_remove_with_version()
{
// Test install with a version specified
$clines = $this->capture_buffer_lines(function($cli) {
$cli->execute('install', array('-v1.0', 'example-spark')); // Spark needs installed first
... | PHP |
<?php
define('SPARK_PATH', __DIR__ . '/test-sparks');
require __DIR__ . '/../../lib/spark/spark_cli.php';
class Spark_test_case extends PHPUnit_Framework_TestCase {
function setUp()
{
$this->source_names[] = 'getsparks.org';
$this->sources = array_map(function($n) {
return new Sp... | PHP |
<?php
class Spark_exception extends Exception {
}
| PHP |
<?php
require_once dirname(__FILE__) . '/spark_utils.php';
require_once dirname(__FILE__) . '/spark_exception.php';
require_once dirname(__FILE__) . '/spark_source.php';
define('SPARK_VERSION', '0.0.7');
! defined('SPARK_PATH') AND define('SPARK_PATH', './sparks');
class Spark_CLI {
private static $commands = a... | PHP |
<?php
class Git_spark extends Spark_type {
function __construct($data)
{
if (!self::git_installed())
{
throw new Spark_exception('You have to have git to install this spark.');
}
parent::__construct($data);
$this->tag = $this->tag;
}
static function... | PHP |
<?php
class Mercurial_spark extends Spark_type {
function __construct($data)
{
parent::__construct($data);
$this->tag = $this->tag;
}
static function get_spark($data)
{
if (self::hg_installed())
{
return new Mercurial_spark($data);
}
els... | PHP |
<?php
class Zip_spark extends Spark_type {
function __construct($data)
{
parent::__construct($data);
$this->temp_file = $this->temp_path . '.zip';
$this->archive_url = property_exists($this->data, 'archive_url') ? $this->data->archive_url : null;
}
function location_detail()
... | PHP |
<?php
// backward compatibility
if ( !function_exists('sys_get_temp_dir'))
{
function sys_get_temp_dir()
{
if ($temp = getenv('TMP')) return $temp;
if ($temp = getenv('TEMP')) return $temp;
if ($temp = getenv('TMPDIR')) return $temp;
$temp = tempnam(__FILE__, '');
if (fi... | PHP |
<?php
class Spark_type {
function __construct($data)
{
$this->data = $data;
$this->name = $this->data->name;
$this->spark_id = property_exists($this->data, 'id') ? $this->data->id : null;
$this->version = property_exists($this->data, 'version') ? $this->data->version : null;
... | PHP |
<?php
require_once 'spark_type.php';
require_once 'spark_types/git_spark.php';
require_once 'spark_types/hg_spark.php';
require_once 'spark_types/zip_spark.php';
class Spark_source {
public $url;
public $version_data;
public $version;
function __construct($url)
{
$this->url = $url;
... | PHP |
<?php
$lang['upload_userfile_not_set'] = "Unable to find a post variable called userfile.";
$lang['upload_file_exceeds_limit'] = "The uploaded file exceeds the maximum allowed size in your PHP configuration file.";
$lang['upload_file_exceeds_form_limit'] = "The uploaded file exceeds the maximum size allowed by the sub... | PHP |
<?php
$lang['cal_su'] = "Su";
$lang['cal_mo'] = "Mo";
$lang['cal_tu'] = "Tu";
$lang['cal_we'] = "We";
$lang['cal_th'] = "Th";
$lang['cal_fr'] = "Fr";
$lang['cal_sa'] = "Sa";
$lang['cal_sun'] = "Sun";
$lang['cal_mon'] = "Mon";
$lang['cal_tue'] = "Tue";
$lang['cal_wed'] = "Wed";
$lang['cal_thu'] = "Th... | PHP |
<?php
$lang['db_invalid_connection_str'] = 'Unable to determine the database settings based on the connection string you submitted.';
$lang['db_unable_to_connect'] = 'Unable to connect to your database server using the provided settings.';
$lang['db_unable_to_select'] = 'Unable to select the specified database: %s';
$... | PHP |
<?php
$lang['date_year'] = "Year";
$lang['date_years'] = "Years";
$lang['date_month'] = "Month";
$lang['date_months'] = "Months";
$lang['date_week'] = "Week";
$lang['date_weeks'] = "Weeks";
$lang['date_day'] = "Day";
$lang['date_days'] = "Days";
$lang['date_hour'] = "Hour";
$lang['date_hours'] = "Hours";
$lang['date_m... | PHP |
<?php
$lang['ut_test_name'] = 'Test Name';
$lang['ut_test_datatype'] = 'Test Datatype';
$lang['ut_res_datatype'] = 'Expected Datatype';
$lang['ut_result'] = 'Result';
$lang['ut_undefined'] = 'Undefined Test Name';
$lang['ut_file'] = 'File Name';
$lang['ut_line'] = 'Line Number';
$lang['ut_passed'] = 'Passed'... | PHP |
<?php
$lang['email_must_be_array'] = "The email validation method must be passed an array.";
$lang['email_invalid_address'] = "Invalid email address: %s";
$lang['email_attachment_missing'] = "Unable to locate the following email attachment: %s";
$lang['email_attachment_unreadable'] = "Unable to open this attachment: %... | PHP |
<?php
$lang['required'] = "The %s field is required.";
$lang['isset'] = "The %s field must have a value.";
$lang['valid_email'] = "The %s field must contain a valid email address.";
$lang['valid_emails'] = "The %s field must contain all valid email addresses.";
$lang['valid_url'] = "The %s field must contain ... | PHP |
<?php
$lang['migration_none_found'] = "No migrations were found.";
$lang['migration_not_found'] = "This migration could not be found.";
$lang['migration_multiple_version'] = "This are multiple migrations with the same version number: %d.";
$lang['migration_class_doesnt_exist'] = "The migration class \"%s\" could ... | PHP |
<?php
$lang['imglib_source_image_required'] = "You must specify a source image in your preferences.";
$lang['imglib_gd_required'] = "The GD image library is required for this feature.";
$lang['imglib_gd_required_for_props'] = "Your server must support the GD image library in order to determine the image properties.";
... | PHP |
<?php
$lang['ftp_no_connection'] = "Unable to locate a valid connection ID. Please make sure you are connected before peforming any file routines.";
$lang['ftp_unable_to_connect'] = "Unable to connect to your FTP server using the supplied hostname.";
$lang['ftp_unable_to_login'] = "Unable to login to your FTP serv... | PHP |
<?php
$lang['terabyte_abbr'] = "TB";
$lang['gigabyte_abbr'] = "GB";
$lang['megabyte_abbr'] = "MB";
$lang['kilobyte_abbr'] = "KB";
$lang['bytes'] = "Bytes";
/* End of file number_lang.php */
/* Location: ./system/language/english/number_lang.php */ | PHP |
<?php
$lang['profiler_database'] = 'DATABASE';
$lang['profiler_controller_info'] = 'CLASS/METHOD';
$lang['profiler_benchmarks'] = 'BENCHMARKS';
$lang['profiler_queries'] = 'QUERIES';
$lang['profiler_get_data'] = 'GET DATA';
$lang['profiler_post_data'] = 'POST DATA';
$lang['profiler_uri_string'] = 'URI STRING';
$la... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.