PageRenderTime 292ms queryFilters 1ms Sphinxql 176ms app.CodeModel.GetByIds 77ms findMatchingLines 15ms GetByIds 92ms meta 0ms repositoryFilters 2ms languageFilters 1ms sourceFilters 2ms

421,407 results for 'php empty repo:dadyday/template' (292 ms)

Source

Language

Repository

card.php git://github.com/Dolibarr/dolibarr.git | PHP | 411 lines
1<?php
2/* Copyright (C) 2005      Rodolphe Quiedeville  <rodolphe@quiedeville.org>
31require DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.class.php';
32require DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.facture.class.php';
33require DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php';
89if ($action == 'confirm_valide' && $confirm == 'yes' &&
90	((empty($conf->global->MAIN_USE_ADVANCED_PERMS) && !empty($user->rights->fournisseur->facture->creer))
91	|| (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && !empty($user->rights->fournisseur->supplier_invoice_advance->validate)))
178
179	$linkback = '<a href="'.DOL_URL_ROOT.'/fourn/facture/paiement.php'.(!empty($socid) ? '?socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
180
347			if ((empty($conf->global->MAIN_USE_ADVANCED_PERMS) && !empty($user->rights->fournisseur->facture->creer))
348		   	|| (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && !empty($user->rights->fournisseur->supplier_invoice_advance->validate)))
349			{
383		$delallowed = $user->rights->fournisseur->facture->creer;
384		$modelpdf = (!empty($object->modelpdf) ? $object->modelpdf : (empty($conf->global->SUPPLIER_PAYMENT_ADDON_PDF) ? '' : $conf->global->SUPPLIER_PAYMENT_ADDON_PDF));
385
inventory.php git://github.com/Dolibarr/dolibarr.git | PHP | 433 lines
1<?php
2/* Copyright (C) 2019 Laurent Destailleur  <eldy@users.sourceforge.net>
24require '../../main.inc.php';
25include_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
26include_once DOL_DOCUMENT_ROOT.'/product/inventory/class/inventory.class.php';
26include_once DOL_DOCUMENT_ROOT.'/product/inventory/class/inventory.class.php';
27include_once DOL_DOCUMENT_ROOT.'/product/inventory/lib/inventory.lib.php';
28
40
41if (empty($conf->global->MAIN_USE_ADVANCED_PERMS))
42{
68
69if (empty($action) && empty($id) && empty($ref)) $action = 'view';
70
187	// ------------------------------------------------------------
188	$linkback = '<a href="'.DOL_URL_ROOT.'/product/inventory/list.php'.(!empty($socid) ? '?socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
189
empty.html git://github.com/kvz/phpjs.git | HTML | 93 lines
36  Here’s what our current JavaScript equivalent to <a
37  href="https://php.net/manual/en/function.empty.php">PHP's empty</a> looks like.
38function: empty
40language: php
41permalink: php/var/empty/
42alias:
42alias:
43  - /functions/php/empty/
44  - /functions/var/empty/
44  - /functions/var/empty/
45  - /php/empty/
46  - /functions/empty/
48{% codeblock lang:javascript %}module.exports = function empty (mixedVar) {
49  //  discuss at: https://locutus.io/php/empty/
50  // original by: Philippe Baumann
class-jobtype-file.php https://github.com/90rdon/bric.git | PHP | 541 lines
78						   type="checkbox"<?php checked( BackWPup_Option::get( $main, 'backuproot' ), TRUE, TRUE );?>
79						   name="backuproot" id="idbackuproot" value="1" /> <code title="<?php echo sprintf( __( 'Path as set by user (symlink?): %s', 'backwpup' ), esc_attr( ABSPATH ) ); ?>"><?php echo esc_attr( $folder ); ?></code><?php echo $folder_size; ?>
80
108                           type="checkbox"<?php checked( BackWPup_Option::get( $main, 'backupcontent' ), TRUE, TRUE );?>
109                           name="backupcontent" id="idbackupcontent" value="1" /> <code title="<?php echo sprintf( __( 'Path as set by user (symlink?): %s', 'backwpup' ), esc_attr( WP_CONTENT_DIR ) ); ?>"><?php echo esc_attr( $folder ); ?></code><?php echo $folder_size; ?>
110
168                           type="checkbox"<?php checked( BackWPup_Option::get( $main, 'backupthemes' ), TRUE, TRUE );?>
169                           name="backupthemes" id="idbackupthemes" value="1" /> <code title="<?php echo sprintf( __( 'Path as set by user (symlink?): %s', 'backwpup' ), esc_attr( get_theme_root() ) ); ?>"><?php echo esc_attr( $folder ); ?></code><?php echo $folder_size; ?>
170
198                           type="checkbox"<?php checked( BackWPup_Option::get( $main, 'backupuploads' ), TRUE, TRUE );?>
199                           name="backupuploads" id="idbackupuploads" value="1" /> <code title="<?php echo sprintf( __( 'Path as set by user (symlink?): %s', 'backwpup' ), esc_attr( BackWPup_File::get_upload_dir() ) ); ?>"><?php echo esc_html( $folder ); ?></code><?php echo $folder_size; ?>
200
251						   type="checkbox"<?php checked( BackWPup_Option::get( $main, 'backupspecialfiles' ), TRUE, TRUE );?>
252						   name="backupspecialfiles" value="1" /> <?php _e( 'Backup wp-config.php, robots.txt, .htaccess, .htpasswd and favicon.ico from root.', 'backwpup' ); BackWPup_Help::add_tab( __( 'If the WordPress root folder is not included in this backup job, check this option to additionally include wp-config.php, robots.txt, .htaccess, .htpasswd and favicon.ico into the backup. Your wp-config.php will be included even if you placed it in the parent directory of your root folder.', 'backwpup' ) ); ?></label>
253				</td>
em-admin.php https://github.com/90rdon/bric.git | PHP | 272 lines
57	}
58	if( !empty($events_num) && !empty($submenu['edit.php?post_type='.EM_POST_TYPE_EVENT]) ){ //Submenu Event Item
59		//go through the menu array and modify the events menu if found
66	}
67	if( !empty($events_recurring_num) && !empty($submenu['edit.php?post_type='.EM_POST_TYPE_EVENT]) ){ //Submenu Recurring Event Item
68		//go through the menu array and modify the events menu if found
78	if( $pagenow == 'post-new.php' && !empty($_REQUEST['post_type']) ){
79		if( $_REQUEST['post_type'] == EM_POST_TYPE_LOCATION && !empty($_wp_submenu_nopriv['edit.php']['post-new.php']) && current_user_can('edit_locations') ){
80			unset($_wp_submenu_nopriv['edit.php']['post-new.php']);
81		}
82		if( $_REQUEST['post_type'] == 'event-recurring' && !empty($_wp_submenu_nopriv['edit.php']['post-new.php']) && current_user_can('edit_recurring_events') ){
83			unset($_wp_submenu_nopriv['edit.php']['post-new.php']);
170				<div id="em_page_error" class="updated">
171					<p><?php echo sprintf(__('Whilst they will still appear using placeholders, you need to <a href="%s">migrate your location and event images</a> in order for them to appear in your edit forms and media library. <a href="%s">Dismiss message</a>','dbem'),admin_url().'edit.php?post_type=event&page=events-manager-options&em_migrate_images=1&_wpnonce='.wp_create_nonce('em_migrate_images'), em_add_get_params($_SERVER['REQUEST_URI'], array('disable_dbem_migrate_images_nag' => 1))); ?></p>
172				</div>
check_variables_php.ml git://github.com/facebook/pfff.git | OCaml | 961 lines
28 * This module helps find stupid PHP mistakes related to variables. See
29 * tests/php/scheck/variables.php for examples of bugs currently
30 * detected by this checker. This module not only checks but also annotates
245             * check_functions_php.ml, but right now this file uses
246             * ast_php.ml and not ast_php_simple.ml, so there are some
247             * differences in the logic so we double check things here.
721      ()
722  (* http://php.net/manual/en/function.empty.php
723   * "empty() does not generate a warning if the variable does not exist."
780            let params =
781              def.Ast_php.f_params +> Ast_php.unparen +> Ast_php.uncomma_dots
782            in
943  (Ast_php.Program prog) +>
944    Visitor_php.mk_visitor { Visitor_php.default_visitor with
945    Visitor_php.kexpr = (fun (k, _) x ->
update-core.php http://core.svn.wordpress.org/ | PHP | 649 lines
407
408	$php_version    = phpversion();
409	$mysql_version  = $wpdb->db_version();
412	$wp_version = '3.4';
413	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
414	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
422	if ( !$mysql_compat && !$php_compat )
423		return new WP_Error( 'php_mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s 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 ) );
424	elseif ( !$php_compat )
424	elseif ( !$php_compat )
425		return new WP_Error( 'php_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ) );
426	elseif ( !$mysql_compat )
639<script type="text/javascript">
640window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
641</script>
update-core.php http://core.svn.wordpress.org/ | PHP | 641 lines
404
405	$php_version    = phpversion();
406	$mysql_version  = $wpdb->db_version();
409	$wp_version = '3.3';
410	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
411	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
419	if ( !$mysql_compat && !$php_compat )
420		return new WP_Error( 'php_mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s 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 ) );
421	elseif ( !$php_compat )
421	elseif ( !$php_compat )
422		return new WP_Error( 'php_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ) );
423	elseif ( !$mysql_compat )
631<script type="text/javascript">
632window.location = '<?php echo admin_url( 'about.php?updated' ); ?>';
633</script>
02-QuickStart.txt git://github.com/eventhorizonpl/forked-php-orm-benchmark.git | Unknown | 261 lines
136
137The ''runtime'' configuration is used in your application to configure your generated object model classes and the shared Propel runtime classes.  This information is not needed for building your SQL and PHP classes, but the runtime configuration is transformed into a more PHP "friendly" array format by the generator, so it makes sense to set these properties before building the project.
138
179 1. create the PHP5 classes that provide an OO representation of your database, and
180 1. convert the XML runtime configuration into a PHP array that is easier (quicker) for PHP to parse.
181
194||bookstore/build/sql/schema.sql||The SQL DDL file that creates the database objects (tables, sequences, etc.)||
195||bookstore/build/conf/bookstore-conf.php||The converted PHP array that holds your runtime configuration.||
196
229||`bookstore/Book.php`||Empty subclass for custom methods & overriding methods from `BaseBook`||
230||`bookstore/BookPeer.php`||Empty peer subclass for custom methods & overriding methods from `BaseBookPeer`||
231
241
242Before you can begin using your Propel objects, you must initialize Propel in your PHP script.  You may wish to do this step in an init or setup script that included at the beginning of your PHP scripts.  Initializing Propel configures the database adapter & database connection parameters and sets up any logging (if you specified a ''<log>'' section in the rutnime config file).
243
CLogger.js git://github.com/phpnode/YiiJS.git | JavaScript | 339 lines
133		self = this;
134		if(php.empty(levels) && php.empty(categories)) {
135			return this._logs;
136		}		
137		else if(php.empty(levels)) {
138			
150		}
151		else if(php.empty(categories)) {
152			return Yii.filter(this._logs,function(value, k, arr) {
166				Yii.forEach(self._categories, function(i, category) {
167					if(cat===category || ((c=php.rtrim(category,'.*'))!==category && php.strpos(cat,c)===0)) {
168						matched = true;
196				cat=value[2].toLowerCase();
197				if(cat===category || ((c=php.rtrim(category,'.*'))!==category && php.strpos(cat,c)===0)) {
198					return value;
contact.php git://github.com/Dolibarr/dolibarr.git | PHP | 206 lines
1<?php
2/* Copyright (C) 2005      Patrick Rouillon     <patrick@rouillon.net>
26
27require '../../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
28require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
29require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.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/class/html.formcompany.class.php';
32if (!empty($conf->projet->enabled)) {
32if (!empty($conf->projet->enabled)) {
33	require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
34}
144
145		$linkback = '<a href="'.DOL_URL_ROOT.'/fourn/commande/list.php'.(!empty($socid) ? '?socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
146
note.php git://github.com/Dolibarr/dolibarr.git | PHP | 159 lines
1<?php
2/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
27
28require '../../main.inc.php';
29require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
29require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
31if (!empty($conf->projet->enabled)) {
31if (!empty($conf->projet->enabled)) {
32	require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
33}
48
49$permissionnote = $user->rights->fournisseur->commande->creer; // Used by the include of actions_setnotes.inc.php
50
90
91		$linkback = '<a href="'.DOL_URL_ROOT.'/fourn/commande/list.php'.(!empty($socid) ? '?socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
92
metar.php git://pkgs.fedoraproject.org/horde | PHP | 477 lines
1<?php
2
3if ((@include_once 'Services/Weather.php') &&
4    !empty($GLOBALS['conf']['sql']['phptype'])) {
5    $block_name = _("Metar Weather");
12 *
13 * $Horde: horde/lib/Block/metar.php,v 1.22.10.11 2009/01/16 17:05:59 mrubinsk Exp $
14 *
37    {
38        if (!@include_once 'Services/Weather.php') {
39            Horde::logMessage('The metar block will not work without Services_Weather from PEAR. Run pear install Services_Weather.',
51            // Get locations from the database.
52            require_once 'DB.php';
53            $db = &DB::connect($conf['sql']);
58            // Set DB portability options.
59            switch ($db->phptype) {
60            case 'mssql':
del_entry.php git://pkgs.fedoraproject.org/WebCalendar | PHP | 276 lines
72// user is allowed to delete events from the other user's calendar.
73if ( ! $can_edit && access_is_enabled () && ! empty ( $user ) &&
74    access_user_calendar ( 'edit', $user ) )
91$override_repeat = false;
92if ( ! empty ( $date ) && $event_repeats && ! empty ( $override ) )
93  $override_repeat = true;
163              translate ( 'Date XXX' ) ) . "\n"
164             . ( ! empty ( $eventtime ) && $eventtime != '-1'
165              ? str_replace ( 'XXX', display_time ( '', 2, $eventstart,
258  if ( $ret == 'list' )
259    $url = 'list_unapproved.php' . ( empty ( $user ) ? '' : '?user=' . $user );
260} else
267set_env ( 'TZ', $TIMEZONE );
268if ( empty ( $error ) && empty ( $mailerError ) ) {
269  do_redirect ( $url );
search_handler.php git://pkgs.fedoraproject.org/WebCalendar | PHP | 265 lines
53$users = getValue ( 'users' );
54if ( empty ( $users ) || empty ( $users[0] ) )
55  $search_others = false;
90
91if ( empty ( $users ) || empty ( $users[0] ) )
92  $search_others = false;
121// check if keywords is surrounded by quotes
122// an alternative might be to add a checkbox/list on search.php
123// to indicate Phrase or other mode via an arg
244// now sort by number of hits
245if ( empty ( $error ) && ! empty ( $info ) ) {
246  echo '
256echo '
257      <form action="search.php' . ( ! empty ( $advanced ) ? '?adv=1' : '' )
258        . '"  style="margin-left: 13px;" method="post">
update-core.php https://bitbucket.org/sephora99/kmirock.git | PHP | 640 lines
404
405	$php_version    = phpversion();
406	$mysql_version  = $wpdb->db_version();
409	$wp_version = '3.3.1';
410	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
411	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
419	if ( !$mysql_compat && !$php_compat )
420		return new WP_Error( 'php_mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s 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 ) );
421	elseif ( !$php_compat )
421	elseif ( !$php_compat )
422		return new WP_Error( 'php_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ) );
423	elseif ( !$mysql_compat )
631<script type="text/javascript">
632window.location = '<?php echo admin_url( 'about.php?updated' ); ?>';
633</script>
update-core.php https://bitbucket.org/matthieuboutron/dinner-thrill.git | PHP | 640 lines
404
405	$php_version    = phpversion();
406	$mysql_version  = $wpdb->db_version();
409	$wp_version = '3.3.2';
410	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
411	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
419	if ( !$mysql_compat && !$php_compat )
420		return new WP_Error( 'php_mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s 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 ) );
421	elseif ( !$php_compat )
421	elseif ( !$php_compat )
422		return new WP_Error( 'php_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ) );
423	elseif ( !$mysql_compat )
631<script type="text/javascript">
632window.location = '<?php echo admin_url( 'about.php?updated' ); ?>';
633</script>
README https://bitbucket.org/neoben/ecommerce.git | Unknown | 158 lines
31Dependencies:
32	index.php -> Log In -> store.php
33	index.php -> Sign Up -> register.html
66	showcart.php -> Checkout -> pay.php
67	showcart.php -> Empty Cart -> emptycart.php
68	showcart.php -> store.php
69
70emptycart.php
71-------------
74Dependencies:
75	emptycart.php -> store.php
76
82Dependencies:
83	pay.php -> store.php
84
document.php https://bitbucket.org/speedealing/speedealing.git | PHP | 180 lines
1<?php
2/* Copyright (C) 2003-2004 Rodolphe Quiedeville  <rodolphe@quiedeville.org>
26
27require '../../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propal.class.php';
28require_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propal.class.php';
29require_once DOL_DOCUMENT_ROOT.'/core/lib/propal.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
32require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
43$socid='';
44if (! empty($user->societe_id))
45{
126
127	$linkback='<a href="'.DOL_URL_ROOT.'/comm/propal/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
128
contact.php https://bitbucket.org/speedealing/speedealing.git | PHP | 227 lines
1<?php
2/* Copyright (C) 2005      Patrick Rouillon     <patrick@rouillon.net>
26
27require '../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.'/commande/class/commande.class.php';
28require_once DOL_DOCUMENT_ROOT.'/commande/class/commande.class.php';
29require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/order.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/order.lib.php';
31require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
32require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
63	{
64		header("Location: ".$_SERVER['PHP_SELF']."?id=".$object->id);
65		exit;
155
156		$linkback = '<a href="'.DOL_URL_ROOT.'/commande/liste.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
157
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21