PageRenderTime 3479ms queryFilters 111ms Sphinxql 2535ms GetByIds 566ms meta 0ms repositoryFilters 4ms languageFilters 77ms sourceFilters 122ms

501,203 results for 'php empty repo:Kudlaty/360kdw' (3479 ms)

Source

Language

Repository

class.products-post-type.php https://github.com/ArzuA/gitwordpress.git | PHP | 815 lines
233					<?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) : ?>
234						<input <?php if ( 'private' == $post->post_status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php esc_attr_e( 'Save Draft' ); ?>" class="button button-large" />
235					<?php elseif ( 'pending' == $post->post_status && $can_publish ) : ?>
253						?>
254						<a class="preview button button-large" href="<?php echo $preview_link; ?>" target="wp-preview" id="<?php echo $preview_id; ?>"><?php echo $preview_button; ?></a>
255						<input type="hidden" name="wp-preview" id="wp-preview" value="" />
280				<div id="advanced-action">
281					<a class="advanced-status-option-link advanced-hidden" href data-hidden="<?php _e( 'Show Advanced', 'it-l10n-ithemes-exchange' ); ?>" data-visible="<?php _e( 'Hide Advanced', 'it-l10n-ithemes-exchange' ); ?>"><?php _e( 'Show Advanced', 'it-l10n-ithemes-exchange' ); ?></a>
282				</div>
321						<?php if ( 'publish' == $post->post_status || 'private' == $post->post_status || $can_publish ) : ?>
322							<a href="#post_status" <?php if ( 'private' == $post->post_status ) { ?>style="display:none;" <?php } ?>class="edit-post-status hide-if-no-js"><?php _e( 'Edit', 'it-l10n-ithemes-exchange' ) ?></a>
323							<div id="post-status-select" class="hide-if-js">
361								<select name='it-exchange-visibility' id='it-exchange-visibility'>
362										<option<?php selected( $product_visibility, 'visible' ); ?> value='visible'><?php _e( 'Show in Store', 'it-l10n-ithemes-exchange' ) ?></option>
363										<option<?php selected( $product_visibility, 'hidden' ); ?> value='hidden'><?php _e( 'Hide from Store', 'it-l10n-ithemes-exchange' ) ?></option>
modinstall.class.php http://modx-revo-ja.googlecode.com/svn/ | PHP | 898 lines
1<?php
2/*
83    public function loadSettings($class = 'modInstallSettings') {
84        $path = dirname(__FILE__).'/'.strtolower($class).'.class.php';
85        $included = @include_once $path;
100    public function loadLexicon($class = 'modInstallLexicon') {
101        $path = dirname(__FILE__).'/'.strtolower($class).'.class.php';
102        $included = @include $path;
137            case modInstall::MODE_UPGRADE_EVO :
138                $included = @ include MODX_INSTALL_PATH . 'manager/includes/config.inc.php';
139                if ($included && isset ($dbase))
143            case modInstall::MODE_UPGRADE_REVO_ADVANCED :
144                $included = @ include MODX_CORE_PATH . 'config/' . MODX_CONFIG_KEY . '.inc.php';
145                if ($included && isset ($dbase)) {
784        if (defined('MODX_CORE_PATH') && file_exists(MODX_CORE_PATH) && is_dir(MODX_CORE_PATH)) {
785            if (file_exists(MODX_CORE_PATH . 'xpdo/xpdo.class.php') && file_exists(MODX_CORE_PATH . 'model/modx/modx.class.php')) {
786                $exists = true;
lang.php https://code.google.com/p/enanocms/ | PHP | 791 lines
1<?php
2
112		if ( !$q )
113			$db->_die('lang.php - main select query');
114		
115		if ( $db->numrows() < 1 )
116			$db->_die('lang.php - There are no languages installed');
117		
162			if ( !$q )
163				$db->_die('lang.php - selecting language string data');
164			if ( $row = $db->fetchrow() )
184				if ( !defined('ENANO_ALLOW_LOAD_NOLANG') )
185					$db->_die('lang.php - No strings for language ' . $this->lang_code);
186			}
233		if ( empty($contents) )
234			$db->_die('lang.php - empty language file...');
235		
plugin.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 944 lines
1<?php
2
10 * @copyright &copy; 1999-2007 The SquirrelMail Project Team
11 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
12 * @version $Id: plugin.php 12400 2007-05-17 16:36:13Z kink $
21function use_plugin ($name) {
22    if (file_exists(SM_PATH . "plugins/$name/setup.php")) {
23        include_once(SM_PATH . "plugins/$name/setup.php");
104 *
105 * Note that unlike PHP's array_merge function, matching array keys
106 * will not overwrite each other, instead, values under such keys
153                $plugin_ret = $function($args);
154                if (!empty($plugin_ret)) {
155                    $ret = sqm_array_merge($ret, $plugin_ret);
276  /**
277   * check if variable is empty. if var is not set, php empty
278   * returns true without error notice.
plugin.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 1,036 lines
1<?php
2
10 * @copyright 1999-2012 The SquirrelMail Project Team
11 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
12 * @version $Id: plugin.php 14249 2012-01-02 02:09:17Z pdontthink $
21function use_plugin ($name) {
22    if (file_exists(SM_PATH . "plugins/$name/setup.php")) {
23        include_once(SM_PATH . "plugins/$name/setup.php");
104 *
105 * Note that unlike PHP's array_merge function, matching array keys
106 * will not overwrite each other, instead, values under such keys
153                $plugin_ret = $function($args);
154                if (!empty($plugin_ret)) {
155                    $ret = sqm_array_merge($ret, $plugin_ret);
276  /**
277   * check if variable is empty. if var is not set, php empty
278   * returns true without error notice.
CHANGELOG.php http://vanphongphamdm.googlecode.com/svn/trunk/ | PHP | 3,622 lines
51# Bug #360 Ajax calls recorded as last page
52# Bug #310 bug in shop.browse.php empty category
53
25223.09.2009 mauri
253# Fixed EU VAT ID in ps_product.php and ps_checkout.php
254# Fixed undefined index in ps_order_chenge.php
86514.07.2008 soeren
866^ Task #2240 - mf description also in shop.browse.php and browse_header_manufacturer.tpl.php 
867# Task #2227 - When Joomla cache is enabled Product list with table doesn't work 
1337- removed email_*.html (localized email templates)
1338^ changed Order Confirmation Email to use a php-based template (/order_emails/confirmation_email.tpl.php)
1339+ custom registration/user fields are sent with confirmation email now 
1350# Task #1848 - In IE7 it is possible to move a product into the same category, doing so results in product being placed in no category
1351# Task #1839 - Empty name, empty price in product list (extended layout)
1352# Task #1851 - Quantity Start and Quantity End language strings missing from List Prices
epTestManager.php https://bitbucket.org/davidmpaz/ezpdo.git | PHP | 2,289 lines
1<?php
2
3/**
4 * $Id: epTestManager.php 1019 2006-11-29 06:26:43Z nauhygon $
5 *
7 *
8 * @author Oak Nauhygon <ezpdo4php@gmail.com>
9 * @version $Revision: 1019 $ $Date: 2006-11-29 01:26:43 -0500 (Wed, 29 Nov 2006) $
16 */
17include_once(dirname(__FILE__).'/epTestRuntime.php');
18
21 *
22 * @author Oak Nauhygon <ezpdo4php@gmail.com>
23 * @version $Revision: 1019 $ $Date: 2006-11-29 01:26:43 -0500 (Wed, 29 Nov 2006) $
60        // use manager to create one object
61        include_once(EP_TESTS.'/classes/bookstore/src/eptBook.php');
62
install.php https://github.com/zihuxinyu/typecho.git | PHP | 629 lines
191                    <form method="post" action="?config" name="config">
192                    <p class="message error"><?php _e('您没有上传 config.inc.php 文件,请您重新安装!'); ?> <button class="btn primary" type="submit"><?php _e('重新安装 &raquo;'); ?></button></p>
193                    </form>
239                        <li><a href="<?php echo $loginUrl; ?>"><?php _e('点击这里访问您的控制面板'); ?></a></li>
240                        <li><a href="<?php echo _u(); ?>/index.php"><?php _e('点击这里查看您的 Blog'); ?></a></li>
241                    </ul>
553                                <?php if (_p('Mysql')): ?><option value="Mysql"<?php if('Mysql' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Mysql 原生函数适配器') ?></option><?php endif; ?>
554                                <?php if (_p('SQLite')): ?><option value="SQLite"<?php if('SQLite' == $adapter): ?> selected=true<?php endif; ?>><?php _e('SQLite 原生函数适配器 (SQLite 2.x)') ?></option><?php endif; ?>
555                                <?php if (_p('Pgsql')): ?><option value="Pgsql"<?php if('Pgsql' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Pgsql 原生函数适配器') ?></option><?php endif; ?>
555                                <?php if (_p('Pgsql')): ?><option value="Pgsql"<?php if('Pgsql' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Pgsql 原生函数适配器') ?></option><?php endif; ?>
556                                <?php if (_p('Pdo_Mysql')): ?><option value="Pdo_Mysql"<?php if('Pdo_Mysql' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Pdo 驱动 Mysql 适配器') ?></option><?php endif; ?>
557                                <?php if (_p('Pdo_SQLite')): ?><option value="Pdo_SQLite"<?php if('Pdo_SQLite' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Pdo 驱动 SQLite 适配器 (SQLite 3.x)') ?></option><?php endif; ?>
557                                <?php if (_p('Pdo_SQLite')): ?><option value="Pdo_SQLite"<?php if('Pdo_SQLite' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Pdo 驱动 SQLite 适配器 (SQLite 3.x)') ?></option><?php endif; ?>
558                                <?php if (_p('Pdo_Pgsql')): ?><option value="Pdo_Pgsql"<?php if('Pdo_Pgsql' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Pdo 驱动 PostgreSql 适配器') ?></option><?php endif; ?>
559                            </select>
Menu.php https://github.com/zihuxinyu/typecho.git | PHP | 344 lines
128        array(
129            array(_t('文章'), _t('管理文章'), 'manage-posts.php', 'contributor', false, 'write-post.php'),
130            array(array('Widget_Contents_Post_Admin', 'getMenuTitle'), array('Widget_Contents_Post_Admin', 'getMenuTitle'), 'manage-posts.php?uid=', 'contributor', true),
130            array(array('Widget_Contents_Post_Admin', 'getMenuTitle'), array('Widget_Contents_Post_Admin', 'getMenuTitle'), 'manage-posts.php?uid=', 'contributor', true),
131            array(_t('独立页面'), _t('管理独立页面'), 'manage-pages.php', 'editor', false, 'write-page.php'),
132            array(_t('评论'), _t('管理评论'), 'manage-comments.php', 'contributor'),
133            array(array('Widget_Comments_Admin', 'getMenuTitle'), array('Widget_Comments_Admin', 'getMenuTitle'), 'manage-comments.php?cid=', 'contributor', true),
134            array(_t('分类'), _t('管理分类'), 'manage-categories.php', 'editor', false, 'category.php'),
135            array(_t('新增分类'), _t('新增分类'), 'category.php', 'editor', true),
142            array(array('Widget_Contents_Attachment_Edit', 'getMenuTitle'), array('Widget_Contents_Attachment_Edit', 'getMenuTitle'), 'media.php?cid=', 'contributor', true),
143            array(_t('用户'), _t('管理用户'), 'manage-users.php', 'administrator', false, 'user.php'),
144            array(_t('新增用户'), _t('新增用户'), 'user.php', 'administrator', true),
218                    && basename($urlParts['path']) == 'extending.php'
219                    && !empty($currentUrlParams['panel']) && !empty($urlParams['panel'])
220                    && $urlParams['panel'] != $currentUrlParams['panel']){
update-core.php git://github.com/markjaquith/WordPress.git | PHP | 952 lines
60	$form_action   = 'update-core.php?action=do-core-upgrade';
61	$php_version   = phpversion();
62	$mysql_version = $wpdb->db_version();
72		} else {
73			$php_compat = version_compare( $php_version, $update->php_version, '>=' );
74			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) {
109				$message = sprintf(
110					/* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Current PHP version number. */
111					__( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ),
237				'version'       => $wp_version . '.1.next.minor',
238				'php_version'   => $required_php_version,
239				'mysql_version' => $required_mysql_version,
361
362		$requires_php   = isset( $plugin_data->update->requires_php ) ? $plugin_data->update->requires_php : null;
363		$compatible_php = is_php_version_compatible( $requires_php );
common.php https://exult.svn.sourceforge.net/svnroot/exult | PHP | 422 lines
1<?php
2  if ( defined( "_COMMON_PHP" ) ) return;
33  // handle configs that have register_globals turned off.
34  // we use $PHP_SELF as the test since it should always be there.
35  // We might need to consider not using globals soon.
35  // We might need to consider not using globals soon.
36  if(!isset($PHP_SELF)) {
37     include ("./include/register_globals.php");
147
148  // passed to array_walk in read.php and list.php
149  // **TODO: replace using array_flip
315  // include abstraction layer and check if its defined
316  if(!defined("PHORUM_ADMIN") && (empty($PHORUM["dbtype"]) || !file_exists("./db/$PHORUM[dbtype].php"))){
317    echo "<html><head><title>Phorum Error</title></head><body>Something is wrong.  You need to edit common.php and select a database.</body></html>";
406      while($plugindirname = readdir($dir)) {
407        if($plugindirname[0] != "." && @file_exists("./plugin/$plugindirname/plugin.php") && !empty($PHORUM["plugins"][$plugindirname])){
408          include("./plugin/$plugindirname/plugin.php");
footer.inc.php http://iprn.googlecode.com/svn/trunk/ | PHP | 223 lines
1<?php
2/* vim: set expandtab sw=4 ts=4 sts=4: */
43 * @uses    file_exists()
44 * @version $Id: footer.inc.php 11986 2008-11-24 11:05:40Z nijel $
45 * @package phpMyAdmin
46 */
47if (! defined('PHPMYADMIN')) {
48    exit;
53 */
54require_once './libraries/relation.lib.php';
55
55
56if (! PMA_isValid($_REQUEST['no_history']) && empty($GLOBALS['error_message'])
57 && ! empty($GLOBALS['sql_query'])) {
200// profiling deactivated due to licensing issues
201if (! empty($GLOBALS['cfg']['DBG']['php'])
202 && ! empty($GLOBALS['cfg']['DBG']['profile']['enable'])) {
footer.inc.php http://railoapacheportable.googlecode.com/svn/trunk/ | PHP | 223 lines
1<?php
2/* vim: set expandtab sw=4 ts=4 sts=4: */
43 * @uses    file_exists()
44 * @version $Id: footer.inc.php 11986 2008-11-24 11:05:40Z nijel $
45 * @package phpMyAdmin
46 */
47if (! defined('PHPMYADMIN')) {
48    exit;
53 */
54require_once './libraries/relation.lib.php';
55
55
56if (! PMA_isValid($_REQUEST['no_history']) && empty($GLOBALS['error_message'])
57 && ! empty($GLOBALS['sql_query'])) {
200// profiling deactivated due to licensing issues
201if (! empty($GLOBALS['cfg']['DBG']['php'])
202 && ! empty($GLOBALS['cfg']['DBG']['profile']['enable'])) {
document.php git://github.com/Dolibarr/dolibarr.git | PHP | 200 lines
1<?php
2/* Copyright (C) 2003-2007 Rodolphe Quiedeville  <rodolphe@quiedeville.org>
29require '../main.inc.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/order.lib.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
32require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
33require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
33require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
34require_once DOL_DOCUMENT_ROOT.'/commande/class/commande.class.php';
35if (!empty($conf->projet->enabled)) {
114
115		$linkback = '<a href="'.DOL_URL_ROOT.'/commande/list.php?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
116
161
162		$linkback = '<a href="'.DOL_URL_ROOT.'/commande/list.php'.(!empty($socid) ? '?socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
163
tbl_replace.php https://bitbucket.org/wmark/gentoo_vhcs_mods.git | PHP | 275 lines
1<?php
2/* $Id: tbl_replace.php,v 2.27 2004/12/28 16:34:44 nijel Exp $ */
28if (isset($after_insert) && $after_insert == 'new_insert') {
29    $goto = 'tbl_change.php?'
30          . PMA_generate_common_url($db, $table, '&')
36          . '&dontlimitchars=' . $dontlimitchars
37          . (empty($sql_query) ? '' : '&sql_query=' . urlencode($sql_query));
38} elseif (isset($after_insert) && $after_insert == 'same_insert') {
84    if (!@file_exists('./' . $is_gotofile)) {
85        $goto        = (empty($table)) ? 'db_details.php' : 'tbl_properties.php';
86        $is_gotofile = TRUE;
202
203if (empty($valuelist) && empty($query)) {
204    // No change -> move back to the calling script
255if ($is_gotofile) {
256    if ($goto == 'db_details.php' && !empty($table)) {
257        unset($table);
Common.php https://bitbucket.org/kucing2k/ediassoc.git | PHP | 2,094 lines
503            case 'provides':
504                if (empty($attribs['type']) || empty($attribs['name'])) {
505                    break;
1147                }
1148                if ($d['type'] == 'php' && !empty($d['name'])) {
1149                    $warnings[] = "dependency $i: name ignored for php type dependencies";
1149                    $warnings[] = "dependency $i: name ignored for php type dependencies";
1150                } elseif ($d['type'] != 'php' && empty($d['name'])) {
1151                    $errors[] = "dependency $i: missing name";
1414                                 )) {
1415                            PEAR::raiseError('Error: PHP5 packages must be packaged by php 5 PEAR');
1416                            return false;
1793        $request .= "Host: $host:$port\r\n".
1794            "User-Agent: PHP/".PHP_VERSION."\r\n";
1795        if ($proxy_host != '' && $proxy_user != '') {
v1.php https://bitbucket.org/kucing2k/ediassoc.git | PHP | 1,612 lines
237/**
238 * Error code when a php5 package is packaged in php4 (analysis doesn't work)
239 */
1043                PEAR_PACKAGEFILE_ERROR_PHP5 =>
1044                    'Error, PHP5 token encountered in %file%, analysis should be in PHP5',
1045                PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND =>
1151                }
1152                if ($d['type'] == 'php' && !empty($d['name'])) {
1153                    $this->_validateWarning(PEAR_PACKAGEFILE_ERROR_DEPNAME_IGNORED,
1154                        array('index' => $i, 'name' => $d['name']));
1155                } elseif ($d['type'] != 'php' && empty($d['name'])) {
1156                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPNAME,
1158                }
1159                if ($d['type'] == 'php' && empty($d['version'])) {
1160                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPPHPVERSION,
Common.php https://bitbucket.org/kucing2k/ediassoc.git | PHP | 2,094 lines
503            case 'provides':
504                if (empty($attribs['type']) || empty($attribs['name'])) {
505                    break;
1147                }
1148                if ($d['type'] == 'php' && !empty($d['name'])) {
1149                    $warnings[] = "dependency $i: name ignored for php type dependencies";
1149                    $warnings[] = "dependency $i: name ignored for php type dependencies";
1150                } elseif ($d['type'] != 'php' && empty($d['name'])) {
1151                    $errors[] = "dependency $i: missing name";
1414                                 )) {
1415                            PEAR::raiseError('Error: PHP5 packages must be packaged by php 5 PEAR');
1416                            return false;
1793        $request .= "Host: $host:$port\r\n".
1794            "User-Agent: PHP/".PHP_VERSION."\r\n";
1795        if ($proxy_host != '' && $proxy_user != '') {
install.php https://bitbucket.org/cviolette/sugarcrm.git | PHP | 602 lines
39if (version_compare(phpversion(),'5.2.0') < 0) {
40	$msg = 'Minimum PHP version required is 5.2.0.  You are using PHP version  '. phpversion();
41    die($msg);
222
223if(empty($sugar_config['cache_dir']) && !empty($_SESSION['cache_dir'])) {
224    $sugar_config['cache_dir'] = $_SESSION['cache_dir'];
287// Add check here to see if a silent install config file exists; if so then launch silent installer
288elseif ( is_file('config_si.php') && empty($sugar_config['installer_locked'])) {
289
332
333    $exclude_files = array('register.php','download_modules.php');
334
498        // check to see if installer has been disabled
499        if(is_readable('config.php') && (filesize('config.php') > 0)) {
500            include_once('config.php');
utils.php https://bitbucket.org/cviolette/sugarcrm.git | PHP | 4,876 lines
183	'upload_badext' => empty($upload_badext) ? array (
184	'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py',
185	'asp', 'cfm', 'js', 'vbs', 'html', 'htm' ) : $upload_badext,
327	'upload_badext' => array (
328	'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py',
329	'asp', 'cfm', 'js', 'vbs', 'html', 'htm' ),
1939	if(isset($_SERVER['PHP_SELF'])) {
1940		if (!empty($_SERVER['PHP_SELF'])) clean_string($_SERVER['PHP_SELF'], 'SAFED_GET');
1941	}
2733function check_php_version($sys_php_version = '') {
2734	$sys_php_version = empty($sys_php_version) ? constant('PHP_VERSION') : $sys_php_version;
2735	// versions below $min_considered_php_version considered invalid by default,
3762	if(function_exists('json_encode')) {
3763		$phpInfo = getPhpInfo(8);
3764        return version_compare($phpInfo['json']['json version'], '1.1.1', '<');
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21