PageRenderTime 4419ms queryFilters 0ms Sphinxql 3033ms GetByIds 581ms meta 0ms repositoryFilters 139ms languageFilters 0ms sourceFilters 565ms

364,113 results for 'php empty repo:jhunsinfotech/blue-blues' (4419 ms)

Source

Language

Repository

User.php https://github.com/polokk/tudu-web-1.git | PHP | 693 lines
1<?php
2/**
62    {
63        $isImport = !empty($params['import']) ? true : false;
64
65        // 组织ID必须有
66        if (empty($params['orgid'])) {
67            require_once 'Model/User/Exception.php';
276        // 添加后台操作日志
277        if (!empty($params['operator']) && !empty($params['clientip'])) {
278            $params['local'] = empty($params['local']) ? null : $params['local'];
562        // 添加后台操作日志
563        if (!empty($params['operator']) && !empty($params['clientip'])) {
564            $params['local'] = empty($params['local']) ? null : $params['local'];
624            // 添加操作日志
625            if (!empty($params['operator']) && !empty($params['clientip'])) {
626                $params['local'] = empty($params['local']) ? null : $params['local'];
role-scoper_main.php https://github.com/adityag2/suneha.git | PHP | 1,105 lines
376				$hardway_uris = array(
377				'index.php',		'revision.php',			'admin.php?page=rvy-revisions',
378				'post.php', 		'post-new.php', 		'edit.php', 
378				'post.php', 		'post-new.php', 		'edit.php', 
379				'upload.php', 		'edit-comments.php', 	'edit-tags.php',
380				'profile.php',		'admin-ajax.php',
380				'profile.php',		'admin-ajax.php',
381				'link-manager.php', 'link-add.php',			'link.php',		 
382				'edit-link-category.php', 	'edit-link-categories.php',
538				if ( $src = $this->data_sources->get( $tx->source ) ) {
539					if ( ! empty($src->cols->id) && ! empty($src->cols->parent) ) {
540						require_once( dirname(__FILE__).'/admin/admin_lib-bulk-parent_rs.php');
548
549		if ( $results || empty( $_POST ) ) { // todo: why do we get an empty array for unfiltered request for object terms early in POST processing? (on submission of a new post by a contributor)
550			if ( $filtering )
upgrade.php https://github.com/Arantor/Elkarte.git | PHP | 4,467 lines
82// Clean the upgrade path if this is from the client.
83if (!empty($_SERVER['argv']) && php_sapi_name() == 'cli' && empty($_SERVER['REMOTE_ADDR']))
84	for ($i = 1; $i < $_SERVER['argc']; $i++)
90// Are we from the client?
91if (php_sapi_name() == 'cli' && empty($_SERVER['REMOTE_ADDR']))
92{
607
608$upcontext['is_large_forum'] = (empty($modSettings['smfVersion']) || $modSettings['smfVersion'] <= '1.1 RC1') && !empty($modSettings['totalMessages']) && $modSettings['totalMessages'] > 75000;
609// Default title...
3830						<td width="100%">
3831							<label for="empty_error">Empty error log before upgrading</label>
3832						</td>
4349	// Language/Template files need an update?
4350	if ($upcontext['temp_progress'] == 0 && !$upcontext['is_test'] && (!empty($upcontext['languages']) || !empty($upcontext['themes'])))
4351	{
upgrade.php https://github.com/smf-portal/SMF2.1.git | PHP | 4,523 lines
75// Clean the upgrade path if this is from the client.
76if (!empty($_SERVER['argv']) && php_sapi_name() == 'cli' && empty($_SERVER['REMOTE_ADDR']))
77	for ($i = 1; $i < $_SERVER['argc']; $i++)
635
636$upcontext['is_large_forum'] = (empty($modSettings['smfVersion']) || $modSettings['smfVersion'] <= '1.1 RC1') && !empty($modSettings['totalMessages']) && $modSettings['totalMessages'] > 75000;
637// Default title...
3870						<td width="2%">
3871							<input type="checkbox" name="empty_error" id="empty_error" value="1" class="input_check" />
3872						</td>
3873						<td width="100%">
3874							<label for="empty_error">Empty error log before upgrading</label>
3875						</td>
4403	// Language/Template files need an update?
4404	if ($upcontext['temp_progress'] == 0 && !$upcontext['is_test'] && (!empty($upcontext['languages']) || !empty($upcontext['themes'])))
4405	{
install.php https://github.com/smf-portal/SMF2.1.git | PHP | 2,588 lines
156	if (!isset($_SERVER['PHP_SELF']))
157		$_SERVER['PHP_SELF'] = isset($GLOBALS['HTTP_SERVER_VARS']['PHP_SELF']) ? $GLOBALS['HTTP_SERVER_VARS']['PHP_SELF'] : 'install.php';
158
305
306		<div style="margin: 1ex; font-family: monospace; font-weight: bold;">', dirname($_SERVER['PHP_SELF']) != '/' ? dirname($_SERVER['PHP_SELF']) : '', '/Themes/default/languages</div>
307
907	// Now, to put what we've learned together... and add a path.
908	$incontext['detected_url'] = 'http' . (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ? 's' : '') . '://' . $host . substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'));
909
947		// UTF-8 requires a setting to override the language charset.
948		if ((!empty($databases[$db_type]['utf8_support']) && !empty($databases[$db_type]['utf8_required'])) || (empty($databases[$db_type]['utf8_required']) && !empty($databases[$db_type]['utf8_support']) && isset($_POST['utf8'])))
949		{
1112	// Make sure UTF will be used globally.
1113	if ((!empty($databases[$db_type]['utf8_support']) && !empty($databases[$db_type]['utf8_required'])) || (empty($databases[$db_type]['utf8_required']) && !empty($databases[$db_type]['utf8_support']) && isset($_POST['utf8'])))
1114		$smcFunc['db_insert']('replace',
ModuleInstaller.php https://github.com/guolong/ggxw.git | PHP | 2,397 lines
481					mkdir_recursive($disabled_path, true);
482					rename("$path/$target.php", "$disabled_path/$target.php");
483				} else if (!empty($from) && file_exists($path . '/'. basename($from))) {
1734			foreach($this->installdefs['beans'] as $bean){
1735				if(!empty($bean['module']) && !empty($bean['class']) && !empty($bean['path'])){
1736					$module = $bean['module'];
2216
2217				if(!empty($relationship['module_layoutdefs']) && file_exists($path . '/'. $this->id_name . '.php')){
2218					mkdir_recursive($path . '/'.DISABLED_PATH, true);
2218					mkdir_recursive($path . '/'.DISABLED_PATH, true);
2219					rename( $path . '/'. $this->id_name . '.php', $path . '/'.DISABLED_PATH.'/'. $this->id_name . '.php');
2220				}
2224				mkdir_recursive("custom/Extension/application/Ext/TableDictionary/".DISABLED_PATH, true);
2225				rename("custom/Extension/application/Ext/TableDictionary/$this->id_name.php", "custom/Extension/application/Ext/TableDictionary/".DISABLED_PATH."/$this->id_name.php");
2226			}
main.inc.php https://github.com/zeert/dolibarr.git | PHP | 1,703 lines
239// If install or upgrade process not done or not completely finished, we call the install page.
240if (! empty($conf->global->MAIN_NOT_INSTALLED) || ! empty($conf->global->MAIN_NOT_UPGRADED))
241{
330        // If in demo mode, we check we go to home page through the public/demo/index.php page
331        if (! empty($dolibarr_main_demo) && $_SERVER['PHP_SELF'] == DOL_URL_ROOT.'/index.php')  // We ask index page
332        {
1027                print 'var ckeditorFilebrowserBrowseUrl = \''.DOL_URL_ROOT.'/core/filemanagerdol/browser/default/browser.php?Connector='.DOL_URL_ROOT.'/core/filemanagerdol/connectors/php/connector.php\';'."\n";
1028                print 'var ckeditorFilebrowserImageBrowseUrl = \''.DOL_URL_ROOT.'/core/filemanagerdol/browser/default/browser.php?Type=Image&Connector='.DOL_URL_ROOT.'/core/filemanagerdol/connectors/php/connector.php\';'."\n";
1029                print '</script>'."\n";
1379        $langs->load("products");
1380        $searchform.=printSearchForm(DOL_URL_ROOT.'/product/liste.php', DOL_URL_ROOT.'/product/liste.php', img_object('','product').' '.$langs->trans("Products")."/".$langs->trans("Services"), 'products', 'sall');
1381    }
1382
1383    if (! empty($conf->adherent->enabled) && ! empty($conf->global->MAIN_SEARCHFORM_ADHERENT) && $user->rights->adherent->lire)
1384    {
FormHandler.php https://github.com/reshadf/Library.git | PHP | 4,009 lines
1<?php
2/**
9// make sure this file is not accessed directly
10if(strtolower(basename($_SERVER['PHP_SELF'])) == strtolower(basename(__FILE__)))
11{
30define('FH_TEXT',       'IsText',      true);	// like FH_STRING, but newline characters are allowed
31define('FH_NOT_EMPTY',  'notEmpty',    true);   // check if the value is not empty
32define('FH_NO_HTML',	'NoHTML',	   true);   // check if the value does not contain html
71// make some variables global when the version < 4.1.0
72if(intval( str_replace('.', '', phpversion()) ) < 410)
73{
87define('FH_INCLUDE_DIR', str_replace('\\', '/', dirname(__FILE__)).'/');
88require_once( FH_INCLUDE_DIR . 'fields/class.Field.php' );
89require_once( FH_INCLUDE_DIR . 'buttons/class.Button.php' );
89require_once( FH_INCLUDE_DIR . 'buttons/class.Button.php' );
90require_once( FH_INCLUDE_DIR . 'includes/config.inc.php' );
91require_once( FH_INCLUDE_DIR . 'includes/error.inc.php' );
usermeta-init.php https://bitbucket.org/acipriani/madeinapulia.com | PHP | 1,140 lines
1<?php
2// Add usermeta and post fileds groups to access.
140    add_thickbox();
141    require_once WPCF_INC_ABSPATH . '/fields.php';
142    require_once WPCF_EMBEDDED_INC_ABSPATH . '/fields.php';
213
214add_action( 'load-post.php', '__wpcf_usermeta_test', PHP_INT_MAX );
215add_action( 'load-post-new.php', '__wpcf_usermeta_test', PHP_INT_MAX );
230    }
231    if ( ( $here[0] == ('index.php' || 'wp-admin')) && ( $here[1] != 'index.php') ) {
232        if ( isset( $post_type )
443        $user_id = wpcf_usermeta_get_user();
444    } else { //If empty get post author, if no post, return empty
445        if ( !empty( $post_id ) ) {
613        $user_id = wpcf_usermeta_get_user();
614    } else { //If empty get post author, if no post, return empty
615        if ( !empty( $post_id ) ) {
file.php https://github.com/davodey/WordPress.git | PHP | 1,218 lines
287		else
288			$error_msg = __( 'File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.' );
289		return call_user_func($upload_error_handler, $file, $error_msg);
1075			(
1076				( !empty($credentials['password']) && !empty($credentials['username']) && !empty($credentials['hostname']) ) ||
1077				( 'ssh' == $credentials['connection_type'] && !empty($credentials['public_key']) && !empty($credentials['private_key']) )
1161<th scope="row"><label for="hostname"><?php _e('Hostname') ?></label></th>
1162<td><input name="hostname" type="text" id="hostname" value="<?php echo esc_attr($hostname); if ( !empty($port) ) echo ":$port"; ?>"<?php disabled( defined('FTP_HOST') ); ?> size="40" /></td>
1163</tr>
1182</div></th>
1183<td><br /><input name="public_key" type="text" id="public_key" value="<?php echo esc_attr($public_key) ?>"<?php disabled( defined('FTP_PUBKEY') ); ?> size="40" />
1184	<br /><input name="private_key" type="text" id="private_key" value="<?php echo esc_attr($private_key) ?>"<?php disabled( defined('FTP_PRIKEY') ); ?> size="40" />
1196	<label for="<?php echo esc_attr($name) ?>">
1197		<input type="radio" name="connection_type" id="<?php echo esc_attr($name) ?>" value="<?php echo esc_attr($name) ?>"<?php checked($name, $connection_type); echo $disabled; ?> />
1198		<?php echo $text ?>
install.php https://github.com/dekoza/openshift-smf-2.0.7.git | PHP | 2,590 lines
155	if (!isset($_SERVER['PHP_SELF']))
156		$_SERVER['PHP_SELF'] = isset($GLOBALS['HTTP_SERVER_VARS']['PHP_SELF']) ? $GLOBALS['HTTP_SERVER_VARS']['PHP_SELF'] : 'install.php';
157
303
304		<div style="margin: 1ex; font-family: monospace; font-weight: bold;">', dirname($_SERVER['PHP_SELF']) != '/' ? dirname($_SERVER['PHP_SELF']) : '', '/Themes/default/languages</div>
305
906	// Now, to put what we've learned together... and add a path.
907	$incontext['detected_url'] = 'http' . (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ? 's' : '') . '://' . $host . substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'));
908
1435
1436	if (!empty($db_character_set) && !empty($databases[$db_type]['utf8_support']))
1437		$smcFunc['db_query']('', '
2098
2099	if (!empty($incontext['continue']) || !empty($incontext['skip']))
2100	{
ManageServer.php https://github.com/dekoza/openshift-smf-2.0.7.git | PHP | 2,135 lines
189		$settings_not_writable = !is_writable($boarddir . '/Settings.php');
190		$settings_backup_fail = !@is_writable($boarddir . '/Settings_bak.php') || !@copy($boarddir . '/Settings.php', $boarddir . '/Settings_bak.php');
191
932	// Setting a new default?
933	if (!empty($_POST['set_default']) && !empty($_POST['def_language']))
934	{
1141	$settings_not_writable = !is_writable($boarddir . '/Settings.php');
1142	$settings_backup_fail = !@is_writable($boarddir . '/Settings_bak.php') || !@copy($boarddir . '/Settings.php', $boarddir . '/Settings_bak.php');
1143
1368	require($settings['default_theme_dir'] . '/languages/index.' . $context['lang_id'] . '.php');
1369	$context['lang_file_not_writable_message'] = is_writable($settings['default_theme_dir'] . '/languages/index.' . $context['lang_id'] . '.php') ? '' : sprintf($txt['lang_file_not_writable'], $settings['default_theme_dir'] . '/languages/index.' . $context['lang_id'] . '.php');
1370	// Setup the primary settings context.
1810				'value' => $config_var[2] == 'file' ? htmlspecialchars($$varname) : (isset($modSettings[$config_var[0]]) ? htmlspecialchars($modSettings[$config_var[0]]) : (in_array($config_var[3], array('int', 'float')) ? 0 : '')),
1811				'disabled' => !empty($context['settings_not_writable']) || !empty($config_var['disabled']),
1812				'invalid' => false,
StripeComponent.php https://github.com/hashmode/CakePHP-Stripe-Component-Full.git | PHP | 2,675 lines
1<?php 
2/**
4 * 
5 * PHP 5
6 * 
10 * @author		http://hashmode.com
11 * @license		MIT License (http://www.opensource.org/licenses/mit-license.php)
12 * @link		https://github.com/hashmode/CakePHP-Stripe-Component-Full
16 * ***** IMPORTANT ******
17 * Stripe PHP library is not included, it should be downloaded from Stripe's website
18 * @link	https://stripe.com/docs/libraries  
19 * 
20 * Stripe php documentation
21 * @link	https://stripe.com/docs/api/php
101			array(
102				'file' => 'stripe'.DS.'lib'.DS.'Stripe.php' 
103			)
setup.php https://github.com/lsuits/moodle.git | PHP | 1,017 lines
78
79} else if (!empty($CFG->behat_wwwroot) or !empty($CFG->behat_dataroot) or !empty($CFG->behat_prefix)) {
80    // The behat is configured on this server, we need to find out if this is the behat test
341        // do NOT localise - lang strings would not work here and we CAN NOT move it to later place
342        echo "Moodle 2.7 or later requires at least PHP 5.4.4 (currently using version $phpversion).\n";
343        echo "Some servers may have multiple PHP versions installed, are you using the correct executable?\n";
715if (isset($_SERVER['PHP_SELF'])) {
716    $phppos = strpos($_SERVER['PHP_SELF'], '.php');
717    if ($phppos !== false) {
717    if ($phppos !== false) {
718        $_SERVER['PHP_SELF'] = substr($_SERVER['PHP_SELF'], 0, $phppos+4);
719    }
871
872if (!empty($CFG->debugvalidators) and !empty($CFG->guestloginbutton)) {
873    if ($CFG->theme == 'standard') {    // Temporary measure to help with XHTML validation
setup.php https://github.com/gwamgerald/moodle-1.git | PHP | 1,019 lines
78
79} else if (!empty($CFG->behat_wwwroot) or !empty($CFG->behat_dataroot) or !empty($CFG->behat_prefix)) {
80    // The behat is configured on this server, we need to find out if this is the behat test
341        // do NOT localise - lang strings would not work here and we CAN NOT move it to later place
342        echo "Moodle 2.7 or later requires at least PHP 5.4.4 (currently using version $phpversion).\n";
343        echo "Some servers may have multiple PHP versions installed, are you using the correct executable?\n";
713if (isset($_SERVER['PHP_SELF'])) {
714    $phppos = strpos($_SERVER['PHP_SELF'], '.php');
715    if ($phppos !== false) {
715    if ($phppos !== false) {
716        $_SERVER['PHP_SELF'] = substr($_SERVER['PHP_SELF'], 0, $phppos+4);
717    }
873
874if (!empty($CFG->debugvalidators) and !empty($CFG->guestloginbutton)) {
875    if ($CFG->theme == 'standard') {    // Temporary measure to help with XHTML validation
modoutputfilter.class.php https://github.com/harunpehlivan/revolution.git | PHP | 682 lines
215                        case 'strtolower':
216                            /* See PHP's strtolower - http://www.php.net/manual/en/function.strtolower.php */
217                            $output = $usemb ? mb_strtolower($output,$encoding) : strtolower($output);
299                        case 'wordwrapcut':
300                            /* See PHP's wordwrap - http://www.php.net/manual/en/function.wordwrap.php */
301                            $wrapat= intval($m_val);
536                            }
537                            if (!empty($agoTS['hours']) && empty($agoTS['weeks']) && empty($agoTS['months']) && empty($agoTS['years'])) {
538                              $ago[] = $this->modx->lexicon(($agoTS['hours'] > 1 ? 'ago_hours' : 'ago_hour'),array('time' => $agoTS['hours']));
539                            }
540                            if (!empty($agoTS['minutes']) && empty($agoTS['days']) && empty($agoTS['weeks']) && empty($agoTS['months']) && empty($agoTS['years'])) {
541                                $ago[] = $this->modx->lexicon($agoTS['minutes'] == 1 ? 'ago_minute' : 'ago_minutes' ,array('time' => $agoTS['minutes']));
549                        case 'md5':
550                            /* See PHP's md5 - http://www.php.net/manual/en/function.md5.php */
551                            $output= md5($output);
file.php https://github.com/dedavidd/piratenpartij.nl.git | PHP | 1,218 lines
287		else
288			$error_msg = __( 'File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.' );
289		return call_user_func($upload_error_handler, $file, $error_msg);
1075			(
1076				( !empty($credentials['password']) && !empty($credentials['username']) && !empty($credentials['hostname']) ) ||
1077				( 'ssh' == $credentials['connection_type'] && !empty($credentials['public_key']) && !empty($credentials['private_key']) )
1161<th scope="row"><label for="hostname"><?php _e('Hostname') ?></label></th>
1162<td><input name="hostname" type="text" id="hostname" value="<?php echo esc_attr($hostname); if ( !empty($port) ) echo ":$port"; ?>"<?php disabled( defined('FTP_HOST') ); ?> size="40" /></td>
1163</tr>
1182</div></th>
1183<td><br /><input name="public_key" type="text" id="public_key" value="<?php echo esc_attr($public_key) ?>"<?php disabled( defined('FTP_PUBKEY') ); ?> size="40" />
1184	<br /><input name="private_key" type="text" id="private_key" value="<?php echo esc_attr($private_key) ?>"<?php disabled( defined('FTP_PRIKEY') ); ?> size="40" />
1196	<label for="<?php echo esc_attr($name) ?>">
1197		<input type="radio" name="connection_type" id="<?php echo esc_attr($name) ?>" value="<?php echo esc_attr($name) ?>"<?php checked($name, $connection_type); echo $disabled; ?> />
1198		<?php echo $text ?>
plugin.php https://github.com/dedavidd/piratenpartij.nl.git | PHP | 1,241 lines
1<?php
2
40
41define('NEWSLETTER_SUBSCRIPTION_POPUP_URL', NEWSLETTER_URL . '/do/subscription-popup.php');
42define('NEWSLETTER_SUBSCRIBE_URL', NEWSLETTER_URL . '/do/subscribe.php');
42define('NEWSLETTER_SUBSCRIBE_URL', NEWSLETTER_URL . '/do/subscribe.php');
43define('NEWSLETTER_SUBSCRIBE_POPUP_URL', NEWSLETTER_URL . '/do/subscribe-popup.php');
44define('NEWSLETTER_PROFILE_URL', NEWSLETTER_URL . '/do/profile.php');
44define('NEWSLETTER_PROFILE_URL', NEWSLETTER_URL . '/do/profile.php');
45define('NEWSLETTER_SAVE_URL', NEWSLETTER_URL . '/do/save.php');
46define('NEWSLETTER_CONFIRM_URL', NEWSLETTER_URL . '/do/confirm.php');
514            // Actually it should be set on startup, anyway the scripts use as time base the startup time
515            if (!empty($this->options['php_time_limit'])) {
516                @set_time_limit((int) $this->options['php_time_limit']);
649    function mailer_init() {
650        require_once ABSPATH . WPINC . '/class-phpmailer.php';
651        require_once ABSPATH . WPINC . '/class-smtp.php';
ModuleInstaller.php https://github.com/BarnetikKoop/SuiteCRM.git | PHP | 2,547 lines
485					mkdir_recursive($disabled_path, true);
486					rename("$path/$target.php", "$disabled_path/$target.php");
487				} else if (!empty($from) && file_exists($path . '/'. basename($from))) {
1884			foreach($this->installdefs['beans'] as $bean){
1885				if(!empty($bean['module']) && !empty($bean['class']) && !empty($bean['path'])){
1886					$module = $bean['module'];
2366
2367				if(!empty($relationship['module_layoutdefs']) && file_exists($path . '/'. $this->id_name . '.php')){
2368					mkdir_recursive($path . '/'.DISABLED_PATH, true);
2368					mkdir_recursive($path . '/'.DISABLED_PATH, true);
2369					rename( $path . '/'. $this->id_name . '.php', $path . '/'.DISABLED_PATH.'/'. $this->id_name . '.php');
2370				}
2374				mkdir_recursive("custom/Extension/application/Ext/TableDictionary/".DISABLED_PATH, true);
2375				rename("custom/Extension/application/Ext/TableDictionary/$this->id_name.php", "custom/Extension/application/Ext/TableDictionary/".DISABLED_PATH."/$this->id_name.php");
2376			}
usermeta-init.php https://github.com/ngocphuuit/wordpress-tax.git | PHP | 1,130 lines
1<?php
2// Add usermeta and post fileds groups to access.
76    require_once WPCF_INC_ABSPATH . '/fields-form.php';
77    require_once WPCF_INC_ABSPATH . '/usermeta-form.php';
78    $form = wpcf_admin_usermeta_form();
134    add_thickbox();
135    require_once WPCF_INC_ABSPATH . '/fields.php';
136    require_once WPCF_EMBEDDED_INC_ABSPATH . '/fields.php';
224    }
225    if ( ( $here[0] == ('index.php' || 'wp-admin')) && ( $here[1] != 'index.php') ) {
226        if ( isset( $post_type )
437        $user_id = wpcf_usermeta_get_user();
438    } else { //If empty get post author, if no post, return empty
439        if ( !empty( $post_id ) ) {
603        $user_id = wpcf_usermeta_get_user();
604    } else { //If empty get post author, if no post, return empty
605        if ( !empty( $post_id ) ) {
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21