About 333 results: "php empty repo:asterix14/dolibarr"
Page 1 of 17
Filter Results
Sources
Languages
Filter Results
Try Search On







commonobject.class.php in dolibarr https://github.com/asterix14/dolibarr.git | 2230 lines | PHP
  1.         $sql.= " WHERE tc.element='".$this->element."'";
  2.         if (! empty($source)) $sql.= " AND tc.source='".$source."'";
  3.                 $libelle_type=($langs->trans($transkey)!=$transkey ? $langs->trans($transkey) : $obj->libelle);
  4.                 if (empty($option)) $tab[$obj->rowid]=$libelle_type;
  5.     {
  6.         if (empty($this->fk_project)) return 0;
  7.         $sql.= " FROM ".MAIN_DB_PREFIX.$this->table_element." as te";
  8.         if ($this->ismultientitymanaged == 2 || ($this->element != 'societe' && empty($this->isnolinkedbythird) && empty($user->rights->societe->client->voir))) $sql.= ", ".MAIN_DB_PREFIX."societe as s";	// If we need to link to societe to limit select to entity
  9.         if (empty($this->isnolinkedbythird) && !$user->rights->societe->client->voir) $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe_commerciaux as sc ON ".$alias.".rowid = sc.fk_soc";
  10.         $sql.= " WHERE te.".$fieldid." < '".$this->db->escape($this->ref)."'";
  11.         if (empty($this->isnolinkedbythird) && !$user->rights->societe->client->voir) $sql.= " AND sc.fk_user = " .$user->id;
  12.         if (! empty($filter)) $sql.=" AND ".$filter;
  13.         if ($this->ismultientitymanaged == 2 || ($this->element != 'societe' && empty($this->isnolinkedbythird) && !$user->rights->societe->client->voir)) $sql.= ' AND te.fk_soc = s.rowid';			// If we need to link to societe to limit select to entity
  14.         if ($this->ismultientitymanaged == 1) $sql.= ' AND te.entity IN (0,'.(! empty($conf->entities[$this->element]) ? $conf->entities[$this->element] : $conf->entity).')';
  15. 
                        


functions.lib.php in dolibarr https://github.com/asterix14/dolibarr.git | 4481 lines | PHP
  1.     $disconnectdone=false;
  2.     if (is_object($db) && ! empty($db->connected)) $disconnectdone=$db->close();
  3.                 preg_match('/^([^\?]+(\.css\.php|\.css|\.js\.php|\.js|\.png|\.jpg|\.php)?)/i',$path,$regs);    // Take part before '?'
  4.                 if (! empty($regs[1]))
  5.                 preg_match('/^([^\?]+(\.css\.php|\.css|\.js\.php|\.js|\.png|\.jpg|\.php)?)/i',$path,$regs);    // Take part before '?'
  6.                 if (! empty($regs[1]))
  7.     global $conf;
  8.     if (empty($conf->browser->phone)) return $size;
  9.                 $ip='???';	// $ip contains information to identify computer that run the code
  10.                 if (! empty($_SERVER["REMOTE_ADDR"])) $ip=$_SERVER["REMOTE_ADDR"];			// In most cases.
  11.                 else if (! empty($_SERVER['SERVER_ADDR'])) $ip=$_SERVER['SERVER_ADDR'];		// This is when PHP session is ran inside a web server but not inside a client request (example: init code of apache)
  12.                 else if (! empty($_SERVER['COMPUTERNAME'])) $ip=$_SERVER['COMPUTERNAME'].(empty($_SERVER['USERNAME'])?'':'@'.$_SERVER['USERNAME']);	// This is when PHP session is ran outside a web server, like from Windows command line (Not always defined, but usefull if OS defined it).
  13.                 else if (! empty($_SERVER['LOGNAME'])) $ip='???@'.$_SERVER['LOGNAME'];	// This is when PHP session is ran outside a web server, like from Linux command line (Not always defined, but usefull if OS defined it).
  14. 
                        
  15.                 // If enable html log tag enabled and url parameter log defined, we show output log on HTML comments
  16.                 if (! empty($conf->global->MAIN_ENABLE_LOG_HTML) && ! empty($_GET["log"]))






conf.class.php in dolibarr https://github.com/asterix14/dolibarr.git | 429 lines | PHP
  1. 			// Sharings between entities
  2. 			if (isset($this->multicompany->enabled) && $this->multicompany->enabled && ! empty($multicompany_sharing))
  3. 		// Clean some variables
  4. 		if (empty($this->global->MAIN_MENU_STANDARD)) $this->global->MAIN_MENU_STANDARD="eldy_backoffice.php";
  5. 		if (empty($this->global->MAIN_MENUFRONT_STANDARD)) $this->global->MAIN_MENUFRONT_STANDARD="eldy_frontoffice.php";
  6. 		if (empty($this->global->MAIN_MENU_SMARTPHONE)) $this->global->MAIN_MENU_SMARTPHONE="eldy_backoffice.php";	// Use eldy by default because smartphone does not work on all phones
  7. 		if (empty($this->global->MAIN_MENUFRONT_SMARTPHONE)) $this->global->MAIN_MENUFRONT_SMARTPHONE="eldy_frontoffice.php";	// Ue eldy by default because smartphone does not work on all phones
  8. 
                        
  9. 		// Variable globales LDAP
  10. 		if (empty($this->global->LDAP_FIELD_FULLNAME)) $this->global->LDAP_FIELD_FULLNAME='';
  11. 		// societe
  12. 		if (empty($this->global->SOCIETE_CODECLIENT_ADDON))      $this->global->SOCIETE_CODECLIENT_ADDON="mod_codeclient_leopard";
  13. 		if (empty($this->global->SOCIETE_CODEFOURNISSEUR_ADDON)) $this->global->SOCIETE_CODEFOURNISSEUR_ADDON=$this->global->SOCIETE_CODECLIENT_ADDON;
  14. 		if (empty($this->global->SOCIETE_CODECOMPTA_ADDON))      $this->global->SOCIETE_CODECOMPTA_ADDON="mod_codecompta_panicum";
  15.         if (empty($this->global->COMPANY_AQUARIUM_MASK_SUPPLIER)) $this->global->COMPANY_AQUARIUM_MASK_SUPPLIER='401';
  16. 		if (empty($this->global->COMPANY_AQUARIUM_MASK_CUSTOMER)) $this->global->COMPANY_AQUARIUM_MASK_CUSTOMER='411';





Back to Top