PageRenderTime 533ms queryTime 46ms sortTime 135ms getByIdsTime 93ms findMatchingLines 119ms

100+ results results for 'php exit repo:heinep/thaps' (533 ms)

Not the results you expected?
header.tmpl.php https://github.com/harriswong/ATutor.git | PHP | 237 lines
                    
87			<?php if (get_num_new_messages()): ?>
                    
88				<strong><a href="<?php echo $this->base_path; ?>inbox/index.php"><?php echo _AT('inbox'); ?> - <?php echo get_num_new_messages(); ?></a></strong> | 
                    
89			<?php else: ?>
                    
147	<?php if (($_SESSION['course_id'] > 0) && ($_SESSION['enroll'] == AT_ENROLL_NO)) : ?>
                    
148		- <small><a href="<?php echo $this->base_path; ?>enroll.php?course=<?php echo $_SESSION['course_id']; ?>"><?php echo _AT('enroll_me'); ?></a></small>
                    
149	<?php endif; ?></h1>
                    
219		<?php if ($this->sequence_links['resume']): ?>
                    
220				<a style="color:white;" href="<?php echo $this->sequence_links['resume']['url']; ?>" accesskey="."><img src="<?php echo $this->img; ?>resume.gif" border="0" title="<?php echo _AT('resume').': '.$this->sequence_links['resume']['title']; ?> Alt+." alt="<?php echo $this->sequence_links['resume']['title']; ?> Alt+." class="img-size-ascdesc" /></a>
                    
221		<?php else:
                    
222			if ($this->sequence_links['previous']): ?>
                    
223				<a href="<?php echo $this->sequence_links['previous']['url']; ?>" title="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?> Alt+," accesskey=","><img src="<?php echo $this->img; ?>previous.gif" border="0" alt="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?> Alt+," class="img-size-ascdesc" /></a>
                    
224			<?php endif;
                    
225			if ($this->sequence_links['next']): ?>
                    
226				<a href="<?php echo $this->sequence_links['next']['url']; ?>" title="<?php echo _AT('next_topic').': '.$this->sequence_links['next']['title']; ?> Alt+." accesskey="."><img src="<?php echo $this->img; ?>next.gif" border="0" alt="<?php echo _AT('next_topic').': '.$this->sequence_links['next']['title']; ?> Alt+." class="img-size-ascdesc" /></a>
                    
227			<?php endif; ?>
                    
                
WizardController.php https://github.com/rgranadino/magento-mirror.git | PHP | 464 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
89            $this->getResponse()->setRedirect(Mage::getBaseUrl())->sendResponse();
                    
90            exit;
                    
91        }
                    
246                    $this->installFailureCallback();
                    
247                    exit;
                    
248                }
                    
                
admin_review.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 501 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
2
                    
3require_once(APPPATH.'controllers/project.php');
                    
4
                    
                
pearcmd.php https://github.com/ianbogda/FileZ.git | PHP | 445 lines
                    
59if (!isset($_SERVER['argv']) && !isset($argv) && !isset($HTTP_SERVER_VARS['argv'])) {
                    
60    echo 'ERROR: either use the CLI php executable, or set register_argc_argv=On in php.ini';
                    
61    exit(1);
                    
132// this is used in the error handler to retrieve a relative path
                    
133$_PEAR_PHPDIR = $config->get('php_dir');
                    
134$ui->setConfig($config);
                    
166                );
                    
167                $config->set('php_dir', $pearbase . DIRECTORY_SEPARATOR . 'php');
                    
168                $config->set('data_dir', $pearbase . DIRECTORY_SEPARATOR . 'data');
                    
377        return "PEAR Version: ".$GLOBALS['pear_package_version'].
                    
378               "\nPHP Version: ".phpversion().
                    
379               "\nZend Engine Version: ".zend_version().
                    
441 * indent-tabs-mode: nil
                    
442 * mode: php
                    
443 * End:
                    
                
bp-loader.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 487 lines
                    
1<?php
                    
2/**
                    
21
                    
22// Exit if accessed directly
                    
23if ( !defined( 'ABSPATH' ) ) exit;
                    
42	 *
                    
43	 * Most of them have reference functions located in bp-core-functions.php.
                    
44	 * The ones that don't can be accessed via their respective WordPress API's.
                    
260		// Place your custom code (actions/filters) in a file called
                    
261		// '/plugins/bp-custom.php' and it will be loaded before anything else.
                    
262		if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) )
                    
262		if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) )
                    
263			require( WP_PLUGIN_DIR . '/bp-custom.php' );
                    
264
                    
354		// Load the WP abstraction file so BuddyPress can run on all WordPress setups.
                    
355		require( BP_PLUGIN_DIR . '/bp-core/bp-core-wpabstraction.php' );
                    
356
                    
                
acpiphp_ibm.c https://gitlab.com/karrei/inel-imx6-kernel | C | 487 lines
                    
105static int __init ibm_acpiphp_init(void);
                    
106static void __exit ibm_acpiphp_exit(void);
                    
107
                    
117};
                    
118static struct acpiphp_attention_info ibm_attention_info =
                    
119{
                    
207 *
                    
208 * Description: This method is registered with the acpiphp module as a
                    
209 * callback to do the device specific task of getting the LED status.
                    
465
                    
466static void __exit ibm_acpiphp_exit(void)
                    
467{
                    
486module_init(ibm_acpiphp_init);
                    
487module_exit(ibm_acpiphp_exit);
                    
488
                    
                
WizardController.php https://bitbucket.org/chung/buyforher.git | PHP | 464 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
89            $this->getResponse()->setRedirect(Mage::getBaseUrl())->sendResponse();
                    
90            exit;
                    
91        }
                    
246                    $this->installFailureCallback();
                    
247                    exit;
                    
248                }
                    
                
ee374469f3039f2afc01916b1c6255a7d0864358.file.view-registration.tpl.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 260 lines
                    
148</option>
                    
149              <option value="DN" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='DN'){?> selected <?php }?>><?php echo @LBL_DANISH;?>
                    
150</option>
                    
150</option>
                    
151              <option value="FI" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='FI'){?> selected <?php }?>><?php echo @LBL_FINISH;?>
                    
152</option>
                    
156</option>
                    
157              <option value="EE" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='EE'){?> selected <?php }?>><?php echo @LBL_ESTONIAN;?>
                    
158</option>
                    
164</option>
                    
165              <option value="PO" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='PO'){?> selected <?php }?>><?php echo @LBL_POLISH;?>
                    
166</option>
                    
168</option>
                    
169              <option value="ES" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='ES'){?> selected <?php }?>><?php echo @LBL_SPANISH;?>
                    
170</option>
                    
                
edit.php https://github.com/eric-brechemier/wordpress.git | PHP | 294 lines
                    
1<?php
                    
2/**
                    
9/** WordPress Administration Bootstrap */
                    
10require_once( './admin.php' );
                    
11
                    
29
                    
30	if ( strpos($sendback, 'post.php') !== false )
                    
31		$sendback = admin_url($post_new_file);
                    
163<?php screen_icon(); ?>
                    
164<h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php
                    
165if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
                    
168
                    
169<?php
                    
170if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?>
                    
170if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?>
                    
171<div id="message" class="updated"><p><strong><?php _e('This has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_REQUEST['posted'] ); ?>"><?php _e('View Post'); ?></a> | <a href="<?php echo get_edit_post_link( $_REQUEST['posted'] ); ?>"><?php _e('Edit Post'); ?></a></p></div>
                    
172<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
                    
                
tbl_replace.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 414 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * usally called as form action from tbl_change.php to insert or update table rows
                    
7 *
                    
7 *
                    
8 * @version $Id: tbl_replace.php 12245 2009-02-23 08:36:34Z lem9 $
                    
9 *
                    
54 */
                    
55require_once './libraries/common.inc.php';
                    
56
                    
69    $GLOBALS['js_include'][] = 'tbl_change.js';
                    
70    require_once './libraries/header.inc.php';
                    
71    require './tbl_change.php';
                    
71    require './tbl_change.php';
                    
72    exit;
                    
73}
                    
                
admin.php https://github.com/Brucee/pyrocms.git | PHP | 562 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2/**
                    
269					// Redirect back to the form or main page
                    
270					$this->input->post('btnAction') == 'save_exit'
                    
271						? redirect('admin/pages')
                    
379			// Redirect back to the form or main page
                    
380			$this->input->post('btnAction') == 'save_exit'
                    
381				? redirect('admin/pages')
                    
543			
                    
544					<li id="page_<?php echo $page['id']; ?>">
                    
545						<div>
                    
545						<div>
                    
546							<a href="#" rel="<?php echo $page['id'] . '">' . $page['title']; ?></a>
                    
547						</div>
                    
548					
                    
549				<?php if(isset($page['children'])): ?>
                    
550						<ol>
                    
                
lexer.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 393 lines
                    
1<?php  // $Id: lexer.php,v 1.1 2005/01/31 07:39:03 moodler Exp $
                    
2
                    
2
                    
3/* PHP lexer code snarfed from the CVS tree for the lamplib project at 
                    
4 * http://sourceforge.net/projects/lamplib
                    
13    define("LEXER_UNMATCHED", 3);
                    
14    define("LEXER_EXIT", 4);
                    
15    define("LEXER_SPECIAL", 5);
                    
165     *    Some optimisation to make the sure the
                    
166     *    content is only scanned by the PHP regex
                    
167     *    parser once. Lexer modes must not start
                    
232        /**
                    
233         *    Adds a pattern that will exit the current mode
                    
234         *    and re-enter the previous one.
                    
239         */
                    
240        function addExitPattern($pattern, $mode) {
                    
241            if (!isset($this->_regexes[$mode])) {
                    
                
class-cp-user-relationships.php https://gitlab.com/dev73/clusterpress | PHP | 543 lines
                    
1<?php
                    
2/**
                    
10
                    
11// Exit if accessed directly.
                    
12defined( 'ABSPATH' ) || exit;
                    
                
blogger.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 323 lines
                    
1<?php
                    
2/**
                    
4 * @copyright	Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
                    
5 * @license		GNU/GPL, see LICENSE.php
                    
6 *
                    
10 * other free or open source software licenses.
                    
11 * See COPYRIGHT.php for copyright notices and details.
                    
12 */
                    
15
                    
16require_once( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'parent.php' );
                    
17
                    
73
                    
74  		require_once( EBLOG_HELPERS . DIRECTORY_SEPARATOR . 'helper.php' );
                    
75  		$config  			= EasyBlogHelper::getConfig();
                    
135		//echo $query;
                    
136		//exit;
                    
137
                    
                
server.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 407 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#ifndef incl_HPHP_HTTP_SERVER_SERVER_H_
                    
18#define incl_HPHP_HTTP_SERVER_SERVER_H_
                    
                
file_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 479 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
334 *
                    
335 * Translates a file extension into a mime type based on config/mimes.php.
                    
336 * Returns FALSE if it can't determine the type, or open the mime config file
                    
477
                    
478/* End of file file_helper.php */
                    
479/* Location: ./system/helpers/file_helper.php */
                    
                
trackBlobs.php https://github.com/daevid/MWFork.git | PHP | 396 lines
                    
1<?php
                    
2/**
                    
28if ( count( $args ) < 1 ) {
                    
29	echo "Usage: php trackBlobs.php <cluster> [... <cluster>]\n";
                    
30	echo "Adds blobs from a given ES cluster to the blob_tracking table\n";
                    
32
                    
33	exit( 1 );
                    
34}
                    
82			echo "Integrity check failed: found HistoryBlobStub objects in your text table.\n" .
                    
83				"This script could destroy these objects if it continued. Run resolveStubs.php\n" .
                    
84				"to fix this.\n";
                    
84				"to fix this.\n";
                    
85			exit( 1 );
                    
86		}
                    
97			echo "Integrity check failed: found external storage pointers in your archive table.\n" .
                    
98				"Run normaliseArchiveTable.php to fix this.\n";
                    
99			exit( 1 );
                    
                
file_helper.php https://bitbucket.org/inventxo/inventxo_root_php.git | PHP | 479 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
334 *
                    
335 * Translates a file extension into a mime type based on config/mimes.php.
                    
336 * Returns FALSE if it can't determine the type, or open the mime config file
                    
354		{
                    
355			if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/mimes.php'))
                    
356			{
                    
356			{
                    
357				include(APPPATH.'config/'.ENVIRONMENT.'/mimes.php');
                    
358			}
                    
                
index.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 336 lines
                    
1<?php
                    
2
                    
15
                    
16require_once('../../../config.php');
                    
17require_once($CFG->libdir.'/adminlib.php');
                    
57    }
                    
58    exit;
                    
59}
                    
72    echo json_encode(true);
                    
73    exit;
                    
74}
                    
78    echo json_encode(true);
                    
79    exit;
                    
80}
                    
96
                    
97<form method="post" action="index.php">
                    
98  <div>
                    
                
Router.php https://bitbucket.org/mbaily/tremain.git | PHP | 460 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.2.4 or newer
                    
6 *
                    
87
                    
88		// Load the routes.php file.
                    
89		@include(APPPATH.'config/routes.php');
                    
220		// Does the requested controller exist in the root folder?
                    
221		if (file_exists(APPPATH.'controllers/'.$segments[0].'.php'))
                    
222		{
                    
235				// Does the requested controller exist in the sub-folder?
                    
236				if ( ! file_exists(APPPATH.'controllers/'.$this->fetch_directory().$segments[0].'.php'))
                    
237				{
                    
257				// Does the default controller exist in the sub-folder?
                    
258				if ( ! file_exists(APPPATH.'controllers/'.$this->fetch_directory().$this->default_controller.'.php'))
                    
259				{
                    
                
grid.locale-en.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 224 lines
                    
6 * Dual licensed under the MIT and GPL licenses:
                    
7 * http://www.opensource.org/licenses/mit-license.php
                    
8 * http://www.gnu.org/licenses/gpl.html
                    
69            bNo: "No",
                    
70            bExit: "Cancel",
                    
71            msg: {
                    
158                masks: {
                    
159                    // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid
                    
160                    // and see http://docs.jquery.com/UI/Datepicker/formatDate
                    
163                    // information about date, time, numbers and currency formats used in different countries
                    
164                    // one should just convert the information in PHP format
                    
165                    // short date:
                    
                
WARCReader.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 290 lines
                    
134     * @param options Usage options.
                    
135     * @param exitCode Exit code.
                    
136     */
                    
137    private static void usage(HelpFormatter formatter, Options options,
                    
138            int exitCode) {
                    
139        formatter.printHelp("java org.archive.io.arc.WARCReader" +
                    
143                options);
                    
144        System.exit(exitCode);
                    
145    }
                    
182     * usage: java org.archive.io.arc.WARCReader [--offset=#] ARCFILE
                    
183     *  -h,--help      Prints this message and exits.
                    
184     *  -o,--offset    Outputs record at this offset into arc file.</pre>
                    
186     * <p>Outputs using a pseudo-CDX format as described here:
                    
187     * <a href="http://www.archive.org/web/researcher/cdx_legend.php">CDX
                    
188     * Legent</a> and here
                    
                
ucp_prefs.php https://github.com/naderman/phpbb-orchestra.git | PHP | 357 lines
                    
1<?php
                    
2/**
                    
5* @version $Id$
                    
6* @copyright (c) 2005 phpBB Group
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
13*/
                    
14if (!defined('IN_PHPBB'))
                    
15{
                    
15{
                    
16	exit;
                    
17}
                    
29	{
                    
30		global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx;
                    
31
                    
                
author.php https://gitlab.com/mucill/majalengka | PHP | 264 lines
                    
37require SB.'admin/default/session_check.inc.php';
                    
38require SIMBIO.'simbio_GUI/table/simbio_table.inc.php';
                    
39require SIMBIO.'simbio_GUI/form_maker/simbio_form_table_AJAX.inc.php';
                    
88                utility::jsAlert(__('New Author Data Successfully Saved'));
                    
89                echo '<script type="text/javascript">parent.jQuery(\'#mainContent\').simbioAJAX(\''.$_SERVER['PHP_SELF'].'\');</script>';
                    
90            } else { utility::jsAlert(__('Author Data FAILED to Save. Please Contact System Administrator')."\nDEBUG : ".$sql_op->error); }
                    
93    }
                    
94    exit();
                    
95} else if (isset($_POST['itemID']) AND !empty($_POST['itemID']) AND isset($_POST['itemAction'])) {
                    
135	  <div class="btn-group">
                    
136      <a href="<?php echo MWB; ?>master_file/author.php" class="btn btn-default"><i class="glyphicon glyphicon-list-alt"></i>&nbsp;<?php echo __('Author List'); ?></a>
                    
137      <a href="<?php echo MWB; ?>master_file/author.php?action=detail" class="btn btn-default"><i class="glyphicon glyphicon-plus"></i>&nbsp;<?php echo __('Add New Author'); ?></a>
                    
138	  </div>
                    
139    <form name="search" action="<?php echo MWB; ?>master_file/author.php" id="search" method="get" style="display: inline;"><?php echo __('Search'); ?> :
                    
140    <input type="text" name="keywords" size="30" />
                    
                
class-wc-shipping-legacy-flat-rate.php https://gitlab.com/hunt9310/ras | PHP | 379 lines
                    
1<?php
                    
2if ( ! defined( 'ABSPATH' ) ) {
                    
2if ( ! defined( 'ABSPATH' ) ) {
                    
3	exit;
                    
4}
                    
26		$this->method_title       = __( 'Flat Rate (Legacy)', 'woocommerce' );
                    
27		$this->method_description = sprintf( __( '<strong>This method is deprecated in 2.6.0 and will be removed in future versions - we recommend disabling it and instead setting up a new rate within your <a href="%s">Shipping Zones</a>.</strong>', 'woocommerce' ), admin_url( 'admin.php?page=wc-settings&tab=shipping' ) );
                    
28		$this->init();
                    
40		if ( 'no' === $this->settings[ 'enabled' ] ) {
                    
41			wp_redirect( admin_url( 'admin.php?page=wc-settings&tab=shipping&section=options' ) );
                    
42			exit;
                    
76	public function init_form_fields() {
                    
77		$this->form_fields = include( 'includes/settings-flat-rate.php' );
                    
78	}
                    
86	protected function evaluate_cost( $sum, $args = array() ) {
                    
87		include_once( WC()->plugin_path() . '/includes/libraries/class-wc-eval-math.php' );
                    
88
                    
                
Loader.php https://gitlab.com/buitenzorg812/garapic.cms | PHP | 481 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
12 *
                    
13 * Install this file as application/third_party/MX/Loader.php
                    
14 *
                    
352		{
                    
353			echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
                    
354		}
                    
480/** load the CI class for Modular Separation **/
                    
481(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php';
                    
                
settings_lang.php https://github.com/JamieLomas/pyrocms.git | PHP | 145 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
32$lang['settings_date_format_desc']				= 'كيف يجب عرض التواريخ في الموقع ولوحة التحكم؟ ' .
                    
33													'باستخدام <a href="http://php.net/manual/en/function.date.php" target="_black">نسق تواريخ</a> PHP - أو - ' .
                    
34													'باستخدام نسق <a href="http://php.net/manual/en/function.strftime.php" target="_black">النصوص المُنسّقة كتواريخ</a> باستخدام PHP.';
                    
144
                    
145/* End of file settings_lang.php */
                    
146
                    
                
url_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 593 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
341	var l=new Array();
                    
342	<?php
                    
343	$i = 0;
                    
343	$i = 0;
                    
344	foreach ($x as $val){ ?>l[<?php echo $i++; ?>]='<?php echo $val; ?>';<?php } ?>
                    
345
                    
348	else document.write(unescape(l[i]));}
                    
349	</script><?php
                    
350
                    
543		}
                    
544		exit;
                    
545	}
                    
                
MY_url_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 542 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
535		}
                    
536		exit;
                    
537	}
                    
540
                    
541/* End of file MY_url_helper.php */
                    
542/* Location: ./application/helpers/MY_url_helper.php */
                    
                
processes_Import_Ajax.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 292 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * processes_ImportFile.php
                    
4 *
                    
290echo G::json_encode( $result );
                    
291exit();
                    
292
                    
                
settings_lang.php https://github.com/kadoshmt/Pyro-Deals.git | PHP | 150 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2/**
                    
43$lang['settings_date_format_desc']						= 'Как будут отображаться даты на сайте и в панели управления? ' .
                    
44													'С помощью <a href="http://php.net/manual/ru/function.date.php" target="_black">функции date</a> из PHP - или - ' .
                    
45													'Используя <a href="http://php.net/manual/ru/function.strftime.php" target="_black">форматирование строк с датой</a> из PHP.';
                    
148
                    
149/* End of file settings_lang.php */
                    
150/* Location: ./system/cms/modules/settings/language/russian/settings_lang.php */
                    
                
category.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 394 lines
                    
1<?php
                    
2/**
                    
4* @copyright	Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
                    
5* @license		GNU/GPL, see LICENSE.php
                    
6* EasyBlog is free software. This version may have been modified pursuant
                    
9* other free or open source software licenses.
                    
10* See COPYRIGHT.php for copyright notices and details.
                    
11*/
                    
35	{
                    
36		var_dump( 'hi' );exit;
                    
37	}
                    
41		// Check for request forgeries
                    
42		JRequest::checkToken() or jexit( 'Invalid Token' );
                    
43		
                    
49		// Check for request forgeries
                    
50		JRequest::checkToken() or jexit( 'Invalid Token' );
                    
51		
                    
                
behat_config_manager.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 279 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
27
                    
28require_once(__DIR__ . '/../lib.php');
                    
29require_once(__DIR__ . '/behat_command.php');
                    
29require_once(__DIR__ . '/behat_command.php');
                    
30require_once(__DIR__ . '/../../testing/classes/tests_finder.php');
                    
31
                    
101        if (!file_put_contents($configfilepath, $contents)) {
                    
102            behat_error(BEHAT_EXITCODE_PERMISSIONS, 'File ' . $configfilepath . ' can not be created');
                    
103        }
                    
131            $diriterator = new DirectoryIterator($componentpath . self::get_behat_tests_path());
                    
132            $regite = new RegexIterator($diriterator, '|behat_.*\.php$|');
                    
133
                    
133
                    
134            // All behat_*.php inside behat_config_manager::get_behat_tests_path() are added as steps definitions files.
                    
135            foreach ($regite as $file) {
                    
                
countries.php https://gitlab.com/campus-academy/krowkaramel | PHP | 266 lines
                    
1<?php
                    
2/**
                    
13
                    
14defined( 'ABSPATH' ) || exit;
                    
15
                    
                
SCP.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 360 lines
                    
3/**
                    
4 * Pure-PHP implementation of SCP.
                    
5 *
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
7 *
                    
8 * The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}.
                    
9 *
                    
11 * <code>
                    
12 * <?php
                    
13 *    include 'Net/SCP.php';
                    
13 *    include 'Net/SCP.php';
                    
14 *    include 'Net/SSH2.php';
                    
15 *
                    
                
class.utilitycontroller.php https://github.com/abhishekmica/Garden.git | PHP | 278 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
91			foreach ($AppNames as $AppName) {
                    
92				$Files[] = CombinePaths(array(PATH_APPLICATIONS, $AppName, 'settings', 'structure.php'), DS);
                    
93			}
                    
96			 // Load that specific application structure file.
                    
97         $Files[] = CombinePaths(array(PATH_APPLICATIONS, $AppName, 'settings', 'structure.php'), DS);
                    
98      }
                    
                
WifiRemote.cs https://github.com/MPExtended/MPExtended.git | C# | 258 lines
                    
4// The use and distribution terms for this software are covered by the
                    
5// Common Public License 1.0 (http://opensource.org/licenses/cpl1.0.php)
                    
6// which can be found in the file CPL.TXT at the root of this distribution.
                    
82            proc.WaitForExit();
                    
83            Log.Write("WifiRemote: MPEI finished with exit code {0}", proc.ExitCode);
                    
84
                    
                
plugin.php https://github.com/marcoscoelho/pyrocms.git | PHP | 421 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2/**
                    
52									(($chunk->type == 'markdown') ? $chunk->parsed : $chunk->body) .
                    
53								'</div>'.PHP_EOL;
                    
54		}
                    
119											(($chunk->type == 'markdown') ? $chunk->parsed : $chunk->body) .
                    
120										'</div>'.PHP_EOL;
                    
121				}
                    
420
                    
421/* End of file plugin.php */
                    
                
ui.class.php https://gitlab.com/x33n/ampache | PHP | 355 lines
                    
1<?php
                    
2/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
                    
46        header("HTTP/1.1 403 $error");
                    
47        require_once AmpConfig::get('prefix') . '/templates/show_denied.inc.php';
                    
48        exit;
                    
276    {
                    
277        require_once AmpConfig::get('prefix') . '/templates/header.inc.php';
                    
278    }
                    
289        }
                    
290        require_once AmpConfig::get('prefix') . '/templates/footer.inc.php';
                    
291        if (isset($_REQUEST['profiling'])) {
                    
302    {
                    
303        require AmpConfig::get('prefix') . '/templates/show_box_top.inc.php';
                    
304    }
                    
312    {
                    
313        require AmpConfig::get('prefix') . '/templates/show_box_bottom.inc.php';
                    
314    }
                    
                
relocation-x64.cpp https://github.com/soitun/hiphop-php.git | C++ | 416 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#include "hphp/runtime/vm/jit/relocation.h"
                    
18
                    
                
ConsoleShell.php https://bitbucket.org/ManiAdil/jardinorient.git | PHP | 384 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
9 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @link          http://cakephp.org CakePHP(tm) Project
                    
11 * @since         CakePHP(tm) v 1.2.0.5012
                    
11 * @since         CakePHP(tm) v 1.2.0.5012
                    
12 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
13 */
                    
17/**
                    
18 * Provides a very basic 'interactive' console for CakePHP apps.
                    
19 *
                    
136			'Alternatively, you can use simple array syntax to test reverse',
                    
137			'To reload your routes config (Config/routes.php), do the following:',
                    
138			"",
                    
                
innodb.lib.php https://github.com/drbowen/openemr.git | PHP | 411 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin-Engines
                    
7 */
                    
7 */
                    
8if (! defined('PHPMYADMIN')) {
                    
9    exit;
                    
14 *
                    
15 * @package PhpMyAdmin-Engines
                    
16 */
                    
362     * http://www.innodb.com/products/innodb_plugin
                    
363     * (do not confuse this with phpMyAdmin's storage engine plugins!)
                    
364     *
                    
376     * http://www.innodb.com/products/innodb_plugin
                    
377     * (do not confuse this with phpMyAdmin's storage engine plugins!)
                    
378     *
                    
                
sqlite_driver.php https://gitlab.com/venenux/codeigniterpower | PHP | 660 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
658
                    
659/* End of file sqlite_driver.php */
                    
660/* Location: ./system/database/drivers/sqlite/sqlite_driver.php */
                    
                
TextStatistics.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 414 lines
                    
1<?php
                    
2/**
                    
8	header( 'HTTP/1.1 403 Forbidden' );
                    
9	exit();
                    
10}
                    
17	 *
                    
18	 * @link    http://code.google.com/p/php-text-statistics/
                    
19	 * @link	https://github.com/DaveChild/Text-Statistics (new repo location)
                    
19	 * @link	https://github.com/DaveChild/Text-Statistics (new repo location)
                    
20	 * @license http://www.opensource.org/licenses/bsd-license.php New BSD license
                    
21	 *
                    
                
Misc.php https://bitbucket.org/tdevonshire/guinness-jazz-festival.git | PHP | 388 lines
                    
1<?php
                    
2/*
                    
12 */
                    
13if (!defined('IN_CKFINDER')) exit;
                    
14
                    
30        if (!empty($_GET['langCode']) && preg_match("/^[a-z\-]+$/", $_GET['langCode'])) {
                    
31            if (file_exists(CKFINDER_CONNECTOR_LANG_PATH . "/" . $_GET['langCode'] . ".php"))
                    
32                $langCode = $_GET['langCode'];
                    
64    /**
                    
65     * @link http://pl.php.net/manual/en/function.imagecopyresampled.php
                    
66     * replacement to imagecopyresampled that will deliver results that are almost identical except MUCH faster (very typically 30 times faster)
                    
110    /**
                    
111     * @link http://pl.php.net/manual/pl/function.imagecreatefromjpeg.php
                    
112     * function posted by e dot a dot schultz at gmail dot com
                    
170    /**
                    
171     * convert shorthand php.ini notation into bytes, much like how the PHP source does it
                    
172     * @link http://pl.php.net/manual/en/function.ini-get.php
                    
                
82f9856e4ee0c308539588cbfc82bb67bd3b911c.file.page.tpl.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 201 lines
                    
59<?php if ($_smarty_tpl->tpl_vars['add_permission']->value=='1') {?>
                    
60<div id="module_install" class="row" style="<?php if (!isset($_POST['downloadflag'])) {?>display: none;<?php }?>">
                    
61
                    
146				</form>
                    
147				<a class="categoryModuleFilterLink list-group-item <?php if (isset($_smarty_tpl->tpl_vars['categoryFiltered']->value['favorites'])) {?>active<?php }?>" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
                    
148&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
                    
153				</a>
                    
154				<a class="categoryModuleFilterLink list-group-item <?php if (count($_smarty_tpl->tpl_vars['categoryFiltered']->value)<=0) {?>active<?php }?>" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
                    
155&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
                    
167?>
                    
168					<a class="categoryModuleFilterLink list-group-item <?php if (isset($_smarty_tpl->tpl_vars['categoryFiltered']->value[$_smarty_tpl->tpl_vars['module_category_key']->value])) {?>active<?php }?>" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
                    
169&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
                    
169&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
                    
170&amp;<?php if (isset($_smarty_tpl->tpl_vars['categoryFiltered']->value[$_smarty_tpl->tpl_vars['module_category_key']->value])) {?>un<?php }?>filterCategory=<?php echo $_smarty_tpl->tpl_vars['module_category_key']->value;?>
                    
171" id="filter_<?php echo $_smarty_tpl->tpl_vars['module_category_key']->value;?>
                    
                
step6.php https://github.com/usagi-project/mynets1.git | PHP | 244 lines
                    
1<?php
                    
2 if ($act == 'check' && $errmsg == '') {
                    
7 <input type="hidden" name="db_server" value="<?php echo  $db_server; ?>" />
                    
8 <input type="hidden" name="db_user" value="<?php echo  $db_user; ?>" />
                    
9 <input type="hidden" name="db_pass" value="<?php echo  $db_pass; ?>" />
                    
9 <input type="hidden" name="db_pass" value="<?php echo  $db_pass; ?>" />
                    
10 <input type="hidden" name="db_name" value="<?php echo  $db_name; ?>" />
                    
11 <!--<input type="hidden" name="db_version" value="<?php echo  $db_version; ?>" />-->
                    
11 <!--<input type="hidden" name="db_version" value="<?php echo  $db_version; ?>" />-->
                    
12 <input type="hidden" name="db_prefix" value="<?php echo  $db_prefix; ?>" />
                    
13 <input type="hidden" name="current_url" value="<?php echo  $current_url; ?>" />
                    
29 <!--<input type="hidden" name="db_version" value="<?php echo  $db_version; ?>" />-->
                    
30 <input type="hidden" name="image_max_size" value="<?php echo  $image_max_size; ?>" />
                    
31 <?php
                    
135         <p class="GREEN">インストールを中止する場合や、改めて最初から行いたい場合は<a href="./">こちらを押して</a>インストール作業を中止してください。<br /></p>
                    
136         config.phpファイルと、DBにテーブルを作成します。<br />もし作成後にやり直す場合は、confフォルダー内のconfig.phpを削除し、先ほど設定したDBの中のテーブルを削除してください。
                    
137         </td>
                    
                
ClientesController.php https://gitlab.com/fabiorf/fsipedidos | PHP | 320 lines
                    
1<?php
                    
2 
                    
2 
                    
3// namespace de localizacao clientesController.php
                    
4namespace Cliente\Controller;
                    
189        
                    
190        #exit;
                    
191        // filtra id passsado pela url
                    
                
reqTcAssign.php https://github.com/testlinkjp/testlink-japanese-localization.git | PHP | 340 lines
                    
1<?php
                    
2/** 
                    
4 *  
                    
5 * @filesource	reqTcAssign.php
                    
6 * @author 		Martin Havlat
                    
13**/
                    
14require_once("../../config.inc.php");
                    
15require_once("common.php");
                    
15require_once("common.php");
                    
16require_once('requirements.inc.php');
                    
17testlinkInitPage($db);
                    
73	    show_instructions('assignReqs');
                    
74	    exit();
                    
75    break;
                    
91		tlog("Wrong GET/POST arguments.", 'ERROR');
                    
92		exit();
                    
93	break;
                    
                
Parametro.php https://gitlab.com/bluedrayco/Portafolio | PHP | 439 lines
                    
1<?php
                    
2
                    
354     * @param int $parametro_id identificador del Parametro a eliminar
                    
355     * @return mixed objeto respuesta con un mensaje de exito o error
                    
356     */
                    
                
extradata.h https://bitbucket.org/gnanakeethan/hiphop-php.git | C Header | 388 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
17#ifndef incl_HPHP_VM_EXTRADATA_H_
                    
18#define incl_HPHP_VM_EXTRADATA_H_
                    
19
                    
346X(ReqBindJmpNZero,              ReqBindJccData);
                    
347X(SideExitGuardLoc,             SideExitGuardData);
                    
348X(SideExitGuardStk,             SideExitGuardData);
                    
                
paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/sg | PHP | 148 lines
                    
1<?php
                    
2/**
                    
17if(!defined('WPINC')) // MUST have WordPress.
                    
18	exit('Do not access this file directly.');
                    
19
                    
                
ibase_driver.php https://gitlab.com/carlosambiado89/IntranetPlanEvalWeb | PHP | 396 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
37 */
                    
38defined('BASEPATH') OR exit('No direct script access allowed');
                    
39
                    
                
installv2.sh https://bitbucket.org/jorgenio/boca.git | Shell | 320 lines
                    
55  echo "File /etc/lsb-release not found. Is this a ubuntu or debian-like distro?"
                    
56  exit 1
                    
57fi
                    
93  echo "libstdc++6-*-dev not found"
                    
94  exit 1
                    
95fi
                    
98  echo "libstdc++6-*-dbg not found"
                    
99  exit 1
                    
100fi
                    
103  echo "libstdc++6-*-doc not found"
                    
104  exit 1
                    
105fi
                    
111apt-get -y install zenity apache2 eclipse-pde eclipse-rcp eclipse-platform eclipse-jdt eclipse emacs \
                    
112  evince g++ gcc gedit scite libstdc++6 makepasswd manpages-dev mii-diag php5-cli php5-mcrypt openjdk-6-dbg \
                    
113  php5 php5-pgsql postgresql postgresql-client postgresql-contrib quota sharutils default-jdk openjdk-6-doc \
                    
                
config.php https://bitbucket.org/apueee/clientmanager.git | PHP | 347 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
20|
                    
21| Typically this will be your marketnichelist.php file, unless you've renamed it to
                    
22| something else. If you are using mod_rewrite to remove the page set this
                    
143| invoke your controllers and its functions:
                    
144| example.com/marketnichelist.php?c=controller&m=function
                    
145|
                    
166|	0 = Disables logging, Error logging TURNED OFF
                    
167|	1 = Error Messages (including PHP errors)
                    
168|	2 = Debug Messages
                    
193|
                    
194| Each item that is logged has an associated date. You can use PHP date
                    
195| codes to set your own date formatting
                    
320|--------------------------------------------------------------------------
                    
321| Rewrite PHP Short Tags
                    
322|--------------------------------------------------------------------------
                    
                
WizardController.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | PHP | 464 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
89            $this->getResponse()->setRedirect(Mage::getBaseUrl())->sendResponse();
                    
90            exit;
                    
91        }
                    
246                    $this->installFailureCallback();
                    
247                    exit;
                    
248                }
                    
                
DBFile.class.php https://github.com/Krassmus/tsc.git | PHP | 241 lines
                    
1<?php
                    
2
                    
2
                    
3require_once dirname(__file__)."/vendor/qqUpload.php";
                    
4require_once dirname(__file__)."/Cache.class.php";
                    
50     * Liefert die aktuelle Datei aus, wenn der Nutzer das Recht zum Sehen hat.
                    
51     * Ignoriert alle anderen Ausgaben von PHP und beendet das Programm, sodass nur die Datei
                    
52     * zurückgegeben werden kann!
                    
70                header("HTTP/1.1 304 Not Modified");
                    
71                exit;
                    
72            }
                    
76            print $file_data[$this->content_field];
                    
77            exit;
                    
78        }
                    
                
Ion_auth.php https://github.com/aletaschile/CodeIgniter-Ion-Auth.git | PHP | 375 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
17*
                    
18* Requirements: PHP5 or above
                    
19*
                    
                
manage_vote_sites.php https://gitlab.com/Tamm/RFCP | PHP | 280 lines
                    
1<?php
                    
2
                    
82        $do_process = 0;
                    
83        $exit_process = false;
                    
84        $exit_text = "";
                    
                
SCP.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 361 lines
                    
3/**
                    
4 * Pure-PHP implementation of SCP.
                    
5 *
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
7 *
                    
8 * The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}.
                    
9 *
                    
11 * <code>
                    
12 * <?php
                    
13 *    include('Net/SCP.php');
                    
13 *    include('Net/SCP.php');
                    
14 *    include('Net/SSH2.php');
                    
15 *
                    
                
index.php https://github.com/karpenoktem/punbb.git | PHP | 244 lines
                    
128else if (isset($_PHPA))
                    
129	$php_accelerator = '<a href="http://www.php-accelerator.co.uk/">ionCube PHP Accelerator</a>';
                    
130else if (ini_get('apc.enabled'))
                    
130else if (ini_get('apc.enabled'))
                    
131	$php_accelerator ='<a href="http://www.php.net/apc/">Alternative PHP Cache (APC)</a>';
                    
132else if (ini_get('zend_optimizer.optimization_level'))
                    
204					<h3 class="ct-legend hn"><span><?php echo $lang_admin_index['Server load'] ?></span></h3>
                    
205					<p><span><?php echo $server_load ?> (<?php echo $num_online.' '.$lang_admin_index['users online']?>)</span></p>
                    
206				</div>
                    
213						<li><span><?php echo $lang_admin_index['Operating system'] ?>: <?php echo PHP_OS ?></span></li>
                    
214						<li><span>PHP: <?php echo PHP_VERSION ?> - <a href="<?php echo forum_link($forum_url['admin_index']) ?>?action=phpinfo"><?php echo $lang_admin_index['Show info'] ?></a></span></li>
                    
215						<li><span><?php echo $lang_admin_index['Accelerator'] ?>: <?php echo $php_accelerator ?></span></li>
                    
226						<li><span><?php echo $lang_admin_index['Rows'] ?>: <?php echo forum_number_format($total_records) ?></span></li>
                    
227						<li><span><?php echo $lang_admin_index['Size'] ?>: <?php echo $total_size ?></span></li>
                    
228<?php endif; ?>
                    
                
sso.class.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 234 lines
                    
1<?php
                    
2
                    
11 * overwrite its method, then modify the corresponding calling code in 
                    
12 * main/inc/local.inc.php
                    
13 * @package chamilo.auth.sso
                    
22    public $deauth_uri; //    '/?q=logout',
                    
23    public $referer; // http://my.chamilo.com/main/auth/profile.php
                    
24
                    
46        header('Location: '.$this->deauth_url);
                    
47        exit;
                    
48    }
                    
60        header('Location: '.$this->master_url.$params);
                    
61        exit;
                    
62    }
                    
70        }                                            
                    
71        exit;
                    
72    }
                    
                
function_forumlist.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 386 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: function_forumlist.php 31131 2012-07-18 09:44:21Z liulanbo $
                    
8 */
                    
10if(!defined('IN_DISCUZ')) {
                    
11	exit('Access Denied');
                    
12}
                    
39		$forum['icon'] = get_forumimg($forum['icon']);
                    
40		$forum['icon'] = '<a href="forum.php?mod=forumdisplay&fid='.$forum['fid'].'"><img src="'.$forum['icon'].'" align="left" alt="" /></a>';
                    
41	}
                    
60		if($lastpost['author']) {
                    
61			$lastpost['author'] = '<a href="home.php?mod=space&username='.rawurlencode($lastpost['author']).'">'.$lastpost['author'].'</a>';
                    
62		}
                    
136				if($fid != $_G['forum']['fid']) {
                    
137					$visitedforums .= '<li><a href="forum.php?mod=forumdisplay&fid='.$fid.'">'.$_G['cache']['forums'][$fid]['name'].'</a></li>';
                    
138					if(++$count >= $_G['setting']['visitedforums']) {
                    
                
ApiGenerator.php https://gitlab.com/digitalpoetry/exceptionally-timed | PHP | 519 lines
                    
1<?php
                    
2/**
                    
135			CLI::error('Unknown error creating Controller.');
                    
136			exit(1);
                    
137		}
                    
142			CLI::error('Unknown error creating Language File.');
                    
143			exit(1);
                    
144		}
                    
151				CLI::error('Unknown error creating Blueprint file.');
                    
152				exit(1);
                    
153			}
                    
159			CLI::error('Unknown error adding Routes.');
                    
160			exit(1);
                    
161		}
                    
197	{
                    
198		$model_name = ucfirst($name) .'_model.php';
                    
199
                    
                
curl_security_helper.php https://github.com/mackensen/moodle.git | PHP | 294 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
28
                    
29defined('MOODLE_INTERNAL') || exit();
                    
30
                    
37 *
                    
38 * This class is currently used by the 'curl' wrapper class in lib/filelib.php.
                    
39 * Depends on:
                    
                
mysqli-stmt.param-count.html https://bitbucket.org/thncr/manuals.git | HTML | 110 lines
                    
11 <div class="up"><a href="class.mysqli-stmt.html">MySQLi_STMT</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="mysqli-stmt.param-count" class="refentry">
                    
16  <h1 class="refname">mysqli_stmt_param_count</h1>
                    
17  <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">mysqli_stmt::$param_count</span> -- <span class="refname">mysqli_stmt_param_count</span> &mdash; <span class="dc-title">Returns the number of parameter for the given statement</span></p>
                    
18
                    
69<div class="phpcode"><code><span style="color: #000000">
                    
70<span style="color: #0000BB">&lt;?php<br />$mysqli&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">mysqli</span><span style="color: #007700">(</span><span style="color: #DD0000">"localhost"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"my_user"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"my_password"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"world"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/*&nbsp;check&nbsp;connection&nbsp;*/<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">mysqli_connect_errno</span><span style="color: #007700">())&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Connect&nbsp;failed:&nbsp;%s\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">mysqli_connect_error</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;exit();<br />}<br /><br />if&nbsp;(</span><span style="color: #0000BB">$stmt&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$mysqli</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;Name&nbsp;FROM&nbsp;Country&nbsp;WHERE&nbsp;Name=?&nbsp;OR&nbsp;Code=?"</span><span style="color: #007700">))&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$marker&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">param_count</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Statement&nbsp;has&nbsp;%d&nbsp;markers.\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$marker</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*&nbsp;close&nbsp;statement&nbsp;*/<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">close</span><span style="color: #007700">();<br />}<br /><br /></span><span style="color: #FF8000">/*&nbsp;close&nbsp;connection&nbsp;*/<br /></span><span style="color: #0000BB">$mysqli</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">close</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span>
                    
71</span>
                    
79<div class="phpcode"><code><span style="color: #000000">
                    
80<span style="color: #0000BB">&lt;?php<br />$link&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysqli_connect</span><span style="color: #007700">(</span><span style="color: #DD0000">"localhost"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"my_user"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"my_password"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"world"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/*&nbsp;check&nbsp;connection&nbsp;*/<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">mysqli_connect_errno</span><span style="color: #007700">())&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Connect&nbsp;failed:&nbsp;%s\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">mysqli_connect_error</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;exit();<br />}<br /><br />if&nbsp;(</span><span style="color: #0000BB">$stmt&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysqli_prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$link</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"SELECT&nbsp;Name&nbsp;FROM&nbsp;Country&nbsp;WHERE&nbsp;Name=?&nbsp;OR&nbsp;Code=?"</span><span style="color: #007700">))&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$marker&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysqli_stmt_param_count</span><span style="color: #007700">(</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Statement&nbsp;has&nbsp;%d&nbsp;markers.\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$marker</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*&nbsp;close&nbsp;statement&nbsp;*/<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mysqli_stmt_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #FF8000">/*&nbsp;close&nbsp;connection&nbsp;*/<br /></span><span style="color: #0000BB">mysqli_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$link</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
                    
81</span>
                    
108 <div class="up"><a href="class.mysqli-stmt.html">MySQLi_STMT</a></div>
                    
109 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
110</div></body></html>
                    
                
wp-cache-phase1.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 264 lines
                    
1<?php
                    
2// Pre-2.6 compatibility
                    
5
                    
6if( !include( WP_CONTENT_DIR . '/wp-cache-config.php' ) )
                    
7	return true;
                    
10
                    
11include( WPCACHEHOME . 'wp-cache-base.php');
                    
12
                    
26
                    
27require_once( WPCACHEHOME . 'wp-cache-phase2.php');
                    
28
                    
28
                    
29$plugins = glob( $wp_cache_plugins_dir . '/*.php' );
                    
30if( is_array( $plugins ) ) {
                    
48function gzip_accepted(){
                    
49	if( ini_get( 'zlib.output_compression' ) ) // don't compress WP-Cache data files when PHP is already doing it
                    
50		return false;
                    
                
db_operations.php https://gitlab.com/luyxtran264/myproject | PHP | 315 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
11 *
                    
12 * @package PhpMyAdmin
                    
13 */
                    
18 */
                    
19require_once 'libraries/common.inc.php';
                    
20require_once 'libraries/mysql_charsets.inc.php';
                    
20require_once 'libraries/mysql_charsets.inc.php';
                    
21require_once 'libraries/display_create_table.lib.php';
                    
22
                    
25 */
                    
26require_once 'libraries/check_user_privileges.lib.php';
                    
27require_once 'libraries/operations.lib.php';
                    
71
                    
72        include_once "libraries/plugin_interface.lib.php";
                    
73        // remove all foreign key constraints, otherwise we can get errors
                    
                
User_agent.php https://github.com/usagi-project/mynets1.git | PHP | 500 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
                
api_alipay.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 296 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: api_alipay.php 30091 2012-05-10 03:26:33Z zhengqingpeng $
                    
8 */
                    
13if(!defined('IN_DISCUZ')) {
                    
14	exit('Access Denied');
                    
15}
                    
36		'partner' 		=> DISCUZ_PARTNER,
                    
37		'notify_url' 		=> $_G['siteurl'].'api/trade/notify_credit.php',
                    
38		'return_url' 		=> $_G['siteurl'].'api/trade/notify_credit.php',
                    
68		'partner' 		=> DISCUZ_PARTNER,
                    
69		'notify_url' 		=> $_G['siteurl'].'api/trade/notify_invite.php',
                    
70		'return_url' 		=> $_G['siteurl'].'api/trade/notify_invite.php',
                    
96		'partner' 		=> DISCUZ_PARTNER,
                    
97		'notify_url' 		=> $_G['siteurl'].'api/trade/notify_trade.php',
                    
98		'return_url' 		=> $_G['siteurl'].'api/trade/notify_trade.php',
                    
                
db_helper.php https://github.com/mrbmc/erector.git | PHP | 338 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * @package mysql_php_migrations
                    
6 * @subpackage Helpers
                    
6 * @subpackage Helpers
                    
7 * @license    http://www.opensource.org/licenses/bsd-license.php  The New BSD License
                    
8 * @link       http://code.google.com/p/mysql-php-migrations/
                    
13 *
                    
14 * @package mysql_php_migrations
                    
15 * @subpackage Helpers
                    
132            echo "\n\nError: ", $e->getMessage(), "\n\n";
                    
133            exit;
                    
134        }
                    
177            echo "\n\nError: ", $e->getMessage(), "\n\n";
                    
178            exit;
                    
179        }
                    
                
categories.php https://github.com/Noxwizard/customisation-db.git | PHP | 357 lines
                    
180			'CATEGORY' 						=> $category_id,
                    
181			'CATEGORY_NAME'					=> (isset(phpbb::$user->lang[$category_object->category_name])) ? phpbb::$user->lang[$category_object->category_name] : $category_object->category_name,
                    
182			'CATEGORY_NAME_CLEAN'			=> $category_object->category_name_clean,
                    
183			'CATEGORY_VISIBLE' 				=> $category_object->category_visible,
                    
184			'SECTION_NAME'					=> ($action == 'add') ? phpbb::$user->lang['CREATE_CATEGORY'] : phpbb::$user->lang['EDIT_CATEGORY'] . ' - ' . ((isset(phpbb::$user->lang[$old_category_name])) ? phpbb::$user->lang[$old_category_name] : $old_category_name),
                    
185
                    
272			'CATEGORY_NAME'					=> (isset(phpbb::$user->lang[$category_object->category_name])) ? phpbb::$user->lang[$category_object->category_name] : $category_object->category_name,
                    
273			'SECTION_NAME'					=> phpbb::$user->lang['DELETE_CATEGORY'] . ' - ' . ((isset(phpbb::$user->lang[$category_object->category_name])) ? phpbb::$user->lang[$category_object->category_name] : $category_object->category_name),
                    
274			'S_HAS_SUBCATS'					=> ($category_object->right_id - $category_object->left_id > 1) ? true : false,
                    
302			titania::generate_breadcrumbs(array(
                    
303				((isset(phpbb::$user->lang[$categories_ary[$category_id]['category_name']])) ? phpbb::$user->lang[$categories_ary[$category_id]['category_name']] : $categories_ary[$category_id]['category_name'])	=> titania_url::build_url('manage/categories', array('c' => $category_id)),
                    
304			));
                    
346{
                    
347	$message = (isset(phpbb::$user->lang[$message])) ? phpbb::$user->lang[$message] : $message;
                    
348
                    
                
fad1d5e3b8651566439afdcfbb7dce101e72bd08.file.view-payment_detail.tpl.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 193 lines
                    
51			<!--<li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
                    
52index.php?file=m-payment_detail&type=available"  <?php if ($_GET['type']=='available'){?>class="active"<?php }?>>History of Your Transfer</a></li>
                    
53			  <li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
                    
53			  <li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
                    
54index.php?file=m-payment_detail&type=refund"  <?php if ($_GET['type']=='refund'){?>class="last active"<?php }else{ ?>class="last"<?php }?>>Your Refund</a></li>-->
                    
55			     <li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
                    
55			     <li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
                    
56index.php?file=m-money_detail&pagetype=money&type=available"  <?php if ($_GET['pagetype']=='money'){?>class="active"<?php }?>><?php echo @LBL_AS_DRIVER;?>
                    
57</a></li>
                    
58				 <li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
                    
59index.php?file=m-payment_detail&pagetype=payment&type=available"  <?php if ($_GET['pagetype']=='payment'){?>class="active"<?php }?>><?php echo @LBL_AS_BOOKER;?>
                    
60</a></li>
                    
64</option>
                    
65			   <option value="refund" <?php if ($_GET['type']=='refund'){?>selected<?php }?>><?php echo @LBL_REFUNDS;?>
                    
66</option>
                    
                
MPSUM_Admin_Themes.php https://gitlab.com/memuller.web/wp_site | PHP | 280 lines
                    
1<?php
                    
2/**
                    
113		wp_redirect( esc_url_raw( add_query_arg( $query_args, MPSUM_Admin::get_url() ) ) );
                    
114		exit;
                    
115	}
                    
206			?>
                    
207			<div class="updated"><p><strong><?php echo esc_html( $message ); ?></strong></p></div>
                    
208			<?php
                    
212		?>
                    
213        <form action="<?php echo esc_url( add_query_arg( array() ) ); ?>" method="post">
                    
214	    <?php
                    
220		?>
                    
221        <h3><?php esc_html_e( 'Theme Update Options', 'stops-core-theme-and-plugin-updates' ); ?></h3>
                    
222        <?php
                    
233        </form>
                    
234    <?php
                    
235	} //end tab_output_plugins
                    
                
function.html_select_date.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 119 lines
                    
1<?php //0046a
                    
2if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.');exit(199);
                    
3?>
                    
42VmfUqAxo14JDPruMU/Zkn6z/nqdo/q/QxKDJgMQ5+ts83xs+QVUkuCse5tMXrNrINWcjqGfrIE8d
                    
43mRYVdMIuCZDFwOWdp3LrjCoWeTc7NS0bNwGli4CA1jf5PHPniyWYyMcDH+r5CyOpXPFxhn3ypv+m
                    
44IF4qvBFKNJZPAfHboaNQLG5FT6KlBvWb2ONGbRURURURs5aS4n7Uj2BY9bXcMF1+ZDINsxpWf9Sx
                    
                
main2.php https://github.com/MyITCRM/myitcrm1.git | PHP | 373 lines
                    
1<?php
                    
2require('include.php');
                    
2require('include.php');
                    
3if(!xml2php("schedule")) {
                    
4	$smarty->assign('error_msg',"Error in language file");
                    
13		force_page('core', 'error&error_msg=MySQL Error: '.$db->ErrorMsg().'&menu=1&type=database');
                    
14		exit;	
                    
15	} else {
                    
50	force_page('core', 'error&error_msg=MySQL Error: '.$db->ErrorMsg().'&menu=1&type=database');
                    
51	exit;
                    
52}
                    
57	force_page('core', 'error&error_msg=You must first set a start and stop times in the control center');
                    
58	exit;
                    
59}
                    
85		force_page('core', 'error&error_msg=MySQL Error: '.$db->ErrorMsg().'&menu=1&type=database');
                    
86			exit;
                    
87	}
                    
                
survey_invite.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 253 lines
                    
1<?php
                    
2/* For licensing terms, see /license.txt */
                    
8 * @author Julio Montoya Chamilo: cleanup, refactoring, security improvements
                    
9 * @version $Id: survey_invite.php 10680 2007-01-11 21:26:23Z pcool $
                    
10 *
                    
19// Including the global initialization file
                    
20require_once '../inc/global.inc.php';
                    
21
                    
22// Including additional libraries
                    
23require_once 'survey.lib.php';
                    
24
                    
30    Display :: display_footer();
                    
31    exit;
                    
32}
                    
49    Display :: display_footer();
                    
50    exit;
                    
51}
                    
                
Cache.php https://github.com/abirmmu/codeigniter-cache.git | PHP | 431 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
301			{
                    
302				// create non existing dirs, asumes PHP5
                    
303				if ( ! @mkdir($test_path, DIR_WRITE_MODE, TRUE)) return FALSE;
                    
429
                    
430/* End of file Cache.php */
                    
431/* Location: ./application/libraries/Cache.php */
                    
                
Encrypt.php https://bitbucket.org/kurniawanchan83/codeigniter.git | PHP | 507 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.2.4 or newer
                    
6 *
                    
26 */
                    
27defined('BASEPATH') OR exit('No direct script access allowed');
                    
28
                    
505
                    
506/* End of file Encrypt.php */
                    
507/* Location: ./system/libraries/Encrypt.php */
                    
                
addons_modules.php https://bitbucket.org/mbaily/tremain.git | PHP | 468 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
186			// Send version to update class and let it do any required work
                    
187			if ($this->input->get('check_updates') && $status == 'installed' && file_exists($this->installed_modules[$module]['path'].'upd.'.$module.'.php'))
                    
188			{
                    
188			{
                    
189				require $this->installed_modules[$module]['path'].'upd.'.$module.'.php';
                    
190
                    
324		// Send version to update class and let it do any required work
                    
325		if (file_exists($installed[$module]['path'].'upd.'.$module.'.php'))
                    
326		{
                    
326		{
                    
327			require $installed[$module]['path'].'upd.'.$module.'.php';
                    
328
                    
466
                    
467/* End of file addons_modules.php */
                    
468/* Location: ./system/expressionengine/controllers/cp/addons_modules.php */
                    
                
k-Means_clustering.php https://github.com/srahn/kvwmap.git | PHP | 233 lines
                    
1<?php
                    
2###################################################################
                    
129
                    
130    // initialize exit condition
                    
131    $classMappingChanged = false;
                    
184      } else {
                    
185        // reset exit condition
                    
186        $classMappingChanged = false;
                    
                
config.php https://github.com/hanchang/ModelMaker.git | PHP | 329 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
21|
                    
22| Typically this will be your index.php file, unless you've renamed it to
                    
23| something else. If you are using mod_rewrite to remove the page set this
                    
143| invoke your controllers and its functions:
                    
144| example.com/index.php?c=controller&m=function
                    
145|
                    
166|	0 = Disables logging, Error logging TURNED OFF
                    
167|	1 = Error Messages (including PHP errors)
                    
168|	2 = Debug Messages
                    
193|
                    
194| Each item that is logged has an associated date. You can use PHP date
                    
195| codes to set your own date formatting
                    
302|--------------------------------------------------------------------------
                    
303| Rewrite PHP Short Tags
                    
304|--------------------------------------------------------------------------
                    
                
link-manager.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 292 lines
                    
85<?php screen_icon(); ?>
                    
86<h2><?php echo esc_html( $title ); ?> <a href="link-add.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a> <?php
                    
87if ( !empty($_GET['s']) )
                    
195		$edit_link = get_edit_bookmark_link();
                    
196		?><tr id="link-<?php echo $link->link_id; ?>" valign="middle" <?php echo $style; ?>><?php
                    
197		foreach($link_columns as $column_name=>$column_display_name) {
                    
245				case 'rel':
                    
246					?><td <?php echo $attributes ?>><?php echo empty($link->link_rel) ? '<br />' : $link->link_rel; ?></td><?php
                    
247					break;
                    
248				case 'visible':
                    
249					?><td <?php echo $attributes ?>><?php echo $visible; ?></td><?php
                    
250					break;
                    
251				case 'rating':
                    
252 					?><td <?php echo $attributes ?>><?php echo $rating; ?></td><?php
                    
253					break;
                    
                
admin.php https://github.com/shamoons/pyrocms.git | PHP | 464 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
463
                    
464/* End of file admin.php */
                    
                
date_helper.php https://gitlab.com/ricoru21/py_incidencia | PHP | 611 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
68 *
                    
69 * This function is identical to PHPs date() function,
                    
70 * except that it allows date codes to be formatted using
                    
609
                    
610/* End of file date_helper.php */
                    
611/* Location: ./system/helpers/date_helper.php */
                    
                
module.php https://gitlab.com/ebrjose/comcebu | PHP | 318 lines
                    
13if ( ! defined( 'ABSPATH' ) ) {
                    
14	exit; // Exit if accessed directly
                    
15}
                    
106		if ( ! empty( $_POST['e_import_file'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
                    
107			$file_url = $_POST['e_import_file']; // phpcs:ignore WordPress.Security.NonceVerification.Missing
                    
108			if ( ! filter_var( $file_url, FILTER_VALIDATE_URL ) || 0 !== strpos( $file_url, 'http' ) ) {
                    
266			<div class="tab-import-export-kit__wrapper">
                    
267			<?php foreach ( $content_data as $data ) { ?>
                    
268				<div class="tab-import-export-kit__container">
                    
269					<div class="tab-import-export-kit__box">
                    
270						<h2><?php Utils::print_unescaped_internal_string( $data['title'] ); ?></h2>
                    
271						<a href="<?php Utils::print_unescaped_internal_string( $data['button']['url'] ); ?>" class="elementor-button elementor-button-success">
                    
275					<p><?php Utils::print_unescaped_internal_string( $data['description'] ); ?></p>
                    
276					<a href="<?php Utils::print_unescaped_internal_string( $data['link']['url'] ); ?>" target="_blank"><?php Utils::print_unescaped_internal_string( $data['link']['text'] ); ?></a>
                    
277				</div>
                    
                
CreationMinerais.php https://github.com/Canop/braldahim.git | PHP | 340 lines
                    
1<?php
                    
2
                    
36
                    
37		Bral_Util_Log::batchs()->trace("Bral_Batchs_CreationMinerais - calculBatchImpl - exit -");
                    
38		return $retour;
                    
81		}
                    
82		Bral_Util_Log::batchs()->trace("Bral_Batchs_CreationMinerais - suppressionSurEau - exit -");
                    
83		return $retour;
                    
126		}
                    
127		Bral_Util_Log::batchs()->trace("Bral_Batchs_CreationMinerais - suppressionSurLieux - exit -");
                    
128		return $retour;
                    
171		}
                    
172		Bral_Util_Log::batchs()->trace("Bral_Batchs_CreationMinerais - suppressionSurPalissades - exit -");
                    
173		return $retour;
                    
254
                    
255		Bral_Util_Log::batchs()->trace("Bral_Batchs_CreationMinerais - calculCreation - exit -");
                    
256
                    
                
Curl.php https://gitlab.com/yousafsyed/easternglamor | PHP | 453 lines
                    
1<?php
                    
2/**
                    
156     *
                    
157     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
158     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
175     *
                    
176     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
177     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
308     *
                    
309     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
310     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
345     *
                    
346     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
347     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
                
subscription.php https://github.com/kainbacher/Notethrower.git | PHP | 273 lines
                    
7include_once('../Includes/TemplateUtil.php');
                    
8include_once('../Includes/DB/Subscription.php');
                    
9include_once('../Includes/Mailer/MailUtil.php');
                    
30	*/
                    
31    exit;
                    
32}
                    
75            header('Location: ' . $GLOBALS['BASE_URL'] . 'invite/'.$subscription->rand_str.'/success');
                    
76            //header('Location: subscription.php?action=success&code='.$subscription->rand_str);
                    
77            exit;
                    
86        displayStepOne($referrer, $username, $error);
                    
87        exit;
                    
88    } elseif(strlen($username) > 50){
                    
226        '${Optional/error}'                        => $error,
                    
227        '${phpSelf}'                               => basename($_SERVER['PHP_SELF'], '.php'),
                    
228        '${userName}'                              => get_param('username'),
                    
                
rpadlpar_core.c https://bitbucket.org/danhamilt1/linux.git | C | 472 lines
                    
71	while ((np = of_find_node_by_name(np, "pci"))) {
                    
72		rc = rpaphp_get_drc_props(np, NULL, &name, &type, NULL);
                    
73		if (rc == 0)
                    
84
                    
85	dn = find_php_slot_pci_node(drc_name, "SLOT");
                    
86	if (dn) {
                    
202	/* Add hotplug slot */
                    
203	if (rpaphp_add_slot(dn)) {
                    
204		printk(KERN_ERR "%s: unable to add hotplug slot %s\n",
                    
221	slot = find_php_slot(dn);
                    
222	if (slot && rpaphp_deregister_slot(slot)) {
                    
223		printk(KERN_ERR "%s: unable to remove hotplug slot %s\n",
                    
470module_init(rpadlpar_io_init);
                    
471module_exit(rpadlpar_io_exit);
                    
472MODULE_LICENSE("GPL");
                    
                
user_lang.php https://github.com/JamieLomas/pyrocms.git | PHP | 216 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
215
                    
216/* End of file user_lang.php */
                    
                
img2thumb.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 393 lines
                    
1<?php
                    
2/**
                    
3* class Image2Thumbnail
                    
4* Thumbnail creation with PHP4 and GDLib (recommended, but not mandatory: 2.0.1 !)
                    
5*
                    
119				// unfortunately this function does not work on windows
                    
120				// via the precompiled php installation :(
                    
121				// it should work on all other systems however.
                    
126					$app->enqueueMessage('This server does NOT suppport auto generating Thumbnails by gif');
                    
127					exit;
                    
128				}
                    
135					$app->enqueueMessage('This server does NOT suppport auto generating Thumbnails by jpg');
                    
136					exit;
                    
137				}
                    
144					$app->enqueueMessage('This server does NOT suppport auto generating Thumbnails by png');
                    
145					exit;
                    
146				}
                    
                
users.php https://github.com/holsinger/openfloor.git | PHP | 402 lines
                    
1<?php
                    
2/**
                    
9/** WordPress Administration Bootstrap */
                    
10require_once('admin.php');
                    
11
                    
12/** WordPress Registration API */
                    
13require_once( ABSPATH . WPINC . '/registration.php');
                    
14
                    
18$title = __('Users');
                    
19$parent_file = 'users.php';
                    
20
                    
310<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
                    
311<label class="hidden" for="new_role"><?php _e('Change role to&hellip;') ?></label><select name="new_role" id="new_role"><option value=''><?php _e('Change role to&hellip;') ?></option><?php wp_dropdown_roles(); ?></select>
                    
312<input type="submit" value="<?php _e('Change'); ?>" name="changeit" class="button-secondary" />
                    
333	<?php if ( $wp_user_search->is_search() ) : ?>
                    
334		<p><a href="users.php"><?php _e('&larr; Back to All Users'); ?></a></p>
                    
335	<?php endif; ?>
                    
                
Client.php https://bitbucket.org/cryofrost/portal.git | PHP | 489 lines
                    
1<?php
                    
2
                    
16use Symfony\Component\DomCrawler\Form;
                    
17use Symfony\Component\Process\PhpProcess;
                    
18use Symfony\Component\BrowserKit\Request;
                    
226
                    
227        return $this->request($form->getMethod(), $form->getUri(), $form->getPhpValues(), $form->getPhpFiles());
                    
228    }
                    
236     * @param array   $files         The files
                    
237     * @param array   $server        The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does)
                    
238     * @param string  $content       The raw body data
                    
252        }
                    
253        $server['HTTP_HOST'] = parse_url($uri, PHP_URL_HOST);
                    
254        $server['HTTPS'] = 'https' == parse_url($uri, PHP_URL_SCHEME);
                    
289     *
                    
290     * @throws \RuntimeException When processing returns exit code
                    
291     */
                    
                
userpay.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 437 lines
                    
14S::gp(array('action'));
                    
15require_once(R_P . 'require/showimg.php');
                    
16list($faceurl) = showfacedesign($winddb['icon'], 1, 's');
                    
118			'currency_code'	=> 'CNY',
                    
119			'bn'			=> 'phpwind',
                    
120			'charset'		=> $db_charset
                    
141		strlen($ol_99bill) == 11 && $ol_99bill .= '01';
                    
142		//require_once(R_P.'require/header.php');
                    
143		!$db_rmbrate && $db_rmbrate=10;
                    
145			'inputCharset'		=> ($db_charset == 'gbk' ? 2 : 1),
                    
146			'pageUrl'			=> "{$db_bbsurl}/pay99bill.php",
                    
147			'version'			=> 'v2.0',
                    
182//		$url  = "https://www.tenpay.com/cgi-bin/v1.0/pay_gate.cgi?";
                    
183		$url  = "http://pay.phpwind.net/pay/create_payurl.php?";
                    
184		$para = array(
                    
                
attachments.php https://github.com/naderman/phpbb-orchestra.git | PHP | 174 lines
                    
1<?php
                    
2/**
                    
7* @version $Id$
                    
8* @copyright (c) 2005 phpBB Group
                    
9* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
15*/
                    
16if (!defined('IN_PHPBB'))
                    
17{
                    
17{
                    
18	exit;
                    
19}
                    
40	'ACP_EXTENSION_GROUPS_EXPLAIN'		=> 'Here you can add, delete, modify or disable your extension groups. Further options include the assignment of a special category to them, changing the download mechanism and defining an upload icon which will be displayed in front of the attachment which belongs to the group.',
                    
41	'ACP_MANAGE_EXTENSIONS_EXPLAIN'		=> 'Here you can manage your allowed extensions. To activate your extensions, please refer to the extension groups management panel. We strongly recommend not to allow scripting extensions (such as <code>php</code>, <code>php3</code>, <code>php4</code>, <code>phtml</code>, <code>pl</code>, <code>cgi</code>, <code>py</code>, <code>rb</code>, <code>asp</code>, <code>aspx</code>, and so forth…).',
                    
42	'ACP_ORPHAN_ATTACHMENTS_EXPLAIN'	=> 'Here you are able to see orphaned files. This happens mostly if users are attaching files but not submitting the post. You are able to delete the files or attach them to existing posts. Attaching to posts requires a valid post ID, you have to determine this ID by yourself. This will assign the already uploaded attachment to the post you entered.',
                    
                
tax_watch_export_pdf(3).php https://gitlab.com/vince.omega/PDF-PHP-Scripts | PHP | 534 lines
                    
1<?php
                    
2ini_set('max_execution_time', 0); //300 seconds = 5 minutes
                    
2ini_set('max_execution_time', 0); //300 seconds = 5 minutes
                    
3require_once('fpdf/fpdf/fpdf.php');
                    
4require_once('../../header.inc.php');
                    
7@author: Larry Stanfield
                    
8PHP PDF generation script written by Larry Stanfield
                    
9Contact @ vince.omega@gmail.com
                    
9Contact @ vince.omega@gmail.com
                    
10Powered by the open source pdf php class fpdf
                    
11www.fpdf.org
                    
50//echo    $_GET['limit_by_branch'];
                    
51//exit;
                    
52
                    
186
                    
187$filename = 'c:/php_temp/download_' . preg_replace('/[^a-z0-9]/i', '_', $DB->cleanString($_GET['custcodes'])) . '.pdf';
                    
188
                    
                
base-admin.class.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 537 lines
                    
1<?php
                    
2/**
                    
7
                    
8if( !defined( 'ABSPATH') ) exit();
                    
9
                    
252	 * 
                    
253	 * validate admin permissions, if no pemissions - exit
                    
254	 */
                    
277			if(!empty(self::$master_view) && !isset(self::$tempVars["is_masterView"]) ){
                    
278				$masterViewFilepath = self::$path_views.self::$master_view.".php";
                    
279				RevSliderFunctions::validateFilepath($masterViewFilepath,"Master View");
                    
285				
                    
286				switch($view){ //switch URLs to corresponding php files
                    
287					case 'slide':
                    
300				
                    
301				$viewFilepath = self::$path_views.$view.".php";
                    
302				
                    
                
Worker.php https://github.com/rrehbeindoi/net_gearman.git | PHP | 499 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5.1.0+
                    
6 *
                    
8 * available through the world-wide-web at the following URI:
                    
9 * http://www.opensource.org/licenses/bsd-license.php. If you did not receive
                    
10 * a copy of the New BSD License and are unable to obtain it through the web,
                    
10 * a copy of the New BSD License and are unable to obtain it through the web,
                    
11 * please send a note to license@php.net so we can mail you a copy immediately.
                    
12 *
                    
16 * @copyright 2007-2008 Digg.com, Inc.
                    
17 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
                    
18 * @version   CVS: $Id$
                    
18 * @version   CVS: $Id$
                    
19 * @link      http://pear.php.net/package/Net_Gearman
                    
20 * @link      http://www.danga.com/gearman/
                    
                
sql.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 238 lines
                    
1<?php
                    
2if (!$error && $_POST["export"]) {
                    
5	$adminer->dumpData("", "table", $_POST["query"]);
                    
6	exit;
                    
7}
                    
186<form action="" method="post" enctype="multipart/form-data" id="form">
                    
187<?php
                    
188$execute = "<input type='submit' value='" . lang('Execute') . "' title='Ctrl+Enter'>";
                    
                
 

Source

Language