PageRenderTime 1718ms queryTime 186ms sortTime 837ms getByIdsTime 47ms findMatchingLines 50ms

100+ results results for 'php pos' (1718 ms)

Not the results you expected?
category.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 394 lines
                    
76		
                    
77		$mainframe->redirect( 'index.php?option=com_easyblog&view=categories');
                    
78		exit;
                    
115		{
                    
116			$post				= JRequest::get( 'post' );
                    
117
                    
129
                    
130			if( !isset( $post['created_by'] ) || empty( $post['created_by'] ) )
                    
131			{
                    
188		{
                    
189			$mainframe->redirect( 'index.php?option=com_easyblog&view=category' , $message , $type );	
                    
190			$mainframe->close();
                    
191		}
                    
192		$mainframe->redirect( 'index.php?option=com_easyblog&view=categories' , $message , $type );
                    
193	}
                    
                
wp-settings.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 323 lines
                    
5 *
                    
6 * Allows for some configuration in wp-config.php (see default-constants.php)
                    
7 *
                    
61if ( WP_CACHE )
                    
62	WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' );
                    
63
                    
121require( ABSPATH . WPINC . '/author-template.php' );
                    
122require( ABSPATH . WPINC . '/post.php' );
                    
123require( ABSPATH . WPINC . '/post-template.php' );
                    
123require( ABSPATH . WPINC . '/post-template.php' );
                    
124require( ABSPATH . WPINC . '/post-thumbnail-template.php' );
                    
125require( ABSPATH . WPINC . '/category.php' );
                    
315 *
                    
316 * AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for
                    
317 * users not logged in.
                    
                
shortcodes.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 334 lines
                    
1<?php
                    
2/**
                    
89 *
                    
90 * @param string $tag Shortcode tag to be searched in post content.
                    
91 * @param callable $func Hook to run when shortcode is found.
                    
134 * without any filtering. This might cause issues when plugins are disabled but
                    
135 * the shortcode will still show up in the post or content.
                    
136 *
                    
                
string.rst https://gitlab.com/albertkeba/docs | ReStructuredText | 300 lines
                    
42
                    
43.. php:staticmethod:: tokenize($data, $separator = ',', $leftBound = '(', $rightBound = ')')
                    
44
                    
50
                    
51        $data = "cakephp 'great framework' php";
                    
52        $result = String::tokenize($data, ' ', "'", "'");
                    
53        // result contains
                    
54        array('cakephp', "'great framework'", 'php');
                    
55
                    
63
                    
64.. php:staticmethod:: cleanInsert($string, $options = array())
                    
65
                    
141
                    
142.. php:method:: stripLinks($text)
                    
143
                    
                
functions.inc.php https://gitlab.com/boxnia/NFU_MOVIL | PHP | 346 lines
                    
1<?php
                    
2
                    
129        }
                    
130        /* 	if(!$resultado['password'] || $resultado['password']!=$_POST['password2'] ){
                    
131          $error['password'] = 'Password debe tener de 6 a 12 caracteres y las dos contrasenyas deben ser iguales';
                    
131          $error['password'] = 'Password debe tener de 6 a 12 caracteres y las dos contrasenyas deben ser iguales';
                    
132          $resultado['password'] = $_POST['password'];
                    
133          $valido = false;
                    
270  $errores = array('usuario' => $usuario, 'password' => $password);
                    
271  $datos = array('usuario' => $_POST['nombre'], 'password' => $_POST['password']);
                    
272
                    
                
jquery.mask.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 281 lines
                    
85                else if (cSelStart || cSelStart === '0') {
                    
86                    pos = cSelStart;
                    
87                }
                    
88                
                    
89                return pos;
                    
90            },
                    
95                    ctrl.focus();
                    
96                    ctrl.setSelectionRange(pos,pos);
                    
97                } else if (ctrl.createTextRange) {
                    
99                    range.collapse(true);
                    
100                    range.moveEnd('character', pos);
                    
101                    range.moveStart('character', pos);
                    
128                    
                    
129                    var changeCaret, caretPos = p.getCaret();
                    
130                    if (caretPos < p.val().length) {
                    
                
multiple-featured-images.php https://gitlab.com/webkod3r/tripolis | PHP | 374 lines
                    
91		public function kd_admin_init() {		
                    
92			if( strstr($_SERVER['REQUEST_URI'], 'wp-admin/post-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/post.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/media-upload.php')) {
                    
93				wp_enqueue_script(
                    
195
                    
196			if( is_null( $calling_post ) || $calling_post->post_type != $this->post_type ) {
                    
197				return $form_fields;
                    
229
                    
230			$post_ID = intval( $_POST['post_id'] );
                    
231
                    
238			if( $thumb_id == '-1' ) {
                    
239				delete_post_meta( $post_ID, $this->post_meta_key );
                    
240
                    
247				if( !empty( $thumb_html ) ) {
                    
248					update_post_meta( $post_ID, $this->post_meta_key, $thumb_id );
                    
249
                    
                
Alignment.php https://gitlab.com/ptisky/API_prestashop | PHP | 409 lines
                    
4 *
                    
5 * Copyright (c) 2006 - 2013 PHPExcel
                    
6 *
                    
22 * @package	PHPExcel_Style
                    
23 * @copyright  Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license	http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package	PHPExcel_Style
                    
34 * @copyright  Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable
                    
37{
                    
143	 *		array(
                    
144	 *			'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
                    
145	 *			'vertical'   => PHPExcel_Style_Alignment::VERTICAL_CENTER,
                    
                
behat_config_manager.php https://bitbucket.org/kudutest/moodlegit.git | PHP | 279 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
                    
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    
12// GNU General Public License for more details.
                    
27
                    
28require_once(__DIR__ . '/../lib.php');
                    
29require_once(__DIR__ . '/behat_command.php');
                    
29require_once(__DIR__ . '/behat_command.php');
                    
30require_once(__DIR__ . '/../../testing/classes/tests_finder.php');
                    
31
                    
131            $diriterator = new DirectoryIterator($componentpath . self::get_behat_tests_path());
                    
132            $regite = new RegexIterator($diriterator, '|behat_.*\.php$|');
                    
133
                    
133
                    
134            // All behat_*.php inside behat_config_manager::get_behat_tests_path() are added as steps definitions files.
                    
135            foreach ($regite as $file) {
                    
                
instances.php https://bitbucket.org/kudutest/moodlegit.git | PHP | 244 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
                    
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    
12// GNU General Public License for more details.
                    
25
                    
26require('../config.php');
                    
27
                    
44
                    
45$PAGE->set_url('/enrol/instances.php', array('id'=>$course->id));
                    
46$PAGE->set_pagelayout('admin');
                    
57            $order = array_flip($order);
                    
58            $pos = $order[$instanceid];
                    
59            if ($pos > 0) {
                    
59            if ($pos > 0) {
                    
60                $switch = $pos - 1;
                    
61                $resorted = array_values($instances);
                    
                
jplayer.blue.monday.css https://github.com/kawazrepos/Kommonz.git | CSS | 448 lines
                    
8 * Dual licensed under the MIT and GPL licenses.
                    
9 *  - http://www.opensource.org/licenses/mit-license.php
                    
10 *  - http://www.gnu.org/copyleft/gpl.html
                    
39div.jp-interface {
                    
40	position: relative;
                    
41	background-color:#eee;
                    
65div.jp-interface ul.jp-controls li {
                    
66	/* position: absolute; */
                    
67	display:inline;
                    
69div.jp-interface ul.jp-controls a {
                    
70	position: absolute;
                    
71	overflow:hidden;
                    
197div.jp-progress {
                    
198	position: absolute;
                    
199	overflow:hidden;
                    
                
SimpleHeaderSet.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 387 lines
                    
1<?php
                    
2
                    
355        $lowerB = strtolower($b);
                    
356        $aPos = array_key_exists($lowerA, $this->_order)
                    
357            ? $this->_order[$lowerA]
                    
358            : -1;
                    
359        $bPos = array_key_exists($lowerB, $this->_order)
                    
360            ? $this->_order[$lowerB]
                    
362
                    
363        if ($aPos == -1) {
                    
364            return 1;
                    
364            return 1;
                    
365        } elseif ($bPos == -1) {
                    
366            return -1;
                    
368
                    
369        return ($aPos < $bPos) ? -1 : 1;
                    
370    }
                    
                
filing_costs.php https://bitbucket.org/amitholkar/zenfile-18-05.git | PHP | 198 lines
                    
39        ?>
                    
40        <div class="finance_country <?php echo $status ?> custom_accordion" ref="filing_cost_country_<?php echo $invoice->id ?>"><?php echo $invoice->country ?></div>
                    
41
                    
96                            <input type="hidden" name="additional_fee_id[]" value="<?php echo $additional_fee->additional_fee_id ?>">
                    
97                            <?php echo $currency_sign ?><input title="<?php echo $additional_fee->additional_fee_description_by_fa ?>" name="additional_fee_corrected_by_pm[]" value="<?php echo $additional_fee_value ?>" type="text"/>
                    
98                        </div>
                    
116                        <?php foreach($invoice->invoices as $file) { ?>
                    
117                            <a href="<?php echo base_url() ?>cases/download_file/<?php echo $file->file_id ?>"><?php echo $file->filename ?></a>
                    
118                        <?php } ?>
                    
169                    <div class="finance_input float_left">
                    
170                        <?php echo $currency_sign ?><input name="estimated_by_pm_additional_fee" value="<?php echo $estimated_by_pm_additional_fee ?>" readonly="true" type="text"/>
                    
171                    </div>
                    
178                    <div class="finance_input float_left">
                    
179                        <?php echo $currency_sign ?><input readonly="true" value="<?php echo $estimate_summ ?>" type="text"/>
                    
180                    </div>
                    
                
wp-cache-f091d5ab40590bc01ee8ea7afc5372b1.html https://gitlab.com/endomorphosis/reservationtelco | HTML | 371 lines
                    
29<script type='text/javascript' src='http://localhost:8888/reservation-telephone-company/wp-content/plugins/gs-presentation/js/gs-presentation.js?ver=3.0-RC1-15112'></script>
                    
30<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://localhost:8888/reservation-telephone-company/xmlrpc.php?rsd" />
                    
31<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://localhost:8888/reservation-telephone-company/wp-includes/wlwmanifest.xml" /> 
                    
38    .calnk a:hover {
                    
39         background-position:0 0;
                    
40         text-decoration:none;  
                    
61        display:block;
                    
62        position:absolute;
                    
63        padding:5px; 
                    
297		<div class="row-2-col-2-row-2">
                    
298				<!-- This posts the primary page content for "Pages" and "Posts" -->
                    
299		
                    
                
WCCitation.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 326 lines
                    
1<?php
                    
2/**
                    
9
                    
10class WCCitationPosition extends WCEnum {
                    
11	const first           = 0;
                    
23 * and constructs the appropriate WCStyle child based on the referencing style
                    
24 * and citation type. Ultimately, a call to WCCitation::composeCitation()
                    
25 * will output the fully-formatted citation.
                    
37	/**
                    
38	 * Position of the citation
                    
39	 * (E.g., first, subsequent, etc.)
                    
39	 * (E.g., first, subsequent, etc.)
                    
40	 * @var WCCitationPosition
                    
41	 */
                    
98		$this->reference = $reference;
                    
99		$this->citationPosition = new WCCitationPosition();
                    
100
                    
                
ValidationStatistics_body.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 307 lines
                    
1<?php
                    
2
                    
75		$wgOut->addHTML( "<tr>\n" );
                    
76		// Headings (for a positive grep result):
                    
77		// validationstatistics-ns, validationstatistics-total, validationstatistics-stable,
                    
187			global $wgPhpCli;
                    
188			$ext = !empty( $wgPhpCli ) ? $wgPhpCli : 'php';
                    
189			$path = wfEscapeShellArg( dirname( __FILE__ ) . '/../maintenance/updateStats.php' );
                    
                
ajax.function.php https://github.com/ardowz/Thesis-SideB.git | PHP | 302 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * @version $Id: ajax.function.php 14684 2011-06-11 06:32:40Z remi $
                    
4 -------------------------------------------------------------------------
                    
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
                    
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    
23 GNU General Public License for more details.
                    
55   if (!$use_ajax) {
                    
56      // Save post datas if exists
                    
57      $oldpost = array();
                    
57      $oldpost = array();
                    
58      if (isset($_POST) && count($_POST)) {
                    
59         $oldpost = $_POST;
                    
65      if (count($oldpost)) {
                    
66         $_POST = $oldpost;
                    
67      }
                    
                
Font.php https://gitlab.com/adamlwalker/generatedata | PHP | 640 lines
                    
22 * @package	PHPExcel_Style
                    
23 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license	http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package	PHPExcel_Style
                    
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_Style_Font implements PHPExcel_IComparable
                    
37{
                    
153			$this->_strikethrough	= NULL;
                    
154			$this->_color			= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional);
                    
155		} else {
                    
155		} else {
                    
156			$this->_color	= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor);
                    
157		}
                    
                
Pager.php https://github.com/cawago/ci_campusync_auth.git | PHP | 576 lines
                    
1<?php
                    
2/*
                    
7 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
                    
8 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
                    
9 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
                    
14 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
                    
15 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                    
16 *
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
27 * @subpackage  Pager
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @version     $Revision$
                    
29 * @version     $Revision$
                    
30 * @link        www.phpdoctrine.org
                    
31 * @since       0.9
                    
                
sweetalert2.css https://gitlab.com/ptisky/API_prestashop | CSS | 595 lines
                    
8 * It is also available through the world-wide-web at this URL:
                    
9 * http://opensource.org/licenses/afl-3.0.php
                    
10 * If you did not receive a copy of the license and are unable to
                    
21 * @copyright 2015-2016 Cubyn
                    
22 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23 */
                    
25  background-color: rgba(0, 0, 0, 0.4);
                    
26  position: fixed;
                    
27  left: 0;
                    
39  text-align: center;
                    
40  position: fixed;
                    
41  left: 50%;
                    
54    text-transform: none;
                    
55    position: relative;
                    
56    margin: 0;
                    
                
VarCloner.php https://gitlab.com/Sigpot/AirSpot | PHP | 324 lines
                    
1<?php
                    
2
                    
27        $useExt = $this->useExt;
                    
28        $i = 0;                         // Current iteration position in $queue
                    
29        $len = 1;                       // Length of $queue
                    
29        $len = 1;                       // Length of $queue
                    
30        $pos = 0;                       // Number of cloned items past the first level
                    
31        $refsCounter = 0;               // Hard references counter
                    
61            $indexed = true;            // Whether the currently iterated array is numerically indexed or not
                    
62            $j = -1;                    // Position in the currently iterated array
                    
63            $fromObjCast = array_keys($queue[$i]);
                    
148                    case 'object':
                    
149                        if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) {
                    
150                            $stub = new Stub();
                    
164                                } else {
                    
165                                    $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE));
                    
166                                }
                    
                
notice.php https://github.com/mhoofman/wordpress-heroku.git | PHP | 102 lines
                    
1<?php if ( $type == 'plugin' ) :?>
                    
2<div class="updated" style="padding: 0; margin: 0; border: none; background: none;">
                    
3	<style type="text/css">
                    
4.akismet_activate{min-width:825px;border:1px solid #4F800D;padding:5px;margin:15px 0;background:#83AF24;background-image:-webkit-gradient(linear,0% 0,80% 100%,from(#83AF24),to(#4F800D));background-image:-moz-linear-gradient(80% 100% 120deg,#4F800D,#83AF24);-moz-border-radius:3px;border-radius:3px;-webkit-border-radius:3px;position:relative;overflow:hidden}.akismet_activate .aa_a{position:absolute;top:-5px;right:10px;font-size:140px;color:#769F33;font-family:Georgia, "Times New Roman", Times, serif;z-index:1}.akismet_activate .aa_button{font-weight:bold;border:1px solid #029DD6;border-top:1px solid #06B9FD;font-size:15px;text-align:center;padding:9px 0 8px 0;color:#FFF;background:#029DD6;background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#029DD6),to(#0079B1));background-image:-moz-linear-gradient(0% 100% 90deg,#0079B1,#029DD6);-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px}.akismet_activate .aa_button:hover{text-decoration:none !important;border:1px solid #029DD6;border-bottom:1px solid #00A8EF;font-size:15px;text-align:center;padding:9px 0 8px 0;color:#F0F8FB;background:#0079B1;background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#0079B1),to(#0092BF));background-image:-moz-linear-gradient(0% 100% 90deg,#0092BF,#0079B1);-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px}.akismet_activate .aa_button_border{border:1px solid #006699;-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px;background:#029DD6;background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#029DD6),to(#0079B1));background-image:-moz-linear-gradient(0% 100% 90deg,#0079B1,#029DD6)}.akismet_activate .aa_button_container{cursor:pointer;display:inline-block;background:#DEF1B8;padding:5px;-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px;width:266px}.akismet_activate .aa_description{position:absolute;top:22px;left:285px;margin-left:25px;color:#E5F2B1;font-size:15px;z-index:1000}.akismet_activate .aa_description strong{color:#FFF;font-weight:normal}
                    
5	</style>
                    
5	</style>
                    
6	<form name="akismet_activate" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="POST">
                    
7		<div class="akismet_activate">
                    
10				<div class="aa_button_border">
                    
11					<div class="aa_button"><?php esc_html_e('Activate your Akismet account', 'akismet');?></div>
                    
12				</div>
                    
26<?php elseif ( $type == 'version' ) :?>
                    
27<div id="akismet-warning" class="updated fade"><p><strong><?php printf( esc_html__('Akismet %s requires WordPress 3.0 or higher.', 'akismet'), AKISMET_VERSION);?></strong> <?php printf(__('Please <a href="%1$s">upgrade WordPress</a> to a current version, or <a href="%2$s">downgrade to version 2.4 of the Akismet plugin</a>.', 'akismet'), 'https://codex.wordpress.org/Upgrading_WordPress', 'https://wordpress.org/extend/plugins/akismet/download/');?></p></div>
                    
28<?php elseif ( $type == 'alert' ) :?>
                    
42	<h3 class="key-status failed"><?php esc_html_e('Network functions are disabled.', 'akismet'); ?></h3>
                    
43	<p class="description"><?php printf( __('Your web host or server administrator has disabled PHP&#8217;s <code>gethostbynamel</code> functions.  <strong>Akismet cannot work correctly until this is fixed.</strong>  Please contact your web host or firewall administrator and give them <a href="%s" target="_blank">this information about Akismet&#8217;s system requirements</a>.', 'akismet'), 'http://blog.akismet.com/akismet-hosting-faq/'); ?></p>
                    
44</div>
                    
                
rewrite.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 425 lines
                    
88		if ($wp_rewrite->using_permalinks() && $this->options['usePermalinks'] ) {
                    
89			$post = &get_post(get_the_ID());
                    
90
                    
113
                    
114			// 1. Post / Page url + main slug
                    
115            $url = trailingslashit ( get_permalink ($post->ID) ) . $this->slug; 
                    
144		} else {			
                    
145			// we need to add the page/post id at the start_page otherwise we don't know which gallery is clicked
                    
146			if (is_home())
                    
211		//TODO: I could parse for the Picture name , gallery etc, but this increase the queries
                    
212		//TODO: Class nggdb need to cache the query for the nggfunctions.php
                    
213
                    
265            // XML request
                    
266            $this->slug . '/slideshow/([0-9]+)/?$' => 'index.php?imagerotator=true&gid=$matches[1]'
                    
267		);  
                    
                
Particle3DTest.cpp https://github.com/dumganhar/cocos2d-x.git | C++ | 480 lines
                    
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
                    
20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
                    
21 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
                    
69    _camera = Camera::createPerspective(30.0f, size.width / size.height, 1.0f, 1000.0f);
                    
70    _camera->setPosition3D(Vec3(0.0f, 0.0f, 100.0f));
                    
71    _camera->lookAt(Vec3(0.0f, 0.0f, 0.0f), Vec3(0.0f, 1.0f, 0.0f));
                    
78    listener->onTouchesEnded = CC_CALLBACK_2(Particle3DTestDemo::onTouchesEnded, this);
                    
79    _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this);
                    
80
                    
84    _particleLab->retain();
                    
85    _particleLab->setPosition(Vec2(0.0f, size.height / 6.0f));
                    
86    _particleLab->setAnchorPoint(Vec2(0.0f, 0.0f));
                    
105        _angle -= CC_DEGREES_TO_RADIANS(delta.x);
                    
106        _camera->setPosition3D(Vec3(100.0f * sinf(_angle), 0.0f, 100.0f * cosf(_angle)));
                    
107        _camera->lookAt(Vec3(0.0f, 0.0f, 0.0f), Vec3(0.0f, 1.0f, 0.0f));
                    
                
paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/sg | PHP | 148 lines
                    
1<?php
                    
2/**
                    
56				{
                    
57					$paypal['s2member_log'][] = 's2Member `txn_type` identified as ( `web_accept` ) for Specific Post/Page Access.';
                    
58
                    
73
                    
74						$paypal['s2member_log'][] = 'Transient Tracking Cookie set on ( `web_accept` ) for Specific Post/Page Access.';
                    
75
                    
88															{
                    
89																$paypal['s2member_log'][] = 'Storing Specific Post/Page Tracking Codes into a Transient Queue. These will be processed on-site.';
                    
90																set_transient('s2m_'.md5('s2member_transient_sp_tracking_codes_'.$paypal['txn_id']), $code, 43200);
                    
98						{
                    
99							$paypal['s2member_log'][] = 'Redirecting Customer immediately to the Specific Post/Page.';
                    
100
                    
119					{
                    
120						$paypal['s2member_log'][] = 'Unable to generate Specific Post/Page Access Link. Does your Leading Post/Page still exist?';
                    
121
                    
                
ibase_driver.php https://gitlab.com/carlosambiado89/IntranetPlanEvalWeb | PHP | 396 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
22 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
                    
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
                    
24 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
                    
283			WHERE "rfields"."RDB$RELATION_NAME" = '.$this->escape($table).'
                    
284			ORDER BY "rfields"."RDB$FIELD_POSITION"';
                    
285
                    
369		// Limit clause depends on if Interbase or Firebird
                    
370		if (stripos($this->version(), 'firebird') !== FALSE)
                    
371		{
                    
                
wp-settings.php https://github.com/vidor/vidor.me.git | PHP | 326 lines
                    
5 *
                    
6 * Allows for some configuration in wp-config.php (see default-constants.php)
                    
7 *
                    
61if ( WP_CACHE )
                    
62	WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' );
                    
63
                    
120require( ABSPATH . WPINC . '/author-template.php' );
                    
121require( ABSPATH . WPINC . '/post.php' );
                    
122require( ABSPATH . WPINC . '/post-template.php' );
                    
291// Load any template functions the theme supports.
                    
292require_if_theme_supports( 'post-thumbnails', ABSPATH . WPINC . '/post-thumbnail-template.php' );
                    
293
                    
317 *
                    
318 * AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for
                    
319 * users not logged in.
                    
                
Observer.php https://github.com/rgranadino/magento-mirror.git | PHP | 282 lines
                    
46
                    
47        if (($items = $request->getPost('bundle_options')) && !$product->getCompositeReadonly()) {
                    
48            $product->setBundleOptionsData($items);
                    
50
                    
51        if (($selections = $request->getPost('bundle_selections')) && !$product->getCompositeReadonly()) {
                    
52            $product->setBundleSelectionsData($selections);
                    
64
                    
65        $product->setCanSaveBundleSelections((bool)$request->getPost('affect_bundle_product_selections') && !$product->getCompositeReadonly());
                    
66
                    
205                    'required' => $option->getData('required'),
                    
206                    'position' => $option->getData('position'),
                    
207                    'type' => $option->getData('type'),
                    
213                    'product_id' => $selection->getProductId(),
                    
214                    'position' => $selection->getPosition(),
                    
215                    'is_default' => $selection->getIsDefault(),
                    
                
Mail.php https://github.com/magikcypress/bbbweb.git | PHP | 270 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
27 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
                    
28 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
                    
29 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
                    
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
                    
35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                    
36 *
                    
40 * @copyright   1997-2010 Chuck Hagenbuch
                    
41 * @license     http://opensource.org/licenses/bsd-license.php New BSD License
                    
42 * @version     CVS: $Id: Mail.php 294747 2010-02-08 08:18:33Z clockwerx $
                    
42 * @version     CVS: $Id: Mail.php 294747 2010-02-08 08:18:33Z clockwerx $
                    
43 * @link        http://pear.php.net/package/Mail/
                    
44 */
                    
                
BannerServiceImpl.php https://bitbucket.org/blackriver/openx.git | PHP | 344 lines
                    
1<?php
                    
2
                    
17| but WITHOUT ANY WARRANTY; without even the implied warranty of            |
                    
18| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             |
                    
19| GNU General Public License for more details.                              |
                    
24+---------------------------------------------------------------------------+
                    
25$Id: BannerServiceImpl.php 81772 2012-09-11 00:07:29Z chris.nutting $
                    
26*/
                    
34// Base class BaseLogonService
                    
35require_once MAX_PATH . '/www/api/v1/common/BaseServiceImpl.php';
                    
36
                    
37// Banner Dll class
                    
38require_once MAX_PATH . '/lib/OA/Dll/Banner.php';
                    
39
                    
                
index.php https://gitlab.com/gustCL/syscar | PHP | 188 lines
                    
1<?php
                    
2require_once ('head.php');
                    
19    <!-- subtTitulo -->
                    
20    <div class="page-header position-relative">
                    
21        <div class="header-title">
                    
52                            <div class="widget">
                    
53                                <form  method="post" class="form-horizontal">
                    
54                                    <div class="widget-body">
                    
67                                             <td>
                    
68                                                 <a class="btn btn-warning shiny"  href="nuevo_producto.php" >
                    
69                                                        <i class="fa fa-plus">
                    
110                                                <tbody>
                    
111                                                    <?php
                    
112
                    
137                                                                <td>                          
                    
138                                                                    <a href="ver_producto.php?id=<?= $idP ?>" class="btn btn-default btn-xs blue" ><i class="fa fa-eye"></i> Ver</a>
                    
139                                                                    <a href="mod_producto.php?id=<?= $idP ?>"   class="btn btn-default btn-xs purple"  ><i class="fa fa-edit"></i> Editar</a>
                    
                
action.php https://gitlab.com/nacridan/Nacridan | PHP | 188 lines
                    
25		village : variable (voir ci-dessous).<br /> On dit qu'un village est <a
                    
26		href='rules.php?page=step13'>fortifié</a> lorsqu'il dispose de
                    
27		remparts tout autour. Le coût de déplacement correspond alors à celui
                    
37	
                    
38	<li><b>Bousculer</b> un PNJ permet d'intervertir vos positions.<br />
                    
39		La réussite de cette action est soumise à un jet d'opposition <b>(JFor
                    
40			+ JDex/2)</b>. Pour réussir, vous devez obtenir un résultat
                    
