PageRenderTime 473ms queryFilters 0ms Sphinxql 28ms app.CodeModel.GetByIds 338ms findMatchingLines 71ms GetByIds 409ms meta 0ms repositoryFilters 6ms languageFilters 1ms sourceFilters 3ms

60,014 results for 'php is_null repo:sebs/mosolar' (473 ms)

Source

Language

Repository

Blob.php git://github.com/nfabre/deepzoom.php.git | PHP | 1,400 lines
1<?php
2/**
19 * @license    http://todo     name_todo
20 * @version    $Id: Blob.php 20923 2010-02-05 07:16:14Z maartenba $
21 */
25 */
26require_once 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
27
30 */
31require_once 'Zend/Service/WindowsAzure/Credentials/SharedAccessSignature.php';
32
35 */
36require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
37
40 */
41require_once 'Zend/Http/Client.php';
42
MetaBox.php git://github.com/beingzoe/wpplugin-kitchen-sink-html5-base.git | PHP | 2,237 lines
1<?php
2
608		<style type="text/css">
609			<?php if ($this->hide_editor): ?> #postdiv, #postdivrich { display:none; } <?php endif; ?>
610		</style>
658
659				var mb_id = '<?php echo $this->id; ?>';
660				var mb = $('#' + mb_id + '_metabox');
661
662				<?php if (WPALCHEMY_LOCK_TOP == $this->lock): ?>
663				<?php if ('side' == $this->context): ?>
668				}
669				<?php else: ?>
670				var id = 'wpalchemy-content-top';
994
995		if ($uri AND in_array($file, array('post.php', 'post-new.php')))
996		{
Sanitizer.php git://github.com/ryancramerdesign/ProcessWire.git | PHP | 1,595 lines
1<?php
2
662				$value = str_replace(' ', '', $value);
663				/** @noinspection PhpUnusedLocalVariableInspection */
664				list($tel, $num) = explode(':', $value);
852			// value needs more filtering, replace all non-alphanumeric, non-single-quote and space chars
853			// See: http://php.net/manual/en/regexp.reference.unicode.php
854			// See: http://www.regular-expressions.info/unicode.html
882	 * The arguments used hre are identical to those for PHP's htmlentities function: 
883	 * http://www.php.net/manual/en/function.htmlentities.php
884	 *
1003	 * The arguments used hre are identical to those for PHP's heml_entity_decode function: 
1004	 * http://www.php.net/manual/en/function.html-entity-decode.php
1005	 *
1247			'precision' => null, // Optional number of digits to round to 
1248			'mode' => PHP_ROUND_HALF_UP, // Mode to use for rounding precision (default=PHP_ROUND_HALF_UP)
1249			'blankValue' => 0.0, // Value to return (whether float or non-float) if provided $value is an empty non-float (default=0.0)
Blob.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 1,401 lines
1<?php
2/**
19 * @license    http://todo     name_todo
20 * @version    $Id: Blob.php 36457 2010-01-04 07:36:33Z unknown $
21 */
25 */
26require_once 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
27
30 */
31require_once 'Zend/Service/WindowsAzure/Credentials/SharedAccessSignature.php';
32
35 */
36require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
37
40 */
41require_once 'Zend/Http/Client.php';
42
Horde.php git://pkgs.fedoraproject.org/horde | PHP | 2,034 lines
1<?php
2/**
13/** Log */
14include_once 'Log.php';
15
16/** Util */
17include_once 'Horde/Util.php';
18
124            !isset($conf['log']['params'])) {
125            Horde::fatal(PEAR::raiseError('Horde is not correctly configured to log error messages. You must configure at least a text file log in horde/config/conf.php.'), __FILE__, __LINE__, false);
126        }
132        if (!is_a($logger, 'Log')) {
133            Horde::fatal(PEAR::raiseError('An error has occurred. Furthermore, Horde encountered an error attempting to log this error. Please check your Horde logging configuration in horde/config/conf.php.'), __FILE__, __LINE__, false);
134        }
1321     * Returns the Web server being used.
1322     * PHP string list built from the PHP 'configure' script.
1323     *
Form.php git://pkgs.fedoraproject.org/horde | PHP | 4,909 lines
148    {
149        require_once 'Horde/Form/Renderer.php';
150        $renderer = new Horde_Form_Renderer($params);
254
255        if (is_null($before)) {
256            $this->_variables[$this->_currentSection][] = &$var;
405    {
406        if (is_null($enctype) && !is_null($this->_enctype)) {
407            $enctype = $this->_enctype;
466
467        if (is_null($enctype) && !is_null($this->_enctype)) {
468            $enctype = $this->_enctype;
4253            'params' => array(
4254                'dsn' => array('label' => _("DSN (see http://pear.php.net/manual/en/package.database.db.intro-dsn.php)"),
4255                               'type'  => 'text'),
compose.php git://pkgs.fedoraproject.org/imp | PHP | 1,259 lines
1<?php
2/**
2/**
3 * $Horde: imp/compose.php,v 2.800.2.130 2009/12/16 21:56:13 jan Exp $
4 *
16    if (empty($url)) {
17        $url = Horde::applicationUrl('mailbox.php');
18    }
30{
31    require_once 'Horde/Menu.php';
32    $menu = new Menu(HORDE_MENU_MASK_NONE);
32    $menu = new Menu(HORDE_MENU_MASK_NONE);
33    $menu->add(Horde::applicationUrl('compose.php'), _("New Message"), 'compose.png');
34    $menu->add('', _("Close this window"), 'close.png', $GLOBALS['registry']->getImageDir('horde'), '', 'window.close();');
48    }
49    require_once IMP_BASE . '/lib/MIME/Contents.php';
50    $imp_contents = &IMP_Contents::singleton($index . IMP_IDX_SEP . $mailbox);
pagelib.php git://pkgs.fedoraproject.org/moodle | PHP | 1,925 lines
1<?php
2
197     * Sets the page to refresh after a given delay (in seconds) using meta refresh
198     * in {@link standard_head_html()} in outputlib.php
199     * If set to null(default) the page is not refreshed
263        global $SITE;
264        if (is_null($this->_course)) {
265            return $SITE;
288    protected function magic_get_activityrecord() {
289        if (is_null($this->_module) && !is_null($this->_cm)) {
290            $this->load_activity_record();
300    protected function magic_get_activityname() {
301        if (is_null($this->_cm)) {
302            return null;
337    protected function magic_get_context() {
338        if (is_null($this->_context)) {
339            if (CLI_SCRIPT or NO_MOODLE_COOKIES) {
schema.php git://pkgs.fedoraproject.org/phpldapadmin | PHP | 641 lines
1<?php
2/**
12 *
13 * @package phpLDAPadmin
14 * @subpackage Page
19
20require './common.php';
21
25
26if (! is_null($entry['value'])) {
27	$entry['viewed'] = false;
33	_('This could happen for several reasons, the most probable of which are:'),_('The server does not fully support the LDAP protocol.'),
34	_('Your version of PHP does not correctly perform the query.'),_('phpLDAPadmin doesn\'t know how to fetch the schema for your server.'),
35	_('Or lastly, your LDAP server doesnt provide this information.'));
59		if (isAjaxEnabled())
60			printf('<a href="cmd.php?%s" onclick="return ajDISPLAY(\'BODY\',\'%s\',\'Loading %s\');" title="Loading %s">%s</a>',
61				htmlspecialchars($entry['href'][$item]),htmlspecialchars($entry['href'][$item]),$value,$value,$value);
Template.php git://pkgs.fedoraproject.org/phpldapadmin | PHP | 1,572 lines
1<?php
2/**
17 *
18 * @author The phpLDAPadmin development team
19 * @package phpLDAPadmin
24 *
25 * @package phpLDAPadmin
26 * @subpackage Templates
62		# If this is the default template, we might disable leafs by default.
63		if (is_null($filename))
64			$this->noleaf = $_SESSION[APPCONFIG]->getValue('appearance','disable_default_leaf');
140								if ($sattr = $server->getSchemaAttribute($index))
141									if (is_null($this->getAttribute($sattr->getName())))
142										$this->addAttribute($sattr->getName(),$details,'XML');
210		foreach ($this->rdn as $key) {
211			if ((is_null($attribute = $this->getAttribute($key))) && (in_array_ignore_case('extensibleobject',$this->getObjectClasses()))) {
212				$attribute = $this->addAttribute($key,array('values'=>array()));
advmultiselect.php git://pkgs.fedoraproject.org/php-pear-HTML-QuickForm-advmultiselect | PHP | 1,178 lines
1<?php
2/**
31 *
32 * PHP versions 4 and 5
33 *
37 * @copyright 2005-2009 Laurent Laville
38 * @license   http://www.opensource.org/licenses/bsd-license.php  BSD
39 * @version   CVS: $Id: advmultiselect.php,v 1.36 2009/04/05 07:03:39 farell Exp $
39 * @version   CVS: $Id: advmultiselect.php,v 1.36 2009/04/05 07:03:39 farell Exp $
40 * @link      http://pear.php.net/package/HTML_QuickForm_advmultiselect
41 * @since     File available since Release 0.4.0
43
44require_once 'HTML/QuickForm/select.php';
45
64 * @copyright 2005-2009 Laurent Laville
65 * @license   http://www.opensource.org/licenses/bsd-license.php  BSD
66 * @version   Release: @package_version@
Table.php git://pkgs.fedoraproject.org/php-pear-HTML-Table | PHP | 1,047 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
13 * - Handles col and rowspans.
14 * - PHP code is shorter, easier to read and to maintain.
15 * - Tables options can be reused.
17 * For auto filling of data and such then check out
18 * http://pear.php.net/package/HTML_Table_Matrix
19 *
19 *
20 * PHP versions 4 and 5
21 *
25 *                          Bertrand Mansion <bmansion@mamasam.com>,
26 *                          Mark Wiesemann <wiesemann@php.net>
27 * All rights reserved.
57 * @author     Bertrand Mansion <bmansion@mamasam.com>
58 * @license    http://www.opensource.org/licenses/bsd-license.php New BSD License
59 * @version    CVS: $Id: Table.php 297540 2010-04-05 19:58:39Z wiesemann $
QueueServiceFunctionalTest.php https://hg.codeplex.com/bukuphpjs | PHP | 1,413 lines
18 * @package   Tests\Functional\WindowsAzure\Queue
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
902                $this->assertEquals(TestResources::STATUS_BAD_REQUEST, $e->getCode(), 'getCode');
903            } else if (!is_null($options->getVisibilityTimeoutInSeconds()) && !is_null($options->getTimeToLiveInSeconds()) && $options->getVisibilityTimeoutInSeconds() > 0 && $options->getTimeToLiveInSeconds() <= $options->getVisibilityTimeoutInSeconds()) {
904                $this->assertEquals(TestResources::STATUS_BAD_REQUEST, $e->getCode(), 'getCode');
1167        // Default is 1 message
1168        $effectiveNumOfMessages = (is_null($options) || is_null($options->getNumberOfMessages()) ? 1 : $options ->getNumberOfMessages());
1169        $effectiveNumOfMessages = ($effectiveNumOfMessages < 0 ? 0 : $effectiveNumOfMessages);
1171        // Default is 30 seconds
1172        $effectiveVisTimeout = (is_null($options) || is_null($options->getVisibilityTimeoutInSeconds()) ? 30 : $options ->getVisibilityTimeoutInSeconds());
1173        $effectiveVisTimeout = ($effectiveVisTimeout < 0 ? 0 : $effectiveVisTimeout);
1284        // Default is 1 message
1285        $effectiveNumOfMessages = (is_null($options) || is_null($options->getNumberOfMessages()) ? 1 : $options ->getNumberOfMessages());
1286        $effectiveNumOfMessages = ($effectiveNumOfMessages < 0 ? 0 : $effectiveNumOfMessages);
functions_interface.inc https://bitbucket.org/fernandofig/picti.git | PHP | 601 lines
190						"LIST_MINIS"     => "",
191						"LNK_CARRO_ANT"  => (is_null($lnk_carro_ant)?'<img src="arlesimages/in_tsign_solid_black_previous_car.gif" align="absmiddle" border="0" height="30" width="73">':'<a href="zoom.php?id='.$lnk_carro_ant.'"><img src="arlesimages/tsign_solid_black_previous_car.gif" align="absmiddle" border="0" height="30" width="73" alt="[&lt; OFERTA ANTERIOR]" title="OFERTA ANTERIOR"></a>'),
192						"LNK_CARRO_PROX" => (is_null($lnk_carro_prox)?'<img src="arlesimages/in_tsign_solid_black_next_car.gif" align="absmiddle" border="0" height="30" width="73">':'<a href="zoom.php?id='.$lnk_carro_prox.'"><img src="arlesimages/tsign_solid_black_next_car.gif" align="absmiddle" border="0" height="30" width="73" alt="[PRгXIMA OFERTA &gt;]" title="PRгXIMA OFERTA"></a>'),
243							"LIST_MINIS"     => listaFotosZoom($id, $idFoto),
244							"LNK_CARRO_ANT"  => (is_null($lnk_carro_ant)?'<img src="arlesimages/in_tsign_solid_black_previous_car.gif" align="absmiddle" border="0" height="30" width="73">':'<a href="zoom.php?id='.$lnk_carro_ant.'"><img src="arlesimages/tsign_solid_black_previous_car.gif" align="absmiddle" border="0" height="30" width="73" alt="[&lt; OFERTA ANTERIOR]" title="OFERTA ANTERIOR"></a>'),
245							"LNK_CARRO_PROX" => (is_null($lnk_carro_prox)?'<img src="arlesimages/in_tsign_solid_black_next_car.gif" align="absmiddle" border="0" height="30" width="73">':'<a href="zoom.php?id='.$lnk_carro_prox.'"><img src="arlesimages/tsign_solid_black_next_car.gif" align="absmiddle" border="0" height="30" width="73" alt="[PRгXIMA OFERTA &gt;]" title="PRгXIMA OFERTA"></a>'),
246							"LNK_FOTO_ANT"   => (is_null($lnk_foto_ant)?'<img src="arlesimages/in_tsign_solid_black_previous.gif" align="absmiddle" border="0" height="30" width="30">':'<a href="zoom.php?id='.$id.'&idFoto='.$lnk_foto_ant.'"><img src="arlesimages/tsign_solid_black_previous.gif" align="absmiddle" border="0" height="30" width="30" alt="[&lt; FOTO ANTERIOR]" title="FOTO ANTERIOR"></a>'),
247							"LNK_FOTO_PROX"  => (is_null($lnk_foto_prox)?'<img src="arlesimages/in_tsign_solid_black_next.gif" align="absmiddle" border="0" height="30" width="30">':'<a href="zoom.php?id='.$id.'&idFoto='.$lnk_foto_prox.'"><img src="arlesimages/tsign_solid_black_next.gif" align="absmiddle" border="0" height="30" width="30" alt="[PRгXIMA FOTO &gt;]" title="PRгXIMA FOTO"></a>'),
248							"LNK_ESTOQUE"    => '<a href="estoque.php"><img src="arlesimages/tsign_solid_black_index.gif" border="0" height="30" width="30" alt="ESTOQUE" title="RETORNAR AO CATСLOGO DE ESTOQUE"></a>'
262						"LNK_CARRO_ANT"  => (is_null($lnk_carro_ant)?'<img src="arlesimages/in_tsign_solid_black_previous_car.gif" align="absmiddle" border="0" height="30" width="73">':'<a href="zoom.php?id='.$lnk_carro_ant.'"><img src="arlesimages/tsign_solid_black_previous_car.gif" align="absmiddle" border="0" height="30" width="73" alt="[&lt; OFERTA ANTERIOR]" title="OFERTA ANTERIOR"></a>'),
263						"LNK_CARRO_PROX" => (is_null($lnk_carro_prox)?'<img src="arlesimages/in_tsign_solid_black_next_car.gif" align="absmiddle" border="0" height="30" width="73">':'<a href="zoom.php?id='.$lnk_carro_prox.'"><img src="arlesimages/tsign_solid_black_next_car.gif" align="absmiddle" border="0" height="30" width="73" alt="[PRгXIMA OFERTA &gt;]" title="PRгXIMA OFERTA"></a>'),
264						"LNK_FOTO_ANT"   => "&nbsp;",
392	<tr>
393		<td colspan="2" align="right"><? if($acao=="editar") { ?><input type="Hidden" name="idedit" value="<?=$id?>"><input type="Button" name="volta" value="<< Voltar" onclick="javascript:location.href='index.php';"> <input type="Button" name="delete" value="Apagar este carro e fotos" onclick="javascript:if(confirm('As Fotos do carro tambщm serуo excluэdas, e esta operaчуo nуo pode\nser revertida. Deseja mesmo continuar?')) location.href='salva.php?acao=deletaCarro&delid[]=<?=$id?>';"> <? } ?><input type="Submit" value="<?=($acao!="editar" ? "Incluir" : "Salvar")?>"></td>
394	</tr>
ca_object_representations.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 1,170 lines
1<?php
2/** ---------------------------------------------------------------------
35   */
36require_once(__CA_LIB_DIR__."/ca/IBundleProvider.php");
37require_once(__CA_LIB_DIR__."/ca/BundlableLabelableBaseModelWithAttributes.php");
37require_once(__CA_LIB_DIR__."/ca/BundlableLabelableBaseModelWithAttributes.php");
38require_once(__CA_MODELS_DIR__."/ca_object_representation_labels.php");
39require_once(__CA_MODELS_DIR__."/ca_representation_annotations.php");
39require_once(__CA_MODELS_DIR__."/ca_representation_annotations.php");
40require_once(__CA_MODELS_DIR__."/ca_representation_annotation_labels.php");
41require_once(__CA_MODELS_DIR__."/ca_object_representation_multifiles.php");
50				'IDENTITY' => true, 'DISPLAY_WIDTH' => 10, 'DISPLAY_HEIGHT' => 1,
51				'IS_NULL' => false, 
52				'DEFAULT' => '',
904 		$vs_limit_sql = '';
905 		if (!is_null($pn_start) && !is_null($pn_num_files)) {
906 			if (($pn_start >= 0) && ($pn_num_files >= 1)) {
Cielo.php https://bitbucket.org/imasters/cielo.git | PHP | 431 lines
1<?php
2/**
7
8require_once 'dso/cielo/PaymentProduct.php';
9require_once 'dso/cielo/nodes/PaymentMethodNode.php';
9require_once 'dso/cielo/nodes/PaymentMethodNode.php';
10require_once 'dso/cielo/nodes/OrderDataNode.php';
11require_once 'dso/cielo/nodes/EcDataNode.php';
11require_once 'dso/cielo/nodes/EcDataNode.php';
12require_once 'dso/cielo/nodes/CardDataNode.php';
13require_once 'dso/cielo/request/AuthorizationRequest.php';
13require_once 'dso/cielo/request/AuthorizationRequest.php';
14require_once 'dso/cielo/request/TransactionRequest.php';
15require_once 'dso/cielo/request/CancellationRequest.php';
15require_once 'dso/cielo/request/CancellationRequest.php';
16require_once 'dso/cielo/request/CaptureRequest.php';
17require_once 'dso/cielo/request/QueryRequest.php';
gradelib.php https://bitbucket.org/ngmares/moodle.git | PHP | 1,447 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
30require_once($CFG->libdir . '/grade/grade_category.php');
31require_once($CFG->libdir . '/grade/grade_item.php');
32require_once($CFG->libdir . '/grade/grade_grade.php');
32require_once($CFG->libdir . '/grade/grade_grade.php');
33require_once($CFG->libdir . '/grade/grade_scale.php');
34require_once($CFG->libdir . '/grade/grade_outcome.php');
71
72    if (is_null($courseid) or is_null($itemtype)) {
73        debugging('Missing courseid or itemtype');
238
239        if (is_null($grade_grade)) {
240            if (count($grades) == 0) {
986            //dont include default empty grades created when activities are created
987            if (!is_null($oldgrade->finalgrade) || !is_null($oldgrade->feedback)) {
988                $recoveredgrades = true;
Slim.php https://bitbucket.org/christianvermeulen/webservices.git | PHP | 1,230 lines
1<?php
2/**
2/**
3 * Slim - a micro PHP 5 framework
4 *
33
34//This determines which errors are reported by PHP. By default, all
35//errors (including E_STRICT) are reported.
44
45//This tells PHP to auto-load classes using Slim's autoloader; this will
46//only auto-load a class file located in the same directory as Slim.php
47//whose file name (excluding the final dot and extension) is the same
48//as its class name (case-sensitive). For example, "View.php" will be
49//loaded when Slim uses the "View" class for the first time.
51
52//PHP 5.3 will complain if you don't set a timezone. If you do not
53//specify your own timezone before requiring Slim, this tells PHP to use UTC.
jpgraph.php https://bitbucket.org/tedbundyjr/phpexcel.git | PHP | 831 lines
21 *
22 * @category	PHPExcel
23 * @package		PHPExcel_Chart
23 * @package		PHPExcel_Chart
24 * @copyright	Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
25 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
29
30require_once(PHPExcel_Settings::getChartRendererPath().'/jpgraph.php');
31
37 * @package		PHPExcel_Chart_Renderer
38 * @copyright	Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
39 */
237		$yAxisLabel = $this->_chart->getYAxisLabel();
238		if (!is_null($yAxisLabel)) {
239			$title = $this->_getCaption($yAxisLabel);
Slim.php https://bitbucket.org/yrs2012/profero-web.git | PHP | 1,230 lines
1<?php
2/**
2/**
3 * Slim - a micro PHP 5 framework
4 *
33
34//This determines which errors are reported by PHP. By default, all
35//errors (including E_STRICT) are reported.
44
45//This tells PHP to auto-load classes using Slim's autoloader; this will
46//only auto-load a class file located in the same directory as Slim.php
47//whose file name (excluding the final dot and extension) is the same
48//as its class name (case-sensitive). For example, "View.php" will be
49//loaded when Slim uses the "View" class for the first time.
51
52//PHP 5.3 will complain if you don't set a timezone. If you do not
53//specify your own timezone before requiring Slim, this tells PHP to use UTC.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21