PageRenderTime 425ms queryFilters 1ms Sphinxql 177ms app.CodeModel.GetByIds 199ms findMatchingLines 26ms GetByIds 225ms meta 0ms repositoryFilters 6ms languageFilters 2ms sourceFilters 3ms

421,407 results for 'php empty repo:nosen/jelly2' (425 ms)

Source

Language

Repository

common.php http://openx-banner-creator.googlecode.com/svn/trunk/ | PHP | 219 lines
1<?php
2
95  // Get the existing banner details (if it is not a new banner)
96  if (!empty($banner_id))
97    $result  = $banner->get($banner_id);
111
112  require_once MAX_PATH . '/lib/OA/Creative/File.php';
113
116
117  if (!empty($banner->filename) && ($banner->storagetype == 'web' || $banner->storagetype == 'sql'))
118      DataObjects_Banners::deleteBannerFile($banner->storagetype, $banner->filename);
121
122  $new_banner = (empty($banner_id)) ? true : false;
123
165    $otherEntityString = _getEntityString($aOtherEntities);
166    if ($pageName == 'banner-designer.php' && empty($bannerId)) {
167                $tabValue = 'banner-designer_new';
document.php https://bitbucket.org/speedealing/speedealing.git | PHP | 214 lines
1<?php
2/* Copyright (C) 2003-2004	Rodolphe Quiedeville	<rodolphe@quiedeville.org>
26
27require '../../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.class.php';
28require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.class.php';
29require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.facture.class.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
32require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
32require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
33require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
34
128
129	$linkback = '<a href="'.DOL_URL_ROOT.'/fourn/facture/index.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
130
contact.php https://bitbucket.org/speedealing/speedealing.git | PHP | 178 lines
1<?php
2/* Copyright (C) 2005		Patrick Rouillon	<patrick@rouillon.net>
25
26require '../../main.inc.php';
27require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.class.php';
27require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.class.php';
28require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.facture.class.php';
29require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
29require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
31require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
63	{
64		header("Location: ".$_SERVER['PHP_SELF']."?id=".$object->id);
65		exit;
144
145		$linkback = '<a href="'.DOL_URL_ROOT.'/fourn/facture/index.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
146
history.php https://bitbucket.org/speedealing/speedealing.git | PHP | 193 lines
1<?php
2/* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
25
26require '../../main.inc.php';
27require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
27require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
28require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
29
39$socid='';
40if (! empty($user->societe_id)) $socid=$user->societe_id;
41$result = restrictedArea($user, 'commande_fournisseur', $id,'');
51
52if ($id > 0 || ! empty($ref))
53{
78
79		$linkback = '<a href="'.DOL_URL_ROOT.'/fourn/commande/liste.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
80
document.php https://bitbucket.org/speedealing/speedealing.git | PHP | 205 lines
1<?php
2/* Copyright (C) 2003-2007 Rodolphe Quiedeville  <rodolphe@quiedeville.org>
27
28require '../../main.inc.php';
29require_once DOL_DOCUMENT_ROOT.'/core/lib/order.lib.php';
29require_once DOL_DOCUMENT_ROOT.'/core/lib/order.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
32require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.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.'/fourn/class/fournisseur.commande.class.php';
35
130
131	$linkback = '<a href="'.DOL_URL_ROOT.'/fourn/commande/liste.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
132
document.php https://bitbucket.org/speedealing/speedealing.git | PHP | 171 lines
1<?php
2/* Copyright (C) 2003-2007 Rodolphe Quiedeville  <rodolphe@quiedeville.org>
28
29require '../main.inc.php';
30require_once DOL_DOCUMENT_ROOT.'/fichinter/class/fichinter.class.php';
30require_once DOL_DOCUMENT_ROOT.'/fichinter/class/fichinter.class.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
32require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
32require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
33require_once DOL_DOCUMENT_ROOT.'/core/lib/fichinter.lib.php';
34require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
73
74if (GETPOST('sendit','alpha') && ! empty($conf->global->MAIN_UPLOAD_DOC))
75{
127
128    $linkback = '<a href="'.DOL_URL_ROOT.'/fichinter/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
129
contact.php https://bitbucket.org/speedealing/speedealing.git | PHP | 205 lines
1<?php
2/* Copyright (C) 2005      Patrick Rouillon     <patrick@rouillon.net>
26
27require '../../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
28require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
29require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
30require_once DOL_DOCUMENT_ROOT.'/core/class/discount.class.php';
30require_once DOL_DOCUMENT_ROOT.'/core/class/discount.class.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/invoice.lib.php';
32require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
65	{
66		header("Location: ".$_SERVER['PHP_SELF']."?id=".$object->id);
67		exit;
146
147		$linkback = '<a href="'.DOL_URL_ROOT.'/compta/facture/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
148
document.php https://bitbucket.org/speedealing/speedealing.git | PHP | 171 lines
1<?php
2/* Copyright (C) 2003-2007	Rodolphe Quiedeville	<rodolphe@quiedeville.org>
27
28require ("../main.inc.php");
29require_once DOL_DOCUMENT_ROOT.'/core/lib/contract.lib.php';
29require_once DOL_DOCUMENT_ROOT.'/core/lib/contract.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/contrat/class/contrat.class.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';
78 */
79if (GETPOST('sendit') && ! empty($conf->global->MAIN_UPLOAD_DOC))
80{
127
128    $linkback = '<a href="'.DOL_URL_ROOT.'/contrat/liste.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
129
contact.php https://bitbucket.org/speedealing/speedealing.git | PHP | 190 lines
1<?php
2/* Copyright (C) 2005		Patrick Rouillon	<patrick@rouillon.net>
25
26require ("../main.inc.php");
27require_once(DOL_DOCUMENT_ROOT."/core/class/html.formfile.class.php");
27require_once(DOL_DOCUMENT_ROOT."/core/class/html.formfile.class.php");
28require_once(DOL_DOCUMENT_ROOT.'/core/lib/contract.lib.php');
29require_once(DOL_DOCUMENT_ROOT."/contrat/class/contrat.class.php");
29require_once(DOL_DOCUMENT_ROOT."/contrat/class/contrat.class.php");
30require_once(DOL_DOCUMENT_ROOT."/contact/class/contact.class.php");
31require_once(DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php');
65	{
66		header("Location: ".$_SERVER['PHP_SELF']."?id=".$object->id);
67		exit;
148
149		$linkback = '<a href="'.DOL_URL_ROOT.'/contrat/liste.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
150
rpr-new-user-notification.php https://bitbucket.org/midasinc/your-submission.git | PHP | 39 lines
1<?php
2if ( function_exists( 'wp_new_user_notification' ) ) {
5
6// Called after user completes registration from wp-login.php
7// Called after admin creates user from wp-admin/user-new.php
7// Called after admin creates user from wp-admin/user-new.php
8// Called after admin creates new site, which also creates new user from wp-admin/network/edit.php (MS)
9// Called after admin creates user from wp-admin/network/edit.php (MS)
15		//trigger_error( sprintf( __( 'Register Plus Redux DEBUG: wp_new_user_notification($user_id=%s, $plaintext_pass=%s) from %s', 'register-plus-redux' ), $user_id, $plaintext_pass, $pagenow ) ); 
16		if ( $register_plus_redux->rpr_get_option( 'user_set_password' ) == TRUE && !empty( $_POST['pass1'] ) )
17			$plaintext_pass = get_magic_quotes_gpc() ? stripslashes( $_POST['pass1'] ) : $_POST['pass1'];
17			$plaintext_pass = get_magic_quotes_gpc() ? stripslashes( $_POST['pass1'] ) : $_POST['pass1'];
18		if ( $pagenow == 'user-new.php' && !empty( $_POST['pass1'] ) )
19			$plaintext_pass = get_magic_quotes_gpc() ? stripslashes( $_POST['pass1'] ) : $_POST['pass1'];
20		//TODO: Code now only forces users registering to verify email, may want to add settings to have admin created users verify email too
21		if ( $pagenow == 'wp-login.php' && $register_plus_redux->rpr_get_option( 'verify_user_email' ) == TRUE ) {
22			$verification_code = wp_generate_password( 20, FALSE );
document.php https://github.com/zeert/dolibarr.git | PHP | 172 lines
1<?php
2/* Copyright (C) 2003-2007 Rodolphe Quiedeville  <rodolphe@quiedeville.org>
28
29require("../main.inc.php");
30require_once(DOL_DOCUMENT_ROOT."/fichinter/class/fichinter.class.php");
30require_once(DOL_DOCUMENT_ROOT."/fichinter/class/fichinter.class.php");
31require_once(DOL_DOCUMENT_ROOT."/core/lib/files.lib.php");
32require_once(DOL_DOCUMENT_ROOT."/core/lib/images.lib.php");
32require_once(DOL_DOCUMENT_ROOT."/core/lib/images.lib.php");
33require_once(DOL_DOCUMENT_ROOT."/core/lib/fichinter.lib.php");
34require_once(DOL_DOCUMENT_ROOT."/core/class/html.formfile.class.php");
73
74if (GETPOST('sendit','alpha') && ! empty($conf->global->MAIN_UPLOAD_DOC))
75{
127
128    $linkback = '<a href="'.DOL_URL_ROOT.'/fichinter/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
129
contact.php https://github.com/zeert/dolibarr.git | PHP | 205 lines
1<?php
2/* Copyright (C) 2005      Patrick Rouillon     <patrick@rouillon.net>
26
27require("../../main.inc.php");
28require_once(DOL_DOCUMENT_ROOT."/compta/facture/class/facture.class.php");
28require_once(DOL_DOCUMENT_ROOT."/compta/facture/class/facture.class.php");
29require_once(DOL_DOCUMENT_ROOT."/contact/class/contact.class.php");
30require_once(DOL_DOCUMENT_ROOT.'/core/class/discount.class.php');
30require_once(DOL_DOCUMENT_ROOT.'/core/class/discount.class.php');
31require_once(DOL_DOCUMENT_ROOT.'/core/lib/invoice.lib.php');
32require_once(DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php');
65	{
66		Header("Location: ".$_SERVER['PHP_SELF']."?id=".$object->id);
67		exit;
146
147		$linkback = '<a href="'.DOL_URL_ROOT.'/compta/facture/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
148
upgrade.php https://github.com/jinbo51/DiscuzX.git | PHP | 119 lines
6 *
7 *      $Id: install.php 27070 2012-01-04 05:55:20Z songlixin $
8 */
55$table = DB::table('common_plugin');
56include DISCUZ_ROOT . 'source/language/lang_admincp_cloud.php';
57$format = "UPDATE $table SET name = '%s' WHERE identifier = 'security'";
62$cronId_security_daily = $cronId_security_lastpost = 0;
63if(file_exists(DISCUZ_ROOT . './source/include/cron/cron_security_cleanup_lastpost.php') || file_exists(DISCUZ_ROOT . './source/include/cron/cron_security_daily.php')) {
64	$count = C::t('common_cron')->count();
66	foreach ($oldData as $value) {
67		if ($value['filename'] == 'cron_security_daily.php') {
68			$cronId_security_daily = $value['cronid'];
73}
74if(file_exists(DISCUZ_ROOT . './source/include/cron/cron_security_cleanup_lastpost.php') && empty($cronId_security_lastpost)) {
75	$data = array(
install.php https://github.com/jinbo51/DiscuzX.git | PHP | 123 lines
6 *
7 *      $Id: install.php 33344 2013-05-30 04:37:03Z jeffjzhang $
8 */
64$cronId_security_daily = $cronId_security_lastpost = 0;
65if(file_exists(DISCUZ_ROOT . './source/include/cron/cron_security_cleanup_lastpost.php') || file_exists(DISCUZ_ROOT . './source/include/cron/cron_security_daily.php')) {
66	$count = C::t('common_cron')->count();
68	foreach ($oldData as $value) {
69		if ($value['filename'] == 'cron_security_daily.php') {
70			$cronId_security_daily = $value['cronid'];
70			$cronId_security_daily = $value['cronid'];
71		}elseif ($value['filename'] == 'cron_security_cleanup_lastpost.php') {
72			$cronId_security_lastpost = $value['cronid'];
76include DISCUZ_ROOT . 'source/language/lang_admincp_cloud.php';
77if(file_exists(DISCUZ_ROOT . './source/include/cron/cron_security_cleanup_lastpost.php') && empty($cronId_security_lastpost)) {
78	$data = array(
upgrade.php https://bitbucket.org/acipriani/madeinapulia.com | PHP | 117 lines
41$mysql_version  = $wpdb->db_version();
42$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
43if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
71	if ( !$mysql_compat && !$php_compat )
72		printf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version );
73	elseif ( !$php_compat )
73	elseif ( !$php_compat )
74		printf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version );
75	elseif ( !$mysql_compat )
87<p><?php _e( 'The update process may take a little while, so please be patient.' ); ?></p>
88<p class="step"><a class="button button-large" href="upgrade.php?step=1&amp;backto=<?php echo $goback; ?>"><?php _e( 'Update WordPress Database' ); ?></a></p>
89<?php
99	<p><?php _e( 'Your WordPress database has been successfully updated!' ); ?></p>
100	<p class="step"><a class="button button-large" href="<?php echo $backto; ?>"><?php _e( 'Continue' ); ?></a></p>
101
upgrade.php https://bitbucket.org/AFelipeTrujillo/goblog | PHP | 117 lines
41$mysql_version  = $wpdb->db_version();
42$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
43if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
71	if ( !$mysql_compat && !$php_compat )
72		printf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version );
73	elseif ( !$php_compat )
73	elseif ( !$php_compat )
74		printf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version );
75	elseif ( !$mysql_compat )
87<p><?php _e( 'The update process may take a little while, so please be patient.' ); ?></p>
88<p class="step"><a class="button button-large" href="upgrade.php?step=1&amp;backto=<?php echo $goback; ?>"><?php _e( 'Update WordPress Database' ); ?></a></p>
89<?php
99	<p><?php _e( 'Your WordPress database has been successfully updated!' ); ?></p>
100	<p class="step"><a class="button button-large" href="<?php echo $backto; ?>"><?php _e( 'Continue' ); ?></a></p>
101
View.class.php https://github.com/wujingke/thinkphp.git | PHP | 218 lines
1<?php
2// +----------------------------------------------------------------------
2// +----------------------------------------------------------------------
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4// +----------------------------------------------------------------------
12/**
13 * ThinkPHP 视图类
14 */
87    private function render($content,$charset='',$contentType=''){
88        if(empty($charset))  $charset = C('DEFAULT_CHARSET');
89        if(empty($contentType)) $contentType = C('TMPL_CONTENT_TYPE');
92        header('Cache-control: '.C('HTTP_CACHE_CONTROL'));  // 页面缓存控制
93        header('X-Powered-By:ThinkPHP');
94        // 输出模板文件
114        ob_implicit_flush(0);
115        if('php' == strtolower(C('TMPL_ENGINE_TYPE'))) { // 使用PHP原生模板
116            $_content   =   $content;
View.class.php https://github.com/guodont/easycart.git | PHP | 212 lines
1<?php
2// +----------------------------------------------------------------------
2// +----------------------------------------------------------------------
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4// +----------------------------------------------------------------------
12/**
13 * ThinkPHP 视图类
14 */
87    private function render($content,$charset='',$contentType=''){
88        if(empty($charset))  $charset = C('DEFAULT_CHARSET');
89        if(empty($contentType)) $contentType = C('TMPL_CONTENT_TYPE');
92        header('Cache-control: '.C('HTTP_CACHE_CONTROL'));  // 页面缓存控制
93        header('X-Powered-By:ThinkPHP');
94        // 输出模板文件
114        ob_implicit_flush(0);
115        if('php' == strtolower(C('TMPL_ENGINE_TYPE'))) { // 使用PHP原生模板
116            // 模板阵列变量分解成为独立变量
View.class.php https://github.com/398360167/workflow.git | PHP | 228 lines
1<?php
2// +----------------------------------------------------------------------
2// +----------------------------------------------------------------------
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4// +----------------------------------------------------------------------
12/**
13 * ThinkPHP 视图类
14 * @category   Think
91    private function render($content,$charset='',$contentType=''){
92        if(empty($charset))  $charset = C('DEFAULT_CHARSET');
93        if(empty($contentType)) $contentType = C('TMPL_CONTENT_TYPE');
96        header('Cache-control: '.C('HTTP_CACHE_CONTROL'));  // 页面缓存控制
97        header('X-Powered-By:ThinkPHP');
98        // 输出模板文件
119        ob_implicit_flush(0);
120        if('php' == strtolower(C('TMPL_ENGINE_TYPE'))) { // 使用PHP原生模板
121            // 模板阵列变量分解成为独立变量
CValidator.php https://github.com/ashie1287/headfirst.git | PHP | 233 lines
1<?php
2/**
137			else
138				$on=preg_split('/[\s,]+/',$params['on'],-1,PREG_SPLIT_NO_EMPTY);
139		}
163
164		$validator->on=empty($on) ? array() : array_combine($on,$on);
165
191	 * <ul>
192	 * <li>the validator's "on" property is empty</li>
193	 * <li>the validator's "on" property contains the specified scenario</li>
200	{
201		return empty($this->on) || isset($this->on[$scenario]);
202	}
219	 * Checks if the given value is empty.
220	 * A value is considered empty if it is null, an empty array, or the trimmed result is an empty string.
221	 * Note that this method is different from PHP empty(). It will return false when the value is 0.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21