41		strictement supérieur à celui de votre opposant. Chaque tentative vous
                    
42		coûtera 0,5PA + le coût du déplacement en cas de réussite : par
                    
58	<li><b>Attaquer un bâtiment</b> inflige des dégâts de structure à une
                    
59		construction. Avec la <a href='rules.php?page=step7'>compétence</a>
                    
60		Flèche Enflammée et le <a href='rules.php?page=step8'>sortilège</a>
                    
69		destruction de bâtiments, consultez les derniers paragraphes de la
                    
70		section <a href='rules.php?page=step12'>Villages</a>.<br /> <br />
                    
71	
                    
                
voucher.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 263 lines
                    
15			$this->session->data['vouchers'][mt_rand()] = array(
                    
16				'description'      => sprintf($this->language->get('text_for'), $this->currency->format($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency'))), $this->request->post['to_name']),
                    
17				'to_name'          => $this->request->post['to_name'],
                    
227	public function validate() {
                    
228    	if ((utf8_strlen($this->request->post['to_name']) < 1) || (utf8_strlen($this->request->post['to_name']) > 64)) {
                    
229      		$this->error['to_name'] = $this->language->get('error_to_name');
                    
235		
                    
236    	if ((utf8_strlen($this->request->post['from_name']) < 1) || (utf8_strlen($this->request->post['from_name']) > 64)) {
                    
237      		$this->error['from_name'] = $this->language->get('error_from_name');
                    
239		
                    
240		if ((utf8_strlen($this->request->post['from_email']) > 96) || !preg_match('/^[^\@]+@.*\.[a-z]{2,6}$/i', $this->request->post['from_email'])) {
                    
241      		$this->error['from_email'] = $this->language->get('error_email');
                    
247				
                    
248		if (($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency')) < $this->config->get('config_voucher_min')) || ($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency')) > $this->config->get('config_voucher_max'))) {
                    
249      		$this->error['amount'] = sprintf($this->language->get('error_amount'), $this->currency->format($this->config->get('config_voucher_min')), $this->currency->format($this->config->get('config_voucher_max')) . ' ' . $this->currency->getCode());
                    
                
Matcher.php https://bitbucket.org/rybadour/todo_list_site.git | PHP | 308 lines
                    
34 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
                    
35 * POSSIBILITY OF SUCH DAMAGE.
                    
36 *
                    
36 *
                    
37 * @package    PHPUnit_MockObject
                    
38 * @author     Sebastian Bergmann <sb@sebastian-bergmann.de>
                    
61 */
                    
62class PHPUnit_Framework_MockObject_Matcher implements PHPUnit_Framework_MockObject_Matcher_Invocation
                    
63{
                    
144        if ($this->methodNameMatcher === NULL) {
                    
145            throw new PHPUnit_Framework_Exception('No method matcher is set');
                    
146        }
                    
295
                    
296        catch (PHPUnit_Framework_ExpectationFailedException $e) {
                    
297            throw new PHPUnit_Framework_ExpectationFailedException(
                    
                
Type.php https://bitbucket.org/rybadour/todo_list_site.git | PHP | 303 lines
                    
26 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
                    
27 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
                    
28 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
                    
36 *
                    
37 * @package    PHPUnit
                    
38 * @subpackage Util
                    
41 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
42 * @link       http://www.phpunit.de/
                    
43 * @since      File available since Release 3.0.0
                    
50 * @subpackage Util
                    
51 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
52 * @copyright  2001-2012 Sebastian Bergmann <sebastian@phpunit.de>
                    
159            // There seems to be no other way to check arrays for recursion
                    
160            // http://www.php.net/manual/en/language.types.array.php#73936
                    
161            preg_match_all('/\n            \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($value, TRUE), $matches);
                    
                
TrustedMath.i18n.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 274 lines
                    
1<?php
                    
2/**
                    
48	'trustedmath-convert-error' => 'Greška pri pravljenju matematske slike. "$1" vratila <tt><nowiki>$2</nowiki></tt>.',
                    
49	'trustedmath-not-found' => 'Stranica [[:$1]] ne postoji',
                    
50);
                    
216$messages['pt'] = array(
                    
217	'trustedmath-desc' => 'Permite incorporar nas páginas equações LaTeX, de forma semelhante à do compositor matemático já incorporado na aplicação, mas sem dependência do Ocaml',
                    
218	'trustedmath-permission-error' => 'Nesta wiki não foi possibilitada matemática não confiável',
                    
                
AnnotationDriverTest.php https://bitbucket.org/iiic/iszp.git | PHP | 340 lines
                    
1<?php
                    
2
                    
7
                    
8require_once __DIR__ . '/../../TestInit.php';
                    
9
                    
183        $cm = $factory->getMetadataFor('Doctrine\Tests\ORM\Mapping\AnnotationChild');
                    
184        $this->assertEquals(array("postLoad" => array("postLoad"), "preUpdate" => array("preUpdate")), $cm->lifecycleCallbacks);
                    
185
                    
186        $cm = $factory->getMetadataFor('Doctrine\Tests\ORM\Mapping\AnnotationParent');
                    
187        $this->assertEquals(array("postLoad" => array("postLoad"), "preUpdate" => array("preUpdate")), $cm->lifecycleCallbacks);
                    
188    }
                    
274    /**
                    
275     * @PostLoad
                    
276     */
                    
276     */
                    
277    public function postLoad()
                    
278    {
                    
                
reindex.php https://github.com/karpenoktem/punbb.git | PHP | 267 lines
                    
131	{
                    
132		echo sprintf($lang_admin_reindex['Processing post'], $cur_post[0], $cur_post[2]).'<br />'."\n";
                    
133
                    
134		if ($cur_post[0] == $cur_post[4])	// This is the "topic post" so we have to index the subject as well
                    
135			update_search_index('post', $cur_post[0], $cur_post[1], $cur_post[3]);
                    
136		else
                    
136		else
                    
137			update_search_index('post', $cur_post[0], $cur_post[1]);
                    
138
                    
229					<div class="sf-box text">
                    
230						<label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_reindex['Posts per cycle'] ?></span> <small><?php echo $lang_admin_reindex['Posts per cycle info'] ?></small></label><br />
                    
231						<span class="fld-input"><input type="number" id="fld<?php echo $forum_page['fld_count'] ?>" name="i_per_page" size="7" maxlength="7" value="100" /></span>
                    
236					<div class="sf-box text">
                    
237						<label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span class="fld-label"><?php echo $lang_admin_reindex['Starting post'] ?></span> <small><?php echo $lang_admin_reindex['Starting post info'] ?></small></label><br />
                    
238						<span class="fld-input"><input type="number" id="fld<?php echo $forum_page['fld_count'] ?>" name="i_start_at" size="7" maxlength="7" value="<?php echo (isset($first_id)) ? $first_id : 0 ?>" /></span>
                    
                
CakeValidationSetTest.php https://bitbucket.org/00firestar00/ejfirestar.com.git | PHP | 337 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
                    
14 * @package       Cake.Test.Case.Model.Validator
                    
14 * @package       Cake.Test.Case.Model.Validator
                    
15 * @since         CakePHP(tm) v 2.2.0
                    
16 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
269/**
                    
270 * Tests it is possible to iterate a validation set object
                    
271 *
                    
                
index.php https://github.com/karpenoktem/punbb.git | PHP | 244 lines
                    
33	// Is phpinfo() a disabled function?
                    
34	if (strpos(strtolower((string)@ini_get('disable_functions')), 'phpinfo') !== false)
                    
35		message($lang_admin_index['phpinfo disabled']);
                    
128else if (isset($_PHPA))
                    
129	$php_accelerator = '<a href="http://www.php-accelerator.co.uk/">ionCube PHP Accelerator</a>';
                    
130else if (ini_get('apc.enabled'))
                    
130else if (ini_get('apc.enabled'))
                    
131	$php_accelerator ='<a href="http://www.php.net/apc/">Alternative PHP Cache (APC)</a>';
                    
132else if (ini_get('zend_optimizer.optimization_level'))
                    
204					<h3 class="ct-legend hn"><span><?php echo $lang_admin_index['Server load'] ?></span></h3>
                    
205					<p><span><?php echo $server_load ?> (<?php echo $num_online.' '.$lang_admin_index['users online']?>)</span></p>
                    
206				</div>
                    
213						<li><span><?php echo $lang_admin_index['Operating system'] ?>: <?php echo PHP_OS ?></span></li>
                    
214						<li><span>PHP: <?php echo PHP_VERSION ?> - <a href="<?php echo forum_link($forum_url['admin_index']) ?>?action=phpinfo"><?php echo $lang_admin_index['Show info'] ?></a></span></li>
                    
215						<li><span><?php echo $lang_admin_index['Accelerator'] ?>: <?php echo $php_accelerator ?></span></li>
                    
                
date.html https://bitbucket.org/ferOnti/processmaker.git | HTML | 149 lines
                    
1<form id="{$form_id}" name="{$form_name}" action="{$form_action}" class="{$form_className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit='return validateForm("{$form_objectRequiredFields}".parseJSON());'>  
                    
2
                    
141    </tbody></table>
                    
142    <div class="FormRequiredTextMessage"><font color="red">*  </font>{php}echo (G::LoadTranslation('ID_REQUIRED_FIELD'));{/php}</div>		</div>
                    
143		<div class="boxBottom"><div class="a"></div><div class="b"></div><div class="c"></div></div>
                    
                
RbacUsers.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 288 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * RbacUsers.php
                    
5 * @package  rbac-classes-model
                    
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
                    
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    
18 * GNU Affero General Public License for more details.
                    
29 */
                    
30require_once 'classes/model/om/BaseRbacUsers.php';
                    
31
                    
                
TranslateGettext.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 285 lines
                    
1<?php
                    
2
                    
3/*
                    
4 *  $Id: TranslateGettext.php 3076 2006-12-18 08:52:12Z fabien $
                    
5 *
                    
8 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
                    
9 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
                    
10 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
                    
15 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
                    
16 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                    
17 *
                    
22
                    
23require_once 'phing/filters/BaseParamFilterReader.php';
                    
24include_once 'phing/filters/ChainableReader.php';
                    
                
recaptchalib.php https://bitbucket.org/Mainboarder/s2firewall.git | PHP | 277 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * This is a PHP library that handles calling reCAPTCHA.
                    
4 *    - Documentation and latest version
                    
4 *    - Documentation and latest version
                    
5 *          http://recaptcha.net/plugins/php/
                    
6 *    - Get a reCAPTCHA API Key
                    
27 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
                    
28 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
                    
29 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
                    
59/**
                    
60 * Submits an HTTP POST to a reCAPTCHA server
                    
61 * @param string $host
                    
66 */
                    
67function _recaptcha_http_post($host, $path, $data, $port = 80) {
                    
68
                    
                
voucher.php https://bitbucket.org/elena_dyavolova/omf.git | PHP | 263 lines
                    
15			$this->session->data['vouchers'][mt_rand()] = array(
                    
16				'description'      => sprintf($this->language->get('text_for'), $this->currency->format($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency'))), $this->request->post['to_name']),
                    
17				'to_name'          => $this->request->post['to_name'],
                    
227	protected function validate() {
                    
228    	if ((utf8_strlen($this->request->post['to_name']) < 1) || (utf8_strlen($this->request->post['to_name']) > 64)) {
                    
229      		$this->error['to_name'] = $this->language->get('error_to_name');
                    
235		
                    
236    	if ((utf8_strlen($this->request->post['from_name']) < 1) || (utf8_strlen($this->request->post['from_name']) > 64)) {
                    
237      		$this->error['from_name'] = $this->language->get('error_from_name');
                    
239		
                    
240		if ((utf8_strlen($this->request->post['from_email']) > 96) || !preg_match('/^[^\@]+@.*\.[a-z]{2,6}$/i', $this->request->post['from_email'])) {
                    
241      		$this->error['from_email'] = $this->language->get('error_email');
                    
247				
                    
248		if (($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency')) < $this->config->get('config_voucher_min')) || ($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency')) > $this->config->get('config_voucher_max'))) {
                    
249      		$this->error['amount'] = sprintf($this->language->get('error_amount'), $this->currency->format($this->config->get('config_voucher_min')), $this->currency->format($this->config->get('config_voucher_max')) . ' ' . $this->currency->getCode());
                    
                
show2.php https://gitlab.com/redwan4re/web-apps-php-26 | PHP | 182 lines
                    
14
                    
15<?php include_once 'header.php'; ?>
                    
16<!-- Page container -->
                    
29                    <div class="page-title">
                    
30                    <h4 class="text-center"><i class="icon-arrow-left52 position-left"></i> <span class="text-semibold">Details of</span> <?php echo $oneData['title']; ?> Course</h4>
                    
31                    </div>
                    
40                <!-- detached sidebar -->
                    
41                <?php include_once 'sidebar.php'; ?>
                    
42                <!-- /sidebar -->
                    
60                                    
                    
61                                    <a type="button" onclick="return checkDelete()" class="btn bg-teal btn-labeled" href="trash.php?id=<?php echo $oneData['unique_id']; ?>"><b><i class="icon-close2"></i></b> Disable Course</a>
                    
62                                    
                    
181
                    
182                <?php include_once 'footer.php'; ?>
                    
183
                    
                
tlAttachment.class.php https://github.com/viglesiasce/testlink.git | PHP | 342 lines
                    
1<?php
                    
2/**
                    
9 * @version    	CVS: $Id: tlAttachment.class.php,v 1.2 2009/12/28 08:53:37 franciscom Exp $
                    
10 * @link 		http://www.teamst.org/index.php
                    
11 *
                    
17 * An attachment helper class used to manage the storage of the attachment's meta information
                    
18 * Attachments contents are handled by the repository
                    
19 * @package 	TestLink
                    
59	/**
                    
60	 * @var string $destFPath the path to file within the repository
                    
61	 */
                    
128		$this->compressionType  = tlAttachmentRepository::getCompression();
                    
129		$this->repositoryPath = tlAttachmentRepository::getPathToRepository();
                    
130		$this->attachmentCfg = config_get('attachments');
                    
191
                    
192		//for FS-repository, the path to the repository itself is cut off, so the path is
                    
193		//					relative to the repository itself
                    
                
exec.inc.php https://github.com/viglesiasce/testlink.git | PHP | 298 lines
                    
1<?php
                    
2/**
                    
11 * @copyright 	2005-2009, TestLink community 
                    
12 * @version    	CVS: $Id: exec.inc.php,v 1.60 2010/06/24 17:25:53 asimon83 Exp $
                    
13 * @link 		http://www.teamst.org/index.php
                    
31 * 20070222 - franciscom - BUGID 645 createResultsMenu()
                    
32 * 20070617 - franciscom - BUGID     insert_id() problems for Postgres and Oracle?
                    
33 **/
                    
34/** 
                    
35 * @uses  common.php required basic environment (configuration and core libraries) 
                    
36 **/
                    
36 **/
                    
37require_once('common.php');
                    
38
                    
86	$len_cfp = tlStringLen($cf_prefix);
                    
87	$cf_nodeid_pos = 4;
                    
88	$bulk_notes = '';
                    
                
Tag.php https://github.com/michaelmcandrew/vaw.git | PHP | 215 lines
                    
1<?php
                    
2
                    
16 | WITHOUT ANY WARRANTY; without even the implied warranty of         |
                    
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
                    
18 | See the GNU Affero General Public License for more details.        |
                    
107                    $tagset[$tagsetItem]['entityId'] = $entityId;
                    
108                    require_once 'CRM/Core/BAO/EntityTag.php';
                    
109                    $entityTags = CRM_Core_BAO_EntityTag::getChildEntityTags( $parentId, $entityId, $entityTable );                    
                    
148                        if ( !empty($form->_formValues['contact_tags']) ) {
                    
149                            require_once 'CRM/Core/BAO/Tag.php';
                    
150                            $contactTags = CRM_Core_BAO_Tag::getTagsUsedFor( 'civicrm_contact', true, false, $parentId );
                    
188     */
                    
189    static function postProcess( &$params, $entityId, $entityTable = 'civicrm_contact', &$form ) {
                    
190        foreach( $params as $value ) {
                    
                
ProxyFactory.php https://github.com/weaverryan/mongodb-odm.git | PHP | 283 lines
                    
1<?php
                    
2/*
                    
5 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
                    
6 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
                    
7 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
                    
12 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
                    
13 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                    
14 *
                    
29 *
                    
30 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
31 * @since       1.0
                    
199                $methods .= $parameterString . ')';
                    
200                $methods .= PHP_EOL . '    {' . PHP_EOL;
                    
201                $methods .= '        $this->load();' . PHP_EOL;
                    
202                $methods .= '        return parent::' . $method->getName() . '(' . $argumentString . ');';
                    
203                $methods .= PHP_EOL . '    }' . PHP_EOL;
                    
204            }
                    
                
twitter.js https://github.com/Val9/KitchenSink.git | JavaScript | 309 lines
                    
38				// Create a vertical layout view to hold all the info labels and images for each tweet
                    
39				var post_view = Ti.UI.createView({
                    
40					height:'auto',
                    
55				// Add the avatar image to the view
                    
56				post_view.add(av);
                    
57
                    
69				// Add the username to the view
                    
70				post_view.add(user_label);
                    
71				
                    
83				// Add the date to the view
                    
84				post_view.add(date_label);
                    
85			
                    
96				// Add the tweet to the view
                    
97				post_view.add(tweet_text);
                    
98				// Add the vertical layout view to the row
                    
                
WufooApiWrapper.php https://github.com/Fourshift/Wufoo-API-Wrappers.git | PHP | 270 lines
                    
1<?php
                    
2
                    
2
                    
3require_once('WufooApiWrapperBase.php');
                    
4require_once('WufooValueObjects.php');
                    
224	 */
                    
225	public function entryPost($formIdentifier, $wufooSubmitFields) {
                    
226		$url = $this->getFullUrl('forms/'.$formIdentifier.'/entries');
                    
226		$url = $this->getFullUrl('forms/'.$formIdentifier.'/entries');
                    
227		$postParams = array();
                    
228		foreach ($wufooSubmitFields as $field) {
                    
228		foreach ($wufooSubmitFields as $field) {
                    
229			$postParams[$field->getId()] = $field->getValue();
                    
230		}
                    
231		$curl = new WufooCurl();
                    
232		$response = $curl->postAuthenticated($postParams, $url, $this->apiKey);
                    
233		return new PostResponse($response);
                    
                
AccessToken.php https://gitlab.com/hoanghung.dev/aloads | PHP | 379 lines
                    
1<?php
                    
2/**
                    
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
                    
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
                    
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
                    
246     * @TODO fix this malarkey - getResponse() should always return an object
                    
247     * @see https://github.com/facebook/facebook-php-sdk-v4/issues/36
                    
248     */
                    
375  {
                    
376    return strpos($this->accessToken, '|') !== false;
                    
377  }
                    
                
ArtistTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 215 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: ArtistTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Service/Audioscrobbler.php';
                    
27
                    
28
                    
29require_once "AudioscrobblerTestCase.php";
                    
30
                    
47                        '<?xml version="1.0" encoding="UTF-8"?>
                    
48                        <similarartists artist="Metallica" streamable="1" picture="http://static.last.fm/proposedimages/sidebar/6/1000024/1285.jpg" mbid="65f4f0c5-ef9e-490c-aee3-909e7ae6b2ab">
                    
49                        <artist>
                    
53                            <url>http://www.last.fm/music/Iron+Maiden</url>
                    
54                            <image_small>http://static.last.fm/proposedimages/thumbnail/6/1000107/459375.jpg</image_small>
                    
55                            <image>http://static.last.fm/proposedimages/sidebar/6/1000107/459375.jpg</image>
                    
                
File.php https://gitlab.com/rsilveira1987/Expresso | PHP | 473 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: File.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
21 */
                    
32    /**
                    
33     * Reads $length number of bytes at the current position in the
                    
34     * file and advances the file pointer.
                    
42    /**
                    
43     * Sets the file position indicator and advances the file pointer.
                    
44     * The new position, measured in bytes from the beginning of the file,
                    
44     * The new position, measured in bytes from the beginning of the file,
                    
45     * is obtained by adding offset to the position specified by whence,
                    
46     * whose values are defined as follows:
                    
46     * whose values are defined as follows:
                    
47     * SEEK_SET - Set position equal to offset bytes.
                    
48     * SEEK_CUR - Set position to current location plus offset.
                    
                
ImageMagick.php https://gitlab.com/yousafsyed/easternglamor | PHP | 480 lines
                    
240     */
                    
241    public function watermark($imagePath, $positionX = 0, $positionY = 0, $opacity = 30, $tile = false)
                    
242    {
                    
254            $this->getWatermarkHeight() &&
                    
255            $this->getWatermarkPosition() != self::POSITION_STRETCH
                    
256        ) {
                    
281                break;
                    
282            case self::POSITION_TOP_RIGHT:
                    
283                $positionX = $this->_imageSrcWidth - $watermark->getImageWidth();
                    
304                    while ($offsetX <= $this->_imageSrcWidth + $watermark->getImageWidth()) {
                    
305                        $this->_imageHandler->compositeImage($watermark, \Imagick::COMPOSITE_OVER, $offsetX, $offsetY);
                    
306                        $offsetX += $watermark->getImageWidth();
                    
311            } else {
                    
312                $this->_imageHandler->compositeImage($watermark, \Imagick::COMPOSITE_OVER, $positionX, $positionY);
                    
313            }
                    
                
eventapi.html.md https://gitlab.com/ggsaavedra/PredictionIO | Markdown | 412 lines
                    
91```bash
                    
92$ curl -i -X POST http://localhost:7070/events.json?accessKey=WPgcXKd42FPQpZHVbVeMyqF4CQJUnXQmIMTHhX3ZUrSzvy1KXJjdFUrslifa9rnB \
                    
93-H "Content-Type: application/json" \
                    
109  </div>
                    
110  <div data-tab="PHP SDK" data-lang="php">
                    
111```php
                    
111```php
                    
112<?php
                    
113  require_once("vendor/autoload.php");
                    
188```bash
                    
189$ curl -i -X POST http://localhost:7070/events.json?accessKey=WPgcXKd42FPQpZHVbVeMyqF4CQJUnXQmIMTHhX3ZUrSzvy1KXJjdFUrslifa9rnB \
                    
190-H "Content-Type: application/json" \
                    
204  </div>
                    
205  <div data-tab="PHP SDK" data-lang="php">
                    
206```php
                    
                
WizardController.php https://github.com/rgranadino/magento-mirror.git | PHP | 464 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
110        $this->setFlag('', self::FLAG_NO_DISPATCH_BLOCK_EVENT, true);
                    
111        $this->setFlag('', self::FLAG_NO_POST_DISPATCH, true);
                    
112
                    
123    /**
                    
124     * Process begin step POST data
                    
125     */
                    
125     */
                    
126    public function beginPostAction()
                    
127    {
                    
                
Advertiser.php https://bitbucket.org/blackriver/openx.git | PHP | 371 lines
                    
1<?php
                    
2
                    
17| but WITHOUT ANY WARRANTY; without even the implied warranty of            |
                    
18| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             |
                    
19| GNU General Public License for more details.                              |
                    
35// Required classes
                    
36require_once MAX_PATH . '/lib/OA/Dal/Statistics.php';
                    
37
                    
                
arr.php https://gitlab.com/ken3/bluSky | PHP | 602 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
63		{
                    
64			// Possibly a Traversable object, functionally the same as an array
                    
65			return (is_object($value) AND $value instanceof Traversable);
                    
263	 *
                    
264	 *     // Get the value "username" from $_POST, if it exists
                    
265	 *     $username = Arr::get($_POST, 'username');
                    
283	 *
                    
284	 *     // Get the values "username", "password" from $_POST
                    
285	 *     $auth = Arr::extract($_POST, array('username', 'password'));
                    
351	/**
                    
352	 * Recursive version of [array_map](http://php.net/array_map), applies one or more
                    
353	 * callbacks to all elements in an array, including sub-arrays.
                    
403	 * Merges one or more arrays recursively and preserves all keys.
                    
404	 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)!
                    
405	 *
                    
                
playlist.c https://github.com/GazNicoll/libspotify-php.git | C | 322 lines
                    
58
                    
59PHP_METHOD(SpotifyPlaylist, getName)
                    
60{
                    
129
                    
130PHP_METHOD(SpotifyPlaylist, getTrackCreator)
                    
131{
                    
208
                    
209	if (Z_TYPE_P(z_position) == IS_NULL || Z_LVAL_P(z_position) < 0) {
                    
210		position = sp_playlist_num_tracks(p->playlist);
                    
211	} else {
                    
212		position = Z_LVAL_P(z_position);
                    
213	}
                    
276	PHP_ME(SpotifyPlaylist, isCollaborative,	NULL,	ZEND_ACC_PUBLIC)
                    
277	PHP_ME(SpotifyPlaylist, setCollaborative,	NULL,	ZEND_ACC_PUBLIC)
                    
278	PHP_ME(SpotifyPlaylist, rename,				NULL,	ZEND_ACC_PUBLIC)
                    
                
menu-header.php https://gitlab.com/campus-academy/krowkaramel | PHP | 306 lines
                    
155			$menu_file     = $submenu_items[0][2];
                    
156			$pos           = strpos( $menu_file, '?' );
                    
157
                    
174			$menu_file = $item[2];
                    
175			$pos       = strpos( $menu_file, '?' );
                    
176
                    
213				$menu_file = $item[2];
                    
214				$pos       = strpos( $menu_file, '?' );
                    
215
                    
219
                    
220				// Handle current for post_type=post|page|foo pages, which won't match $self.
                    
221				$self_type = ! empty( $typenow ) ? $self . '?post_type=' . $typenow : 'nothing';
                    
246				$sub_file  = $sub_item[2];
                    
247				$pos       = strpos( $sub_file, '?' );
                    
248				if ( false !== $pos ) {
                    
                
ManageGitIgnoreTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 256 lines
                    
234  - Copy [web-root]/.gitattributes from assets/.gitattributes
                    
235  - Copy [web-root]/.ht.router.php from assets/.ht.router.php
                    
236  - Skip [web-root]/.htaccess: overridden in fixtures/drupal-composer-drupal-project
                    
238  - Skip [web-root]/sites/default/default.settings.php: overridden in fixtures/scaffold-override-fixture
                    
239  - Copy [web-root]/sites/example.settings.local.php from assets/example.settings.local.php
                    
240  - Copy [web-root]/sites/example.sites.php from assets/example.sites.php
                    
240  - Copy [web-root]/sites/example.sites.php from assets/example.sites.php
                    
241  - Copy [web-root]/index.php from assets/index.php
                    
242  - Skip [web-root]/robots.txt: overridden in fixtures/drupal-composer-drupal-project
                    
242  - Skip [web-root]/robots.txt: overridden in fixtures/drupal-composer-drupal-project
                    
243  - Copy [web-root]/update.php from assets/update.php
                    
244  - Copy [web-root]/web.config from assets/web.config
                    
245Scaffolding files for fixtures/scaffold-override-fixture:
                    
246  - Copy [web-root]/sites/default/default.settings.php from assets/override-settings.php
                    
247Scaffolding files for fixtures/drupal-composer-drupal-project:
                    
                
yuga.js https://github.com/dounokouno/yuga.js-TT-Custom.git | JavaScript | 317 lines
                    
5 * Licensed under the MIT License:
                    
6 * http://www.opensource.org/licenses/mit-license.php
                    
7 *
                    
16 * Licensed under the MIT License:
                    
17 * http://www.opensource.org/licenses/mit-license.php
                    
18 *
                    
70				groupSelector: '.btngroup',
                    
71				postfix: '-over'
                    
72			}, options);
                    
76				this.originalSrc = $(this).attr('src');
                    
77				this.rolloverSrc = this.originalSrc.replace(new RegExp('('+c.postfix+')?(\.gif|\.jpg|\.png)$'), c.postfix+"$2");
                    
78				this.rolloverImg = new Image;
                    
121						var originalSrc = $(this).attr('src');
                    
122						var rolloverSrc = originalSrc.replace(new RegExp('('+c.currentImagePostfix+')?(\.gif|\.jpg|\.png)$'), c.currentImagePostfix+"$2");
                    
123						//初期表示
                    
                
Url.php https://bitbucket.org/alessandro-aglietti/itis-leonardo-da-vinci.git | PHP | 548 lines
                    
1<?php
                    
2
                    
184    {
                    
185        if (strpos($host, ':') === false) {
                    
186            $this->host = $host;
                    
                
bltGrHairs.c https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C | 544 lines
                    
89	TK_CONFIG_DONT_SET_DEFAULT, &bltDistanceOption},
                    
90    {TK_CONFIG_CUSTOM, "-position", "position", "Position",
                    
91	DEF_HAIRS_POSITION, Tk_Offset(Crosshairs, hotSpot),
                    
149	}
                    
150	XDrawSegments(graphPtr->display, Tk_WindowId(graphPtr->tkwin),
                    
151	    chPtr->gc, chPtr->segArr, 2);
                    
234    if (!graphPtr->crosshairs->hidden) {
                    
235	TurnOnHairs(graphPtr, graphPtr->crosshairs);
                    
236    }
                    
243    if (!graphPtr->crosshairs->hidden) {
                    
244	TurnOffHairs(graphPtr->tkwin, graphPtr->crosshairs);
                    
245    }
                    
325
                    
326    if (Blt_ConfigureWidgetComponent(graphPtr->interp, graphPtr->tkwin,
                    
327	    "crosshairs", "Crosshairs", configSpecs, 0, (char **)NULL,
                    
                
ContributionPage.php https://github.com/michaelmcandrew/vaw.git | PHP | 354 lines
                    
1<?php
                    
2
                    
16 | WITHOUT ANY WARRANTY; without even the implied warranty of         |
                    
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
                    
18 | See the GNU Affero General Public License for more details.        |
                    
36
                    
37require_once 'CRM/Core/Form.php';
                    
38require_once 'CRM/Core/PseudoConstant.php';
                    
38require_once 'CRM/Core/PseudoConstant.php';
                    
39require_once 'CRM/Contribute/PseudoConstant.php';
                    
40
                    
97        // current contribution page id
                    
98        $this->_id = CRM_Utils_Request::retrieve('id', 'Positive',
                    
99                                                 $this, false, 0);
                    
115        // set up tabs
                    
116        require_once 'CRM/Contribute/Form/ContributionPage/TabHeader.php';
                    
117        CRM_Contribute_Form_ContributionPage_TabHeader::build( $this );
                    
                
Descarte.php https://gitlab.com/SFMSP/Hagape | PHP | 346 lines
                    
6use Estoque\Entity\SolicitacaoDescarte as SolicitacaoDescarteEntity;
                    
7use Estoque\Repository\SolicitacaoDescarteRepository;
                    
8use Estoque\Repository\ItemDescarteRepository;
                    
62     */
                    
63    public function setSolicitacaoDescarteRepository(SolicitacaoDescarteRepository $solicitacaoDescarteRepository) {
                    
64        $this->solicitacaoDescarteRepository = $solicitacaoDescarteRepository;
                    
82     */
                    
83    public function setItemDescarteRepository(ItemDescarteRepository $itemDescarteRepository) {
                    
84        $this->itemDescarteRepository = $itemDescarteRepository;
                    
89     * 
                    
90     * @param EstoqueRepository $estoqueRepository
                    
91     * @return \Estoque\Service\Descarte
                    
92     */
                    
93    public function setEstoqueRepository(EstoqueRepository $estoqueRepository) {
                    
94        $this->estoqueRepository = $estoqueRepository;
                    
                
errors.php https://github.com/libersoft/fengoffice-ls.git | PHP | 194 lines
                    
1<?php
                    
2
                    
136  	'mail account password required' => 'Password required',
                    
137	'send mail error' => 'Error while sending mail. Possibly wrong SMTP settings.',
                    
138    'email address already exists' => 'That email address is already in use.',
                    
                
theme-support.php https://gitlab.com/ravenseyedesign/ravensegg | PHP | 367 lines
                    
43		/*
                    
44		 * Enable support for Post Thumbnails on posts and pages.
                    
45		 *
                    
45		 *
                    
46		 * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
                    
47		 */
                    
48		add_theme_support( 'post-thumbnails' );
                    
49		set_post_thumbnail_size( 1920, 1240 );
                    
50
                    
338function disable_editor_fullscreen_by_default() {
                    
339	$script = "window.onload = function() { const isFullscreenMode = wp.data.select( 'core/edit-post' ).isFeatureActive( 'fullscreenMode' ); if ( isFullscreenMode ) { wp.data.dispatch( 'core/edit-post' ).toggleFeature( 'fullscreenMode' ); } }";
                    
340	wp_add_inline_script( 'wp-blocks', $script );
                    
357// 	/* only on the posttype post archive for the main query */
                    
358// 	if ( $query->is_post_type_archive( 'posttype' ) && $query->is_main_query() ) {
                    
359
                    
366
                    
367// add_action( 'pre_get_posts', 'ravensegg2022\alter_posttype_query' );
                    
                
Command.php https://bitbucket.org/maatao/estrutura-b-sica-doctrine.git | PHP | 512 lines
                    
1<?php
                    
2
                    
267    {
                    
268        if (false !== $pos = strrpos($name, ':')) {
                    
269            $namespace = substr($name, 0, $pos);
                    
269            $namespace = substr($name, 0, $pos);
                    
270            $name = substr($name, $pos + 1);
                    
271        } else {
                    
378            $name,
                    
379            $_SERVER['PHP_SELF'].' '.$name
                    
380        );
                    
                
admin_review.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 501 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
2
                    
3require_once(APPPATH.'controllers/project.php');
                    
4
                    
51	public function index() {
                    
52		if( !is_login($this->data['login']) || ( $this->input->post("project_state") == "" && ($this->laststate != $this->uri->segment( 1 )) ) ){
                    
53			show_404();
                    
129		
                    
130		//print_r($this->input->post());
                    
131		$par = array(
                    
131		$par = array(
                    
132			"user_id" => $this->input->post("userid"),
                    
133			"admin_review_date" => $review_date,
                    
133			"admin_review_date" => $review_date,
                    
134			"admin_review_content" => $this->input->post("comment_content"),
                    
135			"project_id" => $this->input->post("projid"),
                    
                
CakeRoute.php https://github.com/gustavor/lore.git | PHP | 506 lines
                    
1<?php
                    
2/**
                    
8 *
                    
9 * PHP5
                    
10 *
                    
10 *
                    
11 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
12 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
18 * @link          http://cakephp.org CakePHP(tm) Project
                    
19 * @package       Cake.Routing.Route
                    
19 * @package       Cake.Routing.Route
                    
20 * @since         CakePHP(tm) v 1.3
                    
21 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
140				$slashParam = '/\\' . $namedElements[0][$i];
                    
141				if (strpos($parsed, $slashParam) !== false) {
                    
142					$routeParams[$slashParam] = '(?:/(?P<' . $name . '>' . $this->options[$name] . ')' . $option . ')' . $option;
                    
                
WizardController.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 464 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
110        $this->setFlag('', self::FLAG_NO_DISPATCH_BLOCK_EVENT, true);
                    
111        $this->setFlag('', self::FLAG_NO_POST_DISPATCH, true);
                    
112
                    
123    /**
                    
124     * Process begin step POST data
                    
125     */
                    
125     */
                    
126    public function beginPostAction()
                    
127    {
                    
                
installation.rst https://github.com/steinkel/docs.git | ReStructuredText | 236 lines
                    
15- PHP 5.3.0 ou supérieur (La version 2.6 de CakePHP et les versions inférieures
                    
16  supportent PHP 5.2.8 et supérieur). La version 2.8.0 de CakePHP et les
                    
17  versions supérieures supportent PHP 7. Pour utiliser une version PHP
                    
54Toutes les versions actuelles de CakePHP sont hébergées sur
                    
55`Github <https://github.com/cakephp/cakephp>`_. Github héberge CakePHP lui-même
                    
56ainsi que plusieurs autres plugins pour CakePHP. Les versions de CakePHP sont
                    
142
                    
143    git clone -b 2.x git://github.com/cakephp/cakephp.git /home/mark/projects/cakephp
                    
144
                    
148``php.ini``.  Sur les systèmes \*nix, il se trouve souvent dans
                    
149``/etc/php.ini``, mais en utilisant ``php -i`` et en regardant 'Loaded
                    
150Configuration File' (Fichier de Configuration Chargé). Une fois que
                    
154
                    
155    include_path = .:/home/mark/projects/cakephp/lib:/usr/local/php/lib/php
                    
156
                    
                
wp-cache-phase1.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 264 lines
                    
1<?php
                    
2// Pre-2.6 compatibility
                    
5
                    
6if( !include( WP_CONTENT_DIR . '/wp-cache-config.php' ) )
                    
7	return true;
                    
10
                    
11include( WPCACHEHOME . 'wp-cache-base.php');
                    
12
                    
26
                    
27require_once( WPCACHEHOME . 'wp-cache-phase2.php');
                    
28
                    
28
                    
29$plugins = glob( $wp_cache_plugins_dir . '/*.php' );
                    
30if( is_array( $plugins ) ) {
                    
36
                    
37if (!$cache_enabled || $_SERVER["REQUEST_METHOD"] == 'POST') 
                    
38	return true;
                    
                
ResultPrinter.php https://github.com/grandison/budo16.git | PHP | 337 lines
                    
45
                    
46require_once 'PHPUnit/Framework.php';
                    
47require_once 'PHPUnit/Util/Filter.php';
                    
48require_once 'PHPUnit/Util/TestDox/NamePrettifier.php';
                    
49require_once 'PHPUnit/Util/Printer.php';
                    
50
                    
50
                    
51PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
                    
52
                    
64 */
                    
65abstract class PHPUnit_Util_TestDox_ResultPrinter extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener
                    
66{
                    
149     */
                    
150    public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
                    
151    {
                    
                
SqlBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 415 lines
                    
181      '#description' => $this->t('Set between which values the user can choose when determining the items per page. Separated by comma.'),
                    
182      '#default_value' => $this->options['expose']['items_per_page_options'],
                    
183      '#states' => [
                    
228    $error = FALSE;
                    
229    $exposed_options = $form_state->getValue(['pager_options', 'expose', 'items_per_page_options']);
                    
230    if (strpos($exposed_options, '.') !== FALSE) {
                    
251      if (array_search($items_per_page, $options) === FALSE) {
                    
252        $form_state->setErrorByName('pager_options][expose][items_per_page_options', $this->t("The <em>Exposed items per page</em> field's options must include the value from the <em>Items per page</em> field (@items_per_page).",
                    
253          ['@items_per_page' => $items_per_page])
                    
341  public function usesExposed() {
                    
342    return $this->itemsPerPageExposed() || $this->isOffsetExposed();
                    
343  }
                    
360        }
                    
361        if (!empty($this->options['expose']['items_per_page_options_all']) && !empty($this->options['expose']['items_per_page_options_all_label'])) {
                    
362          $sanitized_options['All'] = $this->options['expose']['items_per_page_options_all_label'];
                    
                
class-wp-terms-list-table.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 454 lines
                    
23		$action    = $this->screen->action;
                    
24		$post_type = $this->screen->post_type;
                    
25		$taxonomy  = $this->screen->taxonomy;
                    
35		// @todo Still needed? Maybe just the show_ui part.
                    
36		if ( empty( $post_type ) || !in_array( $post_type, get_post_types( array( 'show_ui' => true ) ) ) )
                    
37			$post_type = 'post';
                    
130			$post_type_object = get_post_type_object( $this->screen->post_type );
                    
131			$columns['posts'] = $post_type_object ? $post_type_object->labels->name : __( 'Posts' );
                    
132		}
                    
352
                    
353		$ptype_object = get_post_type_object( $this->screen->post_type );
                    
354		if ( ! $ptype_object->show_ui )
                    
446			<input type="hidden" name="taxonomy" value="<?php echo esc_attr( $this->screen->taxonomy ); ?>" />
                    
447			<input type="hidden" name="post_type" value="<?php echo esc_attr( $this->screen->post_type ); ?>" />
                    
448			<br class="clear" />
                    
                
mysqli-stmt.param-count.html https://bitbucket.org/stillzhl/manuals.git | HTML | 110 lines
                    
11 <div class="up"><a href="class.mysqli-stmt.html">MySQLi_STMT</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="mysqli-stmt.param-count" class="refentry">
                    
16  <h1 class="refname">mysqli_stmt_param_count</h1>
                    
17  <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">mysqli_stmt::$param_count</span> -- <span class="refname">mysqli_stmt_param_count</span> &mdash; <span class="dc-title">Returns the number of parameter for the given statement</span></p>
                    
18
                    
68   <div class="example-contents">
                    
69<div class="phpcode"><code><span style="color: #000000">
                    
70<span style="color: #0000BB">&lt;?php<br />$mysqli&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">mysqli</span><span style="color: #007700">(</span><span style="color: #DD0000">"localhost"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"my_user"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"my_password"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"world"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/*&nbsp;check&nbsp;connection&nbsp;*/<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">mysqli_connect_errno</span><span style="color: #007700">())&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Connect&nbsp;failed:&nbsp;%s\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">mysqli_connect_error</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;exit();<br />}<br /><br />if&nbsp;(</span><span style="color: #0000BB">$stmt&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$mysqli</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;Name&nbsp;FROM&nbsp;Country&nbsp;WHERE&nbsp;Name=?&nbsp;OR&nbsp;Code=?"</span><span style="color: #007700">))&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$marker&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">param_count</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Statement&nbsp;has&nbsp;%d&nbsp;markers.\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$marker</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*&nbsp;close&nbsp;statement&nbsp;*/<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">close</span><span style="color: #007700">();<br />}<br /><br /></span><span style="color: #FF8000">/*&nbsp;close&nbsp;connection&nbsp;*/<br /></span><span style="color: #0000BB">$mysqli</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">close</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span>
                    
78   <div class="example-contents">
                    
79<div class="phpcode"><code><span style="color: #000000">
                    
80<span style="color: #0000BB">&lt;?php<br />$link&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysqli_connect</span><span style="color: #007700">(</span><span style="color: #DD0000">"localhost"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"my_user"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"my_password"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"world"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/*&nbsp;check&nbsp;connection&nbsp;*/<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">mysqli_connect_errno</span><span style="color: #007700">())&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Connect&nbsp;failed:&nbsp;%s\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">mysqli_connect_error</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;exit();<br />}<br /><br />if&nbsp;(</span><span style="color: #0000BB">$stmt&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysqli_prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$link</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"SELECT&nbsp;Name&nbsp;FROM&nbsp;Country&nbsp;WHERE&nbsp;Name=?&nbsp;OR&nbsp;Code=?"</span><span style="color: #007700">))&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$marker&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysqli_stmt_param_count</span><span style="color: #007700">(</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Statement&nbsp;has&nbsp;%d&nbsp;markers.\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$marker</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*&nbsp;close&nbsp;statement&nbsp;*/<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mysqli_stmt_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #FF8000">/*&nbsp;close&nbsp;connection&nbsp;*/<br /></span><span style="color: #0000BB">mysqli_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$link</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
                    
108 <div class="up"><a href="class.mysqli-stmt.html">MySQLi_STMT</a></div>
                    
109 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
110</div></body></html>
                    
                
Alignment.php https://gitlab.com/dmsapiens/physicians | PHP | 409 lines
                    
4 *
                    
5 * Copyright (c) 2006 - 2012 PHPExcel
                    
6 *
                    
22 * @package	PHPExcel_Style
                    
23 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license	http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package	PHPExcel_Style
                    
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable
                    
37{
                    
143	 *		array(
                    
144	 *			'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
                    
145	 *			'vertical'   => PHPExcel_Style_Alignment::VERTICAL_CENTER,
                    
                
SQLite3.php https://gitlab.com/dmsapiens/physicians | PHP | 322 lines
                    
22 * @package    PHPExcel_CachedObjectStorage
                    
23 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package    PHPExcel_CachedObjectStorage
                    
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_CachedObjectStorage_SQLite3 extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache {
                    
37
                    
86     */
                    
87	public function addCacheData($pCoord, PHPExcel_Cell $cell) {
                    
88		if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
                    
309	 * Identify whether the caching method is currently available
                    
310	 * Some methods are dependent on the availability of certain extensions being enabled in the PHP build
                    
311	 *
                    
                
User_agent.php https://github.com/usagi-project/mynets1.git | PHP | 500 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
235			{
                    
236				if (FALSE !== (strpos(strtolower($this->agent), $key)))
                    
237				{
                    
                
orders.lang.php https://bitbucket.org/speedealing/speedealing.git | PHP | 187 lines
                    
1<?php
                    
2/* Copyright (C) 2012-2013	Regis Houssin	<regis.houssin@capnetworks.com>
                    
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
                    
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    
13 * GNU General Public License for more details.
                    
160		// Sources
                    
161		'OrderSource0' => 'Proposition commerciale',
                    
162		'OrderSource1' => 'Internet',
                    
183		'LinkedInvoices' => 'Factures jointes',
                    
184		'LinkedProposals' => 'Propositions commerciales jointes',
                    
185		'ShippingHT' => 'Frais de transport'
                    
                
ARC2_SemHTMLParser.php https://github.com/mterenzio/FollowThis.git | PHP | 339 lines
                    
1<?php
                    
2/*
                    
20    parent::__init();
                    
21    $this->default_sem_html_formats = 'dc openid erdf rdfa posh-rdf microformats';
                    
22    $this->triples = array();
                    
160        /* poshRDF detection */
                    
161        if (!isset($this->detected_formats['posh-rdf']) && isset($sub_r['a']['class m']) && in_array('rdf-p', $sub_r['a']['class m'])) $this->detected_formats['posh-rdf'] = 1;
                    
162        /* RDFa detection */
                    
                
dot.c https://gitlab.com/jiapei100/ImageMagick | C | 245 lines
                    
25%                                                                             %
                    
26%    http://www.imagemagick.org/script/license.php                            %
                    
27%                                                                             %
                    
179%
                    
180%  RegisterDOTImage() adds attributes for the Display Postscript image
                    
181%  format to the list of supported formats.  The attributes include the image
                    
                
classtrees_OpenID.html https://github.com/yupe/xomaprojects.git | HTML | 208 lines
                    
111<li><a href="OpenID/Auth_OpenID_DumbStore.html">Auth_OpenID_DumbStore</a></li><li><a href="OpenID/Auth_OpenID_FileStore.html">Auth_OpenID_FileStore</a></li><li><a href="OpenID/Auth_OpenID_MemcachedStore.html">Auth_OpenID_MemcachedStore</a></li><li><a href="OpenID/Auth_OpenID_SQLStore.html">Auth_OpenID_SQLStore</a><ul>
                    
112<li><a href="OpenID/Auth_OpenID_MySQLStore.html">Auth_OpenID_MySQLStore</a></li><li><a href="OpenID/Auth_OpenID_PostgreSQLStore.html">Auth_OpenID_PostgreSQLStore</a></li><li><a href="OpenID/Auth_OpenID_SQLiteStore.html">Auth_OpenID_SQLiteStore</a></li></ul></li>
                    
113</ul></li>
                    
175
                    
176<h2>Root class Auth_Yadis_PHPSession</h2>
                    
177<ul>
                    
177<ul>
                    
178<li><a href="OpenID/Auth_Yadis_PHPSession.html">Auth_Yadis_PHPSession</a></li></ul>
                    
179
                    
204	<p class="notes" id="credit">
                    
205		Documentation generated on Tue, 21 Apr 2009 11:31:28 -0700 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.2</a>
                    
206	</p>
                    
                
shipping.php https://gitlab.com/shapcy/opencart | PHP | 268 lines
                    
35
                    
36				if ((utf8_strlen(trim($this->request->post['firstname'])) < 1) || (utf8_strlen(trim($this->request->post['firstname'])) > 32)) {
                    
37					$json['error']['firstname'] = $this->language->get('error_firstname');
                    
55
                    
56				if ($country_info && $country_info['postcode_required'] && (utf8_strlen(trim($this->request->post['postcode'])) < 2 || utf8_strlen(trim($this->request->post['postcode'])) > 10)) {
                    
57					$json['error']['postcode'] = $this->language->get('error_postcode');
                    
63
                    
64				if (!isset($this->request->post['zone_id']) || $this->request->post['zone_id'] == '') {
                    
65					$json['error']['zone'] = $this->language->get('error_zone');
                    
113						'address_2'      => $this->request->post['address_2'],
                    
114						'postcode'       => $this->request->post['postcode'],
                    
115						'city'           => $this->request->post['city'],
                    
123						'address_format' => $address_format,
                    
124						'custom_field'   => isset($this->request->post['custom_field']) ? $this->request->post['custom_field'] : array()
                    
125					);
                    
                
style.css https://gitlab.com/github-cloud-corp/aws-sdk-php | CSS | 672 lines
                    
140#menu #groups span:hover {
                    
141  background-position: -12px 0;
                    
142}
                    
332.class .methods td.name > div, .class td.value > div {
                    
333  position: relative;
                    
334  padding-right: 1em;
                    
358#splitter {
                    
359  position: fixed;
                    
360  height: 100%;
                    
438
                    
439.php-keyword1 {
                    
440  color: #468847;
                    
490
                    
491span.l .php-var a:hover, span.l .php-var a:active, span.l .php-var a:focus {
                    
492  color: #c09853 !important;
                    
                
notice.php https://gitlab.com/edgarze188/sunrise | PHP | 102 lines
                    
1<?php if ( $type == 'plugin' ) :?>
                    
2<div class="updated" style="padding: 0; margin: 0; border: none; background: none;">
                    
3	<style type="text/css">
                    
4.akismet_activate{min-width:825px;border:1px solid #4F800D;padding:5px;margin:15px 0;background:#83AF24;background-image:-webkit-gradient(linear,0% 0,80% 100%,from(#83AF24),to(#4F800D));background-image:-moz-linear-gradient(80% 100% 120deg,#4F800D,#83AF24);-moz-border-radius:3px;border-radius:3px;-webkit-border-radius:3px;position:relative;overflow:hidden}.akismet_activate .aa_a{position:absolute;top:-5px;right:10px;font-size:140px;color:#769F33;font-family:Georgia, "Times New Roman", Times, serif;z-index:1}.akismet_activate .aa_button{font-weight:bold;border:1px solid #029DD6;border-top:1px solid #06B9FD;font-size:15px;text-align:center;padding:9px 0 8px 0;color:#FFF;background:#029DD6;background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#029DD6),to(#0079B1));background-image:-moz-linear-gradient(0% 100% 90deg,#0079B1,#029DD6);-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px}.akismet_activate .aa_button:hover{text-decoration:none !important;border:1px solid #029DD6;border-bottom:1px solid #00A8EF;font-size:15px;text-align:center;padding:9px 0 8px 0;color:#F0F8FB;background:#0079B1;background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#0079B1),to(#0092BF));background-image:-moz-linear-gradient(0% 100% 90deg,#0092BF,#0079B1);-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px}.akismet_activate .aa_button_border{border:1px solid #006699;-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px;background:#029DD6;background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#029DD6),to(#0079B1));background-image:-moz-linear-gradient(0% 100% 90deg,#0079B1,#029DD6)}.akismet_activate .aa_button_container{cursor:pointer;display:inline-block;background:#DEF1B8;padding:5px;-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px;width:266px}.akismet_activate .aa_description{position:absolute;top:22px;left:285px;margin-left:25px;color:#E5F2B1;font-size:15px;z-index:1000}.akismet_activate .aa_description strong{color:#FFF;font-weight:normal}
                    
5	</style>
                    
5	</style>
                    
6	<form name="akismet_activate" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="POST">
                    
7		<div class="akismet_activate">
                    
10				<div class="aa_button_border">
                    
11					<div class="aa_button"><?php esc_html_e('Activate your Akismet account', 'akismet');?></div>
                    
12				</div>
                    
26<?php elseif ( $type == 'version' ) :?>
                    
27<div id="akismet-warning" class="updated fade"><p><strong><?php printf( esc_html__('Akismet %s requires WordPress 3.0 or higher.', 'akismet'), AKISMET_VERSION);?></strong> <?php printf(__('Please <a href="%1$s">upgrade WordPress</a> to a current version, or <a href="%2$s">downgrade to version 2.4 of the Akismet plugin</a>.', 'akismet'), 'https://codex.wordpress.org/Upgrading_WordPress', 'https://wordpress.org/extend/plugins/akismet/download/');?></p></div>
                    
28<?php elseif ( $type == 'alert' ) :?>
                    
42	<h3 class="key-status failed"><?php esc_html_e('Network functions are disabled.', 'akismet'); ?></h3>
                    
43	<p class="description"><?php printf( __('Your web host or server administrator has disabled PHP&#8217;s <code>gethostbynamel</code> functions.  <strong>Akismet cannot work correctly until this is fixed.</strong>  Please contact your web host or firewall administrator and give them <a href="%s" target="_blank">this information about Akismet&#8217;s system requirements</a>.', 'akismet'), 'https://blog.akismet.com/akismet-hosting-faq/'); ?></p>
                    
44</div>
                    
                
resource.inc.php https://github.com/enigmatic-user/revolution.git | PHP | 160 lines
                    
1<?php
                    
2/**
                    
35$_lang['resource_content'] = 'Konten';
                    
36$_lang['resource_contentdispo'] = 'Disposisi konten';
                    
37$_lang['resource_contentdispo_help'] = 'Gunakan bidang disposisi konten untuk menentukan bagaimana sumber daya ini akan ditangani oleh web browser. Untuk download file pilih opsi lampiran.';
                    
                
lang.php https://gitlab.com/gideonmarked/atls-express | PHP | 326 lines
                    
1<?php
                    
2
                    
136        'menu_label' => 'E-postkonfiguration',
                    
137        'menu_description' => 'Hantera e-postinställningar',
                    
138        'general' => 'Generellt',
                    
138        'general' => 'Generellt',
                    
139        'method' => 'E-postmetod',
                    
140        'sender_name' => 'Avsändarnamn',
                    
141        'sender_email' => 'Avsändarens e-postadress',
                    
142        'php_mail' => 'PHP mail',
                    
143        'smtp' => 'SMTP',
                    
166        'drivers_hint_header' => 'Drivrutiner är inte installerade',
                    
167        'drivers_hint_content' => 'Den här e-postmetoden kräver att tillägget ":plugin" är installerat innan du kan skicka e-post.'
                    
168    ],
                    
170        'menu_label' => 'E-postmall',
                    
171        'menu_description' => 'Ändra e-postmallar som skickas till användare och administratörer, hantera e-postlayouter.',
                    
172        'new_template' => 'Ny mall',
                    
                
FreeBusyGenerator.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 322 lines
                    
1<?php
                    
2
                    
96     * Component.
                    
97     * It's also possible to specify multiple objects as an array.
                    
98     *
                    
                
PwDesignUserDataService.php https://gitlab.com/wuhang2003/phpwind | PHP | 311 lines
                    
1<?php
                    
2Wind::import('SRV:design.srv.model.PwDesignModelBase');
                    
12 * @author xiaoxia.xu <xiaoxia.xuxx@aliyun-inc.com>
                    
13 * @copyright ©2003-2103 phpwind.com
                    
14 * @license http://www.windframework.com
                    
14 * @license http://www.windframework.com
                    
15 * @version $Id: PwDesignUserDataService.php 24726 2013-02-18 06:15:04Z gao.wanggao $
                    
16 * @package src.service.design.srv.model.user
                    
20	/**
                    
21	 * (non-PHPdoc)
                    
22	 * @see src/service/design/srv/model/PwDesignModelBase::decorateAddProperty()
                    
30	/**
                    
31	 * (non-PHPdoc)
                    
32	 * @see src/service/design/srv/model/PwDesignModelBase::decorateEditProperty()
                    
145			$_one['lastvisit'] = $this->_formatTime($_item['lastvisit']);
                    
146			$_one['posts'] = $_item['postnum'];
                    
147			$_one['topics'] = $_item['postnum'];//主题数
                    
                
Profiles.php https://gitlab.com/gregtyka/opensis | PHP | 258 lines
                    
65	{
                    
66		$file = 'Students/Student.php&category_id='.$category['ID'];
                    
67		$tmp_menu['Students'][$xprofile][$file] = ' &nbsp; &nbsp; &rsaquo; '.$category['TITLE'];
                    
71	{
                    
72		$file = 'Users/User.php&category_id='.$category['ID'];
                    
73		$tmp_menu['Users'][$xprofile][$file] = ' &nbsp; &nbsp; &rsaquo; '.$category['TITLE'];
                    
128PopTable('header','Permissions');
                    
129	echo "<FORM name=pref_form id=pref_form action=Modules.php?modname=$_REQUEST[modname]&modfunc=update&profile_id=$_REQUEST[profile_id] method=POST>";
                    
130	DrawHeaderHome('Select the programs that users of this profile can use and which programs those users can use to save information.');
                    
143		if($_REQUEST['profile_id']!='' && $id==$_REQUEST['profile_id'])
                    
144			echo '<TR id=selected_tr onmouseover="" onmouseout="" bgcolor="'.Preferences('HIGHLIGHT').'"; this.style.color="white";\'><TD width=20 align=right'.$style.'>'.(AllowEdit()&&$id>3?button('remove','',"Modules.php?modname=$_REQUEST[modname]&modfunc=delete&profile_id=$id",20):'').'</TD><TD '.$style.' onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&profile_id='.$id.'\';">';
                    
145		else
                    
145		else
                    
146			echo '<TR onmouseover=\'this.style.backgroundColor="'.Preferences('HIGHLIGHT').'"; this.style.color="white";\' onmouseout=\'this.style.cssText="background-color:transparent; color:black;";\'><TD width=20 align=right'.$style.'>'.(AllowEdit()&&$id>3?button('remove','',"Modules.php?modname=$_REQUEST[modname]&modfunc=delete&profile_id=$id",15):'').'</TD><TD'.$style.' onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&profile_id='.$id.'\';">';
                    
147		echo '<b><a style="cursor: pointer; cursor:hand; text-decoration:none;">'.($id>3?'':'<b>').$profile[1]['TITLE'].($id>3?'':'</b>').'</a></b> &nbsp;';
                    
                
about.html https://gitlab.com/adrian.io/ide | HTML | 275 lines
                    
16		Eclipse Public License Version 1.0 (&quot;EPL&quot;).  A copy of the EPL is available 
                    
17		at <a href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/legal/epl-v10.html</a>.
                    
18		For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
                    
29		did not receive this Content directly from the Eclipse Foundation, the following is provided 
                    
30		for informational purposes only, and you should look to the Redistributor's license for 
                    
31		terms and conditions of use.</p>
                    
89      other entities that control, are controlled by, or are under common
                    
90      control with that entity. For the purposes of this definition,
                    
91      "control" means (i) the power, direct or indirect, to cause the
                    
122      editorial revisions, annotations, elaborations, or other modifications
                    
123      represent, as a whole, an original work of authorship. For the purposes
                    
124      of this License, Derivative Works shall not include works that remain
                    
133      or by an individual or Legal Entity authorized to submit on behalf of
                    
134      the copyright owner. For the purposes of this definition, "submitted"
                    
135      means any form of electronic, verbal, or written communication sent
                    
                
xbmc_alshain.php https://bitbucket.org/kaigoh/xbmc-php.git | PHP | 312 lines
                    
8
                    
9        A PHP library for interacting with XBMC using
                    
10        JSON-RPC and XBMC's HTTP-API. Inspiration was
                    
10        JSON-RPC and XBMC's HTTP-API. Inspiration was
                    
11        drawn from Jason Bryant-Greene's php-json-rpc
                    
12        (https://bitbucket.org/jbg/php-json-rpc/src).
                    
38        LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
                    
39        A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
                    
40        HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
                    
46        WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
                    
47        POSSIBILITY OF SUCH DAMAGE.
                    
48
                    
156     * Added 01/01/2011 - Suggestion from robweber
                    
157     *     http://forum.xbmc.org/showpost.php?p=678465&postcount=11
                    
158     *     Check how the URL, port, username and password is being passed in,
                    
                
MangaController.php https://bitbucket.org/haichau59/manga.git | PHP | 343 lines
                    
11			'accessControl', // perform access control for CRUD operations
                    
12			'postOnly + delete', // we only allow deletion via POST request
                    
13		);
                    
153		if(!isset($_GET['ajax']))
                    
154			$this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
                    
155	}
                    
201	{
                    
202		if(isset($_POST['ajax']) && $_POST['ajax']==='manga-form')
                    
203		{
                    
223			}
                    
224			$assets[$i]['posterUrl'] = $posterUrl;
                    
225		}
                    
302			}
                    
303			$assets[$i]['posterUrl'] = $posterUrl;
                    
304		}
                    
                
pearcmd.php https://github.com/ianbogda/FileZ.git | PHP | 445 lines
                    
2/**
                    
3 * PEAR, the PHP Extension and Application Repository
                    
4 *
                    
59if (!isset($_SERVER['argv']) && !isset($argv) && !isset($HTTP_SERVER_VARS['argv'])) {
                    
60    echo 'ERROR: either use the CLI php executable, or set register_argc_argv=On in php.ini';
                    
61    exit(1);
                    
132// this is used in the error handler to retrieve a relative path
                    
133$_PEAR_PHPDIR = $config->get('php_dir');
                    
134$ui->setConfig($config);
                    
166                );
                    
167                $config->set('php_dir', $pearbase . DIRECTORY_SEPARATOR . 'php');
                    
168                $config->set('data_dir', $pearbase . DIRECTORY_SEPARATOR . 'data');
                    
377        return "PEAR Version: ".$GLOBALS['pear_package_version'].
                    
378               "\nPHP Version: ".phpversion().
                    
379               "\nZend Engine Version: ".zend_version().
                    
                
nfs-storage-config.php https://github.com/qyjohn/openqrm.git | PHP | 336 lines
                    
17#progressbar {
                    
18	position: absolute;
                    
19	left: 150px;
                    
29
                    
30<?php
                    
31/*
                    
39	but WITHOUT ANY WARRANTY; without even the implied warranty of
                    
40	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    
41	GNU General Public License for more details.
                    
50// error_reporting(E_ALL);
                    
51$thisfile = basename($_SERVER['PHP_SELF']);
                    
52$RootDir = $_SERVER["DOCUMENT_ROOT"].'/openqrm/base/';
                    
53$BaseDir = $_SERVER["DOCUMENT_ROOT"].'/openqrm/';
                    
54require_once "$RootDir/include/user.inc.php";
                    
55require_once "$RootDir/class/image.class.php";
                    
                
auth_tkt.py https://bitbucket.org/eaviles/gobierno.git | Python | 380 lines
                    
1# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
                    
2# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
                    
3##########################################################################
                    
19# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
                    
20# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
                    
21# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
                    
35it's primary benefit is compatibility with mod_auth_tkt, which in turn
                    
36makes it possible to use the same authentication process with
                    
37non-Python code run under Apache.
                    
                
haml.php https://bitbucket.org/mintao/yii-phamlp.git | PHP | 287 lines
                    
1<?php
                    
2/**
                    
13 *   See below and HamlParser for a description of options
                    
14 * * Add the following line in your app_controller.php
                    
15 *   <pre>var $view = 'Haml';</pre>
                    
88	 * Characters of this type within attributes will be escaped (e.g. by
                    
89	 * replacing them with &apos;) if the character is an apostrophe or a
                    
90	 * quotation mark.
                    
160
                    
161		App::import('Vendor', 'HamlParser', array('file'=>'phamlp'.DS.'haml'.DS.'HamlParser.php'));
                    
162		$this->haml = new HamlParser($options);
                    
165	/**
                    
166	 * Renders a piece of PHP with provided parameters and returns HTML, XML, or
                    
167	 * any other string.
                    
257	function _render($___viewFn, $___dataForView, $loadHelpers = true, $cached = false) {
                    
258		if (substr($___viewFn, strrpos($___viewFn, '.')) == $this->ext) {
                    
259			$cachedViewFile = $this->_getCachedViewFileName($___viewFn);
                    
                
provider_test.php https://bitbucket.org/moodle/moodle.git | PHP | 240 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
                    
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    
12// GNU General Public License for more details.
                    
                
linear_solver.h https://gitlab.com/Namdhari/cgal-AnatoMeCo | C Header | 478 lines
                    
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
                    
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
                    
14 * Lesser General Public License for more details.
                    
27 *    YEAR=November 2005,
                    
28 *    URL=http://www.loria.fr/~levy/php/article.php?pub=../publications/papers/2005/Numerics
                    
29 * }
                    
119// Class SymmetricLinearSolverTraits
                    
120// is a traits class for solving symmetric positive definite sparse linear systems.
                    
121// It uses Conjugate Gradient solver with Jacobi preconditioner.
                    
                
ClassLoader.php https://gitlab.com/wendy-du-973/club-invest-gr2 | PHP | 481 lines
                    
17 *
                    
18 *     $loader = new \Composer\Autoload\ClassLoader();
                    
19 *
                    
39 * @author Jordi Boggiano <j.boggiano@seld.be>
                    
40 * @see    https://www.php-fig.org/psr/psr-0/
                    
41 * @see    https://www.php-fig.org/psr/psr-4/
                    
376
                    
377        $file = $this->findFileWithExtension($class, '.php');
                    
378
                    
413            $subPath = $class;
                    
414            while (false !== $lastPos = strrpos($subPath, '\\')) {
                    
415                $subPath = substr($subPath, 0, $lastPos);
                    
435        // PSR-0 lookup
                    
436        if (false !== $pos = strrpos($class, '\\')) {
                    
437            // namespaced class name
                    
                
event.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 418 lines
                    
76		$query	= 'DELETE FROM ' . $db->nameQuote( '#__easyblog_external' ) . ' '
                    
77				. 'WHERE ' . $db->nameQuote( 'post_id' ) . ' = ' . $db->Quote( $postId );
                    
78		$db->setQuery( $query );
                    
99		{
                    
100			$table->set( 'post_id' 	, $postId );
                    
101			$table->set( 'source'	, $source );
                    
193
                    
194		// If blog post is being posted from the back end and SH404 is installed, we should just use the raw urls.
                    
195		$sh404exists	= EasyBlogRouter::isSh404Enabled();
                    
262		$blogTitle			= JString::substr( $blog->title , 0 , 30 ) . '...';
                    
263		$blogLink			= EasyBlogRouter::getRoutedURL('index.php?option=com_easyblog&view=entry&id='. $comment->post_id, false, true);
                    
264
                    
410		$query		.= ' WHERE ' . $db->nameQuote( 'source' ) . ' = ' . $db->Quote( $sourcetype . '.event' );
                    
411		$query		.= ' AND ' . $db->nameQuote( 'post_id' ) . ' = ' . $db->Quote( $postId );
                    
412
                    
                
trackback.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 372 lines
                    
11 * 
                    
12 * @version $Id: trackback_cls.php,v 1.2 2004/12/11 18:54:32 Ran Exp $
                    
13 * @copyright Copyright (c) 2004 Ran Aroussi (http://www.blogish.org)
                    
14 * @author Ran Aroussi <ran@blogish.org> 
                    
15 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
                    
16 * 
                    
26	var $get_id = ''; // Retreives and holds $_GET['id'] (if not empty)
                    
27	var $post_id = ''; // Retreives and holds $_POST['id'] (if not empty)
                    
28	var $url = ''; // Retreives and holds $_POST['url'] (if not empty)
                    
28	var $url = ''; // Retreives and holds $_POST['url'] (if not empty)
                    
29	var $title = ''; // Retreives and holds $_POST['title'] (if not empty)
                    
30	var $expert = ''; // Retreives and holds $_POST['expert'] (if not empty)
                    
84        // Send the trackback
                    
85        fputs($tb_sock, "POST " . @$target["path"] . $target["query"] . " HTTP/1.1\r\n");
                    
86        fputs($tb_sock, "Host: " . $target["host"] . "\r\n");
                    
                
index.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 428 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
                    
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    
12// GNU General Public License for more details.
                    
25
                    
26require('../../config.php');
                    
27require_once($CFG->libdir . '/completionlib.php');
                    
66
                    
67$url = new moodle_url('/report/progress/index.php', array('course'=>$id));
                    
68if ($sort !== '') {
                    
85// Get group mode
                    
86$group = groups_get_course_group($course,true); // Supposed to verify group
                    
87if ($group===0 && $course->groupmode==SEPARATEGROUPS) {
                    
92// nothing to display (no users or no activities)
                    
93$reportsurl = $CFG->wwwroot.'/course/report.php?id='.$course->id;
                    
94$completion = new completion_info($course);
                    
                
ZMO.php https://github.com/ThiloWitt/core.git | PHP | 548 lines
                    
1<?php
                    
2/**
                    
18 * It can read MO files and use them for translating strings.
                    
19 * The files are passed to gettext_reader as a Stream (see streams.php)
                    
20 *
                    
38     *
                    
39     * Possible values:
                    
40     *  0: low endian
                    
148        if ($magic == -1794895138 || $magic == 2500072158) {
                    
149            // (int)0x950412de; PHP 5.2 wont convert this properly
                    
150            $this->byteorder = 0;
                    
151        } elseif ($magic == -569244523 || $magic == 3725722773) {
                    
152            // (int)0xde120495; PHP 5.2 wont convert this properly
                    
153            $this->byteorder = 1;
                    
452    /**
                    
453     * Get possible plural forms from MO header.
                    
454     *
                    
                
image_variants.html https://github.com/garbray/Web-Library.git | HTML | 149 lines
                    
69<li><a href="bgimages">no-repeat position:default</a></li>
                    
70<li><a href="bgimages" style="background-position:left center;">no-repeat position:left-center</a></li>
                    
71<li><a href="bgimages" style="background-position:left bottom;">no-repeat position:left-bottom</a></li>
                    
85<li><a href="bgimages" style="background-repeat:repeat-y; background-position:center center;">repeat-y position:center-center</a></li>
                    
86<li><a href="bgimages" style="background-repeat:repeat-y; background-position:50% 50%;">repeat-y position:50%-50%</a></li>
                    
87<li><a href="bgimages" style="background-repeat:repeat-y; background-position:4px 8px;">repeat-y position:4px-8px</a></li>
                    
96<li><a href="bgimages" style="background-repeat:repeat-x; background-position:right bottom;">repeat-x position:right-bottom</a></li>
                    
97<li><a href="bgimages" style="background-repeat:repeat-x; background-position:center center;">repeat-x position:center-center</a></li>
                    
98<li><a href="bgimages" style="background-repeat:repeat-x; background-position:50% 50%;">repeat-x position:50%-50%</a></li>
                    
139</div>
                    
140<p><a href="bgimages" style="line-height:170%;padding-left:20px;background:url(images/pdf.png) no-repeat yellow;background-position:left top;">paragraph link no-repeat position:default</a></p>
                    
141<p style="text-align:left;line-height:170%;padding-left:20px;background:url(images/pdf.png) no-repeat yellow;background-position:left top;">paragraph text no-repeat position:left-top; more text text more text text bla bla sdfjkhs sdfsjksdfks sdfkjsfsf skjfh ksjdfhsd </p>
                    
141<p style="text-align:left;line-height:170%;padding-left:20px;background:url(images/pdf.png) no-repeat yellow;background-position:left top;">paragraph text no-repeat position:left-top; more text text more text text bla bla sdfjkhs sdfsjksdfks sdfkjsfsf skjfh ksjdfhsd </p>
                    
142<p style="text-align:left;line-height:170%;padding-left:20px;background:url(images/pdf.png) no-repeat yellow;background-position:left center;">paragraph text no-repeat position:left-center; more text text more text text bla bla sdfjkhs sdfsjksdfks sdfkjsfsf skjfh ksjdfhsd </p>
                    
143<p>
                    
                
slot.c https://github.com/andikleen/linux-misc.git | C | 380 lines
                    
212 * In most cases, @pci_bus, @slot_nr will be sufficient to uniquely identify
                    
213 * a slot. There is one notable exception - pSeries (rpaphp), where the
                    
214 * @slot_nr cannot be determined until a device is actually inserted into
                    
216 *
                    
217 * The following semantics are imposed when the caller passes @slot_nr ==
                    
218 * -1. First, we no longer check for an existing %struct pci_slot, as there
                    
                
JschConfigSessionFactory.java https://bitbucket.org/cofarrell/jgit.git | Java | 294 lines
                    
12 * accompanies this distribution, is reproduced below, and is
                    
13 * available at http://www.eclipse.org/org/documents/edl-v10.php
                    
14 *
                    
36 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
                    
37 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                    
38 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
                    
45 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
                    
46 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                    
47 */
                    
231			jsch = new JSch();
                    
232			jsch.setHostKeyRepository(defaultJSch.getHostKeyRepository());
                    
233			jsch.addIdentity(identityKey);
                    
                
TranslationDebugCommand.php https://gitlab.com/Isaki/le331.fr | PHP | 268 lines
                    
1<?php
                    
2
                    
59
                    
60  <info>php %command.full_name% en AcmeDemoBundle</info>
                    
61
                    
63
                    
64  <info>php %command.full_name% --domain=messages en AcmeDemoBundle</info>
                    
65
                    
67
                    
68  <info>php %command.full_name% --only-missing en AcmeDemoBundle</info>
                    
69
                    
71
                    
72  <info>php %command.full_name% --only-unused en AcmeDemoBundle</info>
                    
73
                    
75
                    
76  <info>php %command.full_name% en</info>
                    
77
                    
                
ValidFunctionNameSniff.php https://github.com/mikesname/ehri-ica-atom.git | PHP | 263 lines
                    
17if (class_exists('PHP_CodeSniffer_Standards_AbstractScopeSniff', true) === false) {
                    
18    throw new PHP_CodeSniffer_Exception('Class PHP_CodeSniffer_Standards_AbstractScopeSniff not found');
                    
19}
                    
89     */
                    
90    protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope)
                    
91    {
                    
161     *
                    
162     * @param PHP_CodeSniffer_File $phpcsFile The file being processed.
                    
163     * @param int                  $stackPtr  The position where this token was
                    
167     */
                    
168    protected function processTokenOutsideScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
169    {
                    
186        $camelCapsPart = '';
                    
187        $underscorePos = strrpos($functionName, '_');
                    
188        if ($underscorePos === false) {
                    
                
k-Means_clustering.php https://github.com/srahn/kvwmap.git | PHP | 233 lines
                    
1<?php
                    
2###################################################################
                    
15# but WITHOUT ANY WARRANTY; without even the implied warranty of  #
                    
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the    #
                    
17# GNU General Public License for more details.                    #
                    
                
bp-loader.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 487 lines
                    
262		if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) )
                    
263			require( WP_PLUGIN_DIR . '/bp-custom.php' );
                    
264
                    
394				require( $this->plugin_dir . 'bp-core/bp-core-functions.php' );
                    
395				require( $this->plugin_dir . 'bp-core/bp-core-template.php'  );
                    
396				require( $this->plugin_dir . 'bp-core/bp-core-update.php'    );
                    
417			require( $this->plugin_dir . 'bp-core/bp-core-cache.php'      );
                    
418			require( $this->plugin_dir . 'bp-core/bp-core-cssjs.php'      );
                    
419			require( $this->plugin_dir . 'bp-core/bp-core-update.php'     );
                    
419			require( $this->plugin_dir . 'bp-core/bp-core-update.php'     );
                    
420			require( $this->plugin_dir . 'bp-core/bp-core-options.php'    );
                    
421			require( $this->plugin_dir . 'bp-core/bp-core-classes.php'    );
                    
464			'setup_current_user',       // Setup currently logged in user
                    
465			'register_post_types',      // Register post types
                    
466			'register_post_statuses',   // Register post statuses
                    
                
functions.recaptchalib.php https://github.com/dkobia/Garden.git | PHP | 278 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * This is a PHP library that handles calling reCAPTCHA.
                    
4 *    - Documentation and latest version
                    
4 *    - Documentation and latest version
                    
5 *          http://recaptcha.net/plugins/php/
                    
6 *    - Get a reCAPTCHA API Key
                    
27 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
                    
28 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
                    
29 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
                    
59/**
                    
60 * Submits an HTTP POST to a reCAPTCHA server
                    
61 * @param string $host
                    
66 */
                    
67function _recaptcha_http_post($host, $path, $data, $port = 80) {
                    
68
                    
                
QuoteController.php https://github.com/gryzz/crystal_magento.git | PHP | 267 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
105    {
                    
106        if ($this->getRequest()->getPost()) {
                    
107            try {
                    
109                Mage::dispatchEvent('adminhtml_controller_salesrule_prepare_save', array('request' => $this->getRequest()));
                    
110                $data = $this->getRequest()->getPost();
                    
111
                    
142                unset($data['rule']);
                    
143                $model->loadPost($data);
                    
144
                    
                
 

Source

Language