code
stringlengths
1
2.01M
language
stringclasses
1 value
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // // ...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php /** * PHPMailer RFC821 SMTP email transport class. * Version 5.2.7 * PHP version 5.0.0 * @category PHP * @package PHPMailer * @link https://github.com/PHPMailer/PHPMailer/ * @author Marcus Bointon (coolbru) <phpmailer@synchromedia.co.uk> * @author Jim Jagielski (jimjag) <jimjag@gmail.com> * @auth...
PHP
<?php /** * These functions are needed to load Multisite. * * @since 3.0.0 * * @package WordPress * @subpackage Multisite */ /** * Whether a subdomain configuration is enabled. * * @since 3.0.0 * * @return bool True if subdomain configuration is enabled, false otherwise. */ function is_subdomain_install()...
PHP
<?php /** * Comment template functions * * These functions are meant to live inside of the WordPress loop. * * @package WordPress * @subpackage Template */ /** * Retrieve the author of the current comment. * * If the comment has an empty comment_author field, then 'Anonymous' person is * assumed. * * @sin...
PHP
<?php /** * BackPress Scripts enqueue. * * These classes were refactored from the WordPress WP_Scripts and WordPress * script enqueue API. * * @package BackPress * @since r16 */ /** * BackPress Scripts enqueue class. * * @package BackPress * @uses WP_Dependencies * @since r16 */ class WP_Scripts extends ...
PHP
<?php /** * WordPress GD Image Editor * * @package WordPress * @subpackage Image_Editor */ /** * WordPress Image Editor Class for Image Manipulation through GD * * @since 3.5.0 * @package WordPress * @subpackage Image_Editor * @uses WP_Image_Editor Extends class */ class WP_Image_Editor_GD extends WP_Image...
PHP
<?php /** * Deprecated functions from past WordPress versions. You shouldn't use these * functions and look for the alternatives instead. The functions will be * removed in a later version. * * @package WordPress * @subpackage Deprecated */ /* * Deprecated functions come here to die. */ /** * Entire Post da...
PHP
<?php /** * WordPress environment setup class. * * @package WordPress * @since 2.0.0 */ class WP { /** * Public query variables. * * Long list of public query variables. * * @since 2.0.0 * @access public * @var array */ var $public_query_vars = array('m', 'p', 'posts', 'w', 'cat', 'withcomments',...
PHP
<?php /** * WordPress Post Thumbnail Template Functions. * * Support for post thumbnails * Themes function.php must call add_theme_support( 'post-thumbnails' ) to use these. * * @package WordPress * @subpackage Template */ /** * Check if post has an image attached. * * @since 2.9.0 * * @param int $post_id...
PHP
<?php /** * Deprecated. Use WP_HTTP (http.php, class-http.php) instead. */ _deprecated_file( basename( __FILE__ ), '3.0', WPINC . '/http.php' ); if ( !class_exists( 'Snoopy' ) ) : /************************************************* Snoopy - the PHP net client Author: Monte Ohrt <monte@ispi.net> Copyright (c): 1999-...
PHP
<?php /** * Customize Manager. * * Bootstraps the Customize experience on the server-side. * * Sets up the theme-switching process if a theme other than the active one is * being previewed and customized. * * Serves as a factory for Customize Controls and Settings, and * instantiates default Customize Controls...
PHP
<?php /** * WordPress Category API * * @package WordPress */ /** * Retrieves all category IDs. * * @since 2.0.0 * @link http://codex.wordpress.org/Function_Reference/get_all_category_ids * * @return object List of all of the category IDs. */ function get_all_category_ids() { if ( ! $cat_ids = wp_cache_get(...
PHP
<?php /** * The plugin API is located in this file, which allows for creating actions * and filters and hooking functions, and methods. The functions or methods will * then be run when the action or filter is called. * * The API callback examples reference functions, but can be methods of classes. * To hook metho...
PHP
<?php /** * Canonical API to handle WordPress Redirecting * * Based on "Permalink Redirect" from Scott Yang and "Enforce www. Preference" * by Mark Jaquith * * @package WordPress * @since 2.3.0 */ /** * Redirects incoming links to the proper URL based on the site url. * * Search engines consider www.somedom...
PHP
<?php /** * Site/blog functions that work with the blogs table and related data. * * @package WordPress * @subpackage Multisite * @since MU */ /** * Update the last_updated field for the current blog. * * @since MU */ function wpmu_update_blogs_date() { global $wpdb; update_blog_details( $wpdb->blogid, a...
PHP
<?php /** * Customize Control Class * * @package WordPress * @subpackage Customize * @since 3.4.0 */ class WP_Customize_Control { /** * @access public * @var WP_Customize_Manager */ public $manager; /** * @access public * @var string */ public $id; /** * All settings tied to the control. * ...
PHP
<?php /** * Option API * * @package WordPress * @subpackage Option */ /** * Retrieve option value based on name of option. * * If the option does not exist or does not have a value, then the return value * will be false. This is useful to check whether you need to install an option * and is commonly used dur...
PHP
<?php /** * Sets up the default filters and actions for most * of the WordPress hooks. * * If you need to remove a default hook, this file will * give you the priority for which to use to remove the * hook. * * Not all of the default hooks are found in default-filters.php * * @package WordPress */ // Strip,...
PHP
<?php /** * Creates common globals for the rest of WordPress * * Sets $pagenow global which is the current page. Checks * for the browser to set which one is currently being used. * * Detects which user environment WordPress is being used on. * Only attempts to check for Apache, Nginx and IIS -- three web * ser...
PHP
<?php /** * WordPress User API * * @package WordPress * @subpackage Users */ /** * Authenticate user with remember capability. * * The credentials is an array that has 'user_login', 'user_password', and * 'remember' indices. If the credentials is not given, then the log in form * will be assumed and used if ...
PHP
<?php /** * BackPress Styles enqueue. * * These classes were refactored from the WordPress WP_Scripts and WordPress * script enqueue API. * * @package BackPress * @since r74 */ /** * BackPress Styles enqueue class. * * @package BackPress * @uses WP_Dependencies * @since r74 */ class WP_Styles extends WP_...
PHP
<?php /** * Post functions and post utility function. * * @package WordPress * @subpackage Post * @since 1.5.0 */ // // Post Type Registration // /** * Creates the initial post types when 'init' action is fired. * * @since 2.9.0 */ function create_initial_post_types() { register_post_type( 'post', array( ...
PHP
<?php /** * Multisite WordPress API * * @package WordPress * @subpackage Multisite * @since 3.0.0 */ /** * Gets the network's site and user counts. * * @since MU 1.0 * @uses get_blog_count() * @uses get_user_count() * * @return array Site and user count for the network. */ function get_sitestats() { $st...
PHP
<?php /** * Category Template Tags and API. * * @package WordPress * @subpackage Template */ /** * Retrieve category link URL. * * @since 1.0.0 * @see get_term_link() * * @param int|object $category Category ID or object. * @return string Link on success, empty string if category does not exist. */ functi...
PHP
<?php /** * Deprecated. Use rss.php instead. * * @package WordPress */ _deprecated_file( basename(__FILE__), '2.1', WPINC . '/rss.php' ); require_once( ABSPATH . WPINC . '/rss.php' );
PHP
<?php /** * RSS2 Feed Template for displaying RSS2 Comments feed. * * @package WordPress */ header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> <rss version="2.0" xmlns:content="h...
PHP
<?php /** * Post revision functions. * * @package WordPress * @subpackage Post_Revisions */ /** * Determines which fields of posts are to be saved in revisions. * * Does two things. If passed a post *array*, it will return a post array ready * to be inserted into the posts table as a post revision. Otherwise,...
PHP
<?php /** * Facilitates adding of the WordPress editor as used on the Write and Edit screens. * * @package WordPress * @since 3.3.0 * * Private, not included by default. See wp_editor() in wp-includes/general-template.php. */ final class _WP_Editors { public static $mce_locale; private static $mce_settings =...
PHP
<?php /** * Deprecated. No longer needed. * * @package WordPress */ _deprecated_file( basename(__FILE__), '3.1', null, __( 'This file no longer needs to be included.' ) );
PHP
<?php /** * Navigation Menu functions * * @package WordPress * @subpackage Nav_Menus * @since 3.0.0 */ /** * Returns a navigation menu object. * * @since 3.0.0 * * @uses get_term * @uses get_term_by * * @param string $menu Menu id, slug or name * @return mixed false if $menu param isn't supplied or term...
PHP
<?php /** * MagpieRSS: a simple RSS integration tool * * A compiled file for RSS syndication * * @author Kellan Elliott-McCrea <kellan@protest.net> * @version 0.51 * @license GPL * * @package External * @subpackage MagpieRSS * @deprecated 3.0.0 Use SimplePie instead. */ /** * Deprecated. Use SimplePie (cl...
PHP
<?php /** * @package WordPress * @subpackage Theme_Compat * @deprecated 3.0 * * This file is here for Backwards compatibility with old themes and will be removed in a future version * */ _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s t...
PHP
<?php /** * @package WordPress * @subpackage Theme_Compat * @deprecated 3.0 * * This file is here for Backwards compatibility with old themes and will be removed in a future version * */ _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s t...
PHP
<?php /** * @package WordPress * @subpackage Theme_Compat * @deprecated 3.0 * * This file is here for Backwards compatibility with old themes and will be removed in a future version * */ _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s t...
PHP
<?php /** * @package WordPress * @subpackage Theme_Compat * @deprecated 3.0 * * This file is here for Backwards compatibility with old themes and will be removed in a future version * */ _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s t...
PHP
<?php /** * @package WordPress * @subpackage Theme_Compat * @deprecated 3.0 * * This file is here for Backwards compatibility with old themes and will be removed in a future version * */ _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s t...
PHP
<?php /** * API for creating dynamic sidebar without hardcoding functionality into * themes. Includes both internal WordPress routines and theme use routines. * * This functionality was found in a plugin before WordPress 2.2 release which * included it in the core from that point on. * * @link http://codex.wordp...
PHP
<?php /** * Author Template functions for use in themes. * * These functions must be used within the WordPress Loop. * * @link http://codex.wordpress.org/Author_Templates * * @package WordPress * @subpackage Template */ /** * Retrieve the author of the current post. * * @since 1.5.0 * * @uses $authordata...
PHP
<?php /** * RSS2 Feed Template for displaying RSS2 Posts feed. * * @package WordPress */ header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); $more = 1; echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> <rss version="2.0" xmlns:c...
PHP
<?php /** * WordPress DB Class * * Original code from {@link http://php.justinvincent.com Justin Vincent (justin@visunet.ie)} * * @package WordPress * @subpackage Database * @since 0.71 */ /** * @since 0.71 */ define( 'EZSQL_VERSION', 'WP1.25' ); /** * @since 0.71 */ define( 'OBJECT', 'OBJECT' ); define( ...
PHP
<?php /** * BackPress Scripts enqueue * * Classes were refactored from the WP_Scripts and WordPress script enqueue API. * * @since BackPress r74 * * @package BackPress * @uses _WP_Dependency * @since r74 */ class WP_Dependencies { /** * An array of registered handle objects. * * @access public * @sin...
PHP
<?php /** * Theme, template, and stylesheet functions. * * @package WordPress * @subpackage Theme */ /** * Returns an array of WP_Theme objects based on the arguments. * * Despite advances over get_themes(), this function is quite expensive, and grows * linearly with additional themes. Stick to wp_get_theme()...
PHP
<?php /** * General template tags that can go anywhere in a template. * * @package WordPress * @subpackage Template */ /** * Load header template. * * Includes the header template for a theme or if a name is specified then a * specialised header will be included. * * For the parameter, if the file is called...
PHP
<?php if ( !class_exists('SimplePie') ) require_once( ABSPATH . WPINC . '/class-simplepie.php' ); class WP_Feed_Cache extends SimplePie_Cache { /** * Create a new SimplePie_Cache object * * @static * @access public */ function create($location, $filename, $extension) { return new WP_Feed_Cache_Transien...
PHP
<?php /** * Deprecated pluggable functions from past WordPress versions. You shouldn't use these * functions and look for the alternatives instead. The functions will be removed in a * later version. * * Deprecated warnings are also thrown if one of these functions is being defined by a plugin. * * @package Word...
PHP
<?php /** * Metadata API * * Functions for retrieving and manipulating metadata of various WordPress object types. Metadata * for an object is a represented by a simple key-value pair. Objects may contain multiple * metadata entries that share the same key and differ only in their value. * * @package WordPress ...
PHP
<?php /** * The WordPress Toolbar * * @since 3.1.0 * * @package WordPress * @subpackage Toolbar */ class WP_Admin_Bar { private $nodes = array(); private $bound = false; public $user; public function __get( $name ) { switch ( $name ) { case 'proto' : return is_ssl() ? 'https://' : 'http://'; br...
PHP
<?php /** * WordPress Query API * * The query API attempts to get which part of WordPress the user is on. It * also provides functionality for getting URL query information. * * @link http://codex.wordpress.org/The_Loop More information on The Loop. * * @package WordPress * @subpackage Query */ /** * Retrie...
PHP
<?php /** * A simple set of functions to check our version 1.0 update service. * * @package WordPress * @since 2.3.0 */ /** * Check WordPress version against the newest version. * * The WordPress version, PHP version, and Locale is sent. Checks against the * WordPress server at api.wordpress.org server. Will ...
PHP
<?php if ( ! class_exists( 'Services_JSON' ) ) : /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Converts to and from JSON format. * * JSON (JavaScript Object Notation) is a lightweight data-interchange * format. It is easy for humans to read and write. It is easy for machines * to parse and g...
PHP
<?php /** * Atom Syndication Format PHP Library * * @package AtomLib * @link http://code.google.com/p/phpatomlib/ * * @author Elias Torres <elias@torrez.us> * @version 0.4 * @since 2.3.0 */ /** * Structure that store common Atom Feed Properties * * @package AtomLib */ class AtomFeed { /** * Stores Link...
PHP
<?php /** * Taxonomy API * * @package WordPress * @subpackage Taxonomy * @since 2.3.0 */ // // Taxonomy Registration // /** * Creates the initial taxonomies. * * This function fires twice: in wp-settings.php before plugins are loaded (for * backwards compatibility reasons), and again on the 'init' action. W...
PHP
<?php /** * WordPress Post Template Functions. * * Gets content for the current post in the loop. * * @package WordPress * @subpackage Template */ /** * Display the ID of the current item in the WordPress Loop. * * @since 0.71 */ function the_ID() { echo get_the_ID(); } /** * Retrieve the ID of the curre...
PHP
<?php /** * WordPress implementation for PHP functions either missing from older PHP versions or not included by default. * * @package PHP * @access private */ // If gettext isn't available if ( !function_exists('_') ) { function _($string) { return $string; } } if ( !function_exists('mb_substr') ): functio...
PHP
<?php /** * API for easily embedding rich media such as videos and images into content. * * @package WordPress * @subpackage Embed * @since 2.9.0 */ class WP_Embed { var $handlers = array(); var $post_ID; var $usecache = true; var $linkifunknown = true; /** * Constructor */ function __construct() { /...
PHP
<?php /** * RSS 0.92 Feed Template for displaying RSS 0.92 Posts feed. * * @package WordPress */ header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); $more = 1; echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> <rss version="0.92">...
PHP
<?php /** * WordPress Roles and Capabilities. * * @package WordPress * @subpackage User */ /** * WordPress User Roles. * * The role option is simple, the structure is organized by role name that store * the name in value of the 'name' key. The capabilities are stored as an array * in the value of the 'capabi...
PHP
<?php /** * WordPress Diff bastard child of old MediaWiki Diff Formatter. * * Basically all that remains is the table structure and some method names. * * @package WordPress * @subpackage Diff */ if ( !class_exists( 'Text_Diff' ) ) { /** Text_Diff class */ require( dirname(__FILE__).'/Text/Diff.php' ); /** T...
PHP
<?php /** * Base WordPress Image Editor * * @package WordPress * @subpackage Image_Editor */ /** * Base image editor class from which implementations extend * * @since 3.5.0 */ abstract class WP_Image_Editor { protected $file = null; protected $size = null; protected $mime_type = null; protected $default_...
PHP
<?php /** * Post format functions. * * @package WordPress * @subpackage Post */ /** * Retrieve the format slug for a post * * @since 3.1.0 * * @param int|object $post Post ID or post object. Optional, default is the current post from the loop. * @return mixed The format if successful. False otherwise. */ f...
PHP
<?php /** * Deprecated. No longer needed. * * @package WordPress */ _deprecated_file( basename(__FILE__), '2.1', null, __( 'This file no longer needs to be included.' ) );
PHP
<?php /** * WordPress Feed API * * Many of the functions used in here belong in The Loop, or The Loop for the * Feeds. * * @package WordPress * @subpackage Feed */ /** * RSS container for the bloginfo function. * * You can retrieve anything that you can using the get_bloginfo() function. * Everything will ...
PHP
<?php /** * Send XML response back to AJAX request. * * @package WordPress * @since 2.1.0 */ class WP_Ajax_Response { /** * Store XML responses to send. * * @since 2.1.0 * @var array * @access private */ var $responses = array(); /** * Constructor - Passes args to {@link WP_Ajax_Response::add()}....
PHP
<?php /** * Template loading functions. * * @package WordPress * @subpackage Template */ /** * Retrieve path to a template * * Used to quickly retrieve the path of a template without including the file * extension. It will also check the parent theme, if the file exists, with * the use of {@link locate_templ...
PHP
<?php /** * Atom Feed Template for displaying Atom Posts feed. * * @package WordPress */ header('Content-Type: ' . feed_content_type('atom') . '; charset=' . get_option('blog_charset'), true); $more = 1; echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> <feed xmlns="http://www.w3.org...
PHP
<?php /** * Link/Bookmark API * * @package WordPress * @subpackage Bookmark */ /** * Retrieve Bookmark data * * @since 2.1.0 * @uses $wpdb Database Object * * @param mixed $bookmark * @param string $output Optional. Either OBJECT, ARRAY_N, or ARRAY_A constant * @param string $filter Optional, default is '...
PHP
<?php /** * XML-RPC protocol support for WordPress * * @package WordPress */ /** * Whether this is an XML-RPC Request * * @var bool */ define('XMLRPC_REQUEST', true); // Some browser-embedded clients send cookies. We don't want them. $_COOKIE = array(); // A bug in PHP < 5.2.2 makes $HTTP_RAW_POST_DATA not s...
PHP
<?php /** * Gets the email message from the user's mailbox to add as * a WordPress post. Mailbox connection information must be * configured under Settings > Writing * * @package WordPress */ /** Make sure that the WordPress bootstrap has run before continuing. */ require(dirname(__FILE__) . '/wp-load.php'); /*...
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_SHARED_API . 'api_tickets.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_redirect.php'; require_once DOCUMENT_ROOT . DIR_...
PHP
<?php session_start(); require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_booking.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_tickets.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_seats.php'; $payment_method = filte...
PHP
<?php require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_booking.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'head_script.php'; $ticket_quantity = filter_input(INPUT_POST, "ticket_quantity"); $city_id = filter_input(INPUT_POST, "city_id"...
PHP
<?php require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_booking.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'head_script.php'; $empty_load = filter_input(INPUT_POST, "empty_load"); $ticket_quantity = filter_input(INPUT_POST, "ticket_qua...
PHP
<?php session_start(); require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_tickets.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_coupons.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_booking.php'; $coupon_code = filter_i...
PHP
<?php require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_movies.php'; $number = filter_input(INPUT_POST, "number"); ?> <script type="text/javascript"> $(document).ready(function() { $('.ui .item').on('click', function() { ...
PHP
<?php session_start(); require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_tickets.php'; $ticket_id = filter_input(INPUT_POST, "ticket_id"); $_SESSION['book_info']['ticket_id'] = $ticket_id; $ticket = api_tickets::get_ticket_by_id($ticket...
PHP
<?php require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_tickets.php'; $number = filter_input(INPUT_POST, "number"); ?> <script type="text/javascript"> $(document).ready(function() { $('.ui .item').on('click', function() { ...
PHP
<?php require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_cinemas.php'; $number = filter_input(INPUT_POST, "number"); ?> <script type="text/javascript"> $(document).ready(function() { $('.ui .item').on('click', function() { ...
PHP
<?php require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_booking.php'; require_once DOCUMENT_ROOT . DIR_INCLUDE . 'head_script.php'; $empty_load = filter_input(INPUT_POST, "empty_load"); $ticket_quantity = filter_input(INPUT_POST, "ticket_qua...
PHP
<?php require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_booking.php'; $ticket_id = filter_input(INPUT_POST, "ticket_id"); $row = filter_input(INPUT_POST, "row"); $column = filter_input(INPUT_POST, "column"); $book_quantity = filter_input(IN...
PHP
<?php 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'; api_security::logout();
PHP
<?php session_start(); //require section require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_booking.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_config.php'; $total = api_booking::calculate_total_money( ...
PHP
<?php session_start(); //require section require_once dirname(dirname(__FILE__)) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_config.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_tickets.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'ap...
PHP
<?php session_start(); require_once dirname(__FILE__) . '/shared/config/config.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_date.php'; require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_pager.php'; require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_security.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_combos.php'; require_once DOCUMENT_ROOT . DIR_S...
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
<?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_tickets.php'; require_once DOCUMENT_ROOT . DIR_S...
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 = 'Register New Account';...
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_combos.php'; require_once DOCUMENT_ROOT . DIR_SH...
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
<?php // define('LINK_ROOT', 'http://'. $_SERVER['HTTP_HOST']); // define('DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']); define('LINK_ROOT', 'http://' . $_SERVER['HTTP_HOST'] . '/09_movie'); define('DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT'] . '/09_movie'); define('DIR_ADMIN', '/admin/'); define('DIR_ADMIN_INCLU...
PHP
<?php require_once dirname(__FILE__) . '/config.php'; class connection { public $con; public function __construct() { } public function open_connect() { $config = new config(); $db_host = $config->get_db_host(); $db_user = $config->get_db_user(); $...
PHP
<?php require_once dirname(dirname(__FILE__)) . '/config/config.php'; require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php'; class dao_booking { //Methods public function __construct() { } public function get_all_paid() { $db = new connection(); $con = $d...
PHP