100+ results for 'php print_r'
Not the results you expected?
dumper.php (https://github.com/cgajardo/repositorium.git) PHP · 360 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: dumper.php 1723 2008-04-08 00:34:10Z lastcraft $
7 */
8 /**
22 /**
23 * Renders a variable in a shorter form than print_r().
24 * @param mixed $value Variable to render as a string.
25 * @return string Human readable string form.
346 * Sends a formatted dump of a variable to a string.
347 * @param mixed $variable Variable to display.
348 * @return string Output from print_r().
349 * @access public
350 * @static
show2.php (https://gitlab.com/redwan4re/web-apps-php-26) PHP · 182 lines
13 <!-- /theme JS files -->
15 <?php include_once 'header.php'; ?>
16 <!-- Page container -->
17 <div class="page-container">
40 <!-- detached sidebar -->
41 <?php include_once 'sidebar.php'; ?>
42 <!-- /sidebar -->
59 <a type="button" class="btn bg-teal btn-labeled" href="edit.php?id=<?php echo $oneData['unique_id']; ?>"><b><i class="icon-pencil7"></i></b> Edit Course</a>
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>
63 </div>
180 </script>
182 <?php include_once 'footer.php'; ?>
dumper.php (https://github.com/greevex/mzz-framework-blank-application.git) PHP · 360 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: dumper.php 2460 2008-04-08 21:03:22Z mz $
7 */
8 /**
22 /**
23 * Renders a variable in a shorter form than print_r().
24 * @param mixed $value Variable to render as a string.
25 * @return string Human readable string form.
346 * Sends a formatted dump of a variable to a string.
347 * @param mixed $variable Variable to display.
348 * @return string Output from print_r().
349 * @access public
350 * @static
register.php (https://gitlab.com/khairulcse76/exam) PHP · 261 lines
1 <?php
3 namespace examApps\register;
26 public function prepare($data = '') {
27 // echo '<pre>';
28 // print_r($data);
29 if (array_key_exists('name', $data)) {
30 $this->name = $data['name'];
130 unset($_SESSION['user']);
131 unset($_SESSION['id']);
132 header('location:index.php');
133 }
140 $stmt->execute();
141 $row = $stmt->fetchAll();
142 // print_r($row);
143 return $row;
144 } catch (Exception $ex) {
UserApi.md (https://gitlab.com/akkhil2012/swagger-codegen) Markdown · 374 lines
dumper.php (https://github.com/kugu/limb.git) PHP · 360 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: dumper.php 7198 2008-11-01 11:57:17Z korchasa $
7 */
8 /**
22 /**
23 * Renders a variable in a shorter form than print_r().
24 * @param mixed $value Variable to render as a string.
25 * @return string Human readable string form.
346 * Sends a formatted dump of a variable to a string.
347 * @param mixed $variable Variable to display.
348 * @return string Output from print_r().
349 * @access public
350 * @static
FoldersApi.md (https://github.com/sendinblue/APIv3-php-library.git) Markdown · 366 lines
20 ### Example
21 ```php
22 <?php
23 require_once(__DIR__ . '/vendor/autoload.php');
25 // Configure API key authorization: api-key
42 try {
43 $result = $apiInstance->createFolder($createFolder);
44 print_r($result);
45 } catch (Exception $e) {
46 echo 'Exception when calling FoldersApi->createFolder: ', $e->getMessage(), PHP_EOL;
77 ### Example
78 ```php
79 <?php
level_search.blade.php (https://gitlab.com/ehubnepal/educationhubnepal) PHP · 160 lines
config.class.php (https://github.com/baigoStudio/baigoSSO.git) PHP · 427 lines
1 <?php
2 /*-----------------------------------------------------------------
3 !!!!警告!!!!
232 }
234 //print_r(self::$config);
236 return $_mix_return;
353 public static function write($path, $value = '') {
354 if (is_array($value)) {
355 $_str_outPut = '<?php return ' . var_export($value, true) . ';';
356 } else if (is_numeric($value)) {
357 $_str_outPut = '<?php return ' . $value . ';';
358 } else if (is_string($value)) {
359 $_str_outPut = '<?php return \'' . $value . '\';';
360 }
TransactionalSMSApi.md (https://gitlab.com/i-have-a-green/digitemis-v3) Markdown · 266 lines
18 ### Example
19 ```php
20 <?php
21 require_once(__DIR__ . '/vendor/autoload.php');
23 // Configure API key authorization: api-key
47 try {
48 $result = $apiInstance->getSmsEvents($limit, $startDate, $endDate, $offset, $days, $phoneNumber, $event, $tags);
49 print_r($result);
50 } catch (Exception $e) {
51 echo 'Exception when calling TransactionalSMSApi->getSmsEvents: ', $e->getMessage(), PHP_EOL;
89 ### Example
90 ```php
91 <?php
ControllerTest.php (https://github.com/corneliusweiss/Tine-2.0-Open-Source-Groupware-and-CRM.git) PHP · 266 lines
1 <?php
2 /**
3 * Tine 2.0 - http://www.tine20.org
164 $allSyncrotonFolders = $controller->getAllFolders();
166 $this->assertArrayHasKey($this->_specialFolderName, $allSyncrotonFolders, "key {$this->_specialFolderName} not found in " . print_r($allSyncrotonFolders, true));
167 }
192 $this->fail('should have thrown Syncroton_Exception_NotFound: '
193 . var_export($syncrotonContact, TRUE)
194 . ' tine contact: ' . print_r(Addressbook_Controller_Contact::getInstance()->get($serverId)->toArray(), TRUE));
195 } catch (Syncroton_Exception_NotFound $senf) {
196 $this->assertEquals('Syncroton_Exception_NotFound', get_class($senf));
222 $changedEntries = $controller->getChangedEntries($syncrotonFolder->serverId, new DateTime('2000-01-01'));
224 $this->assertContains($serverId, $changedEntries, 'did not get changed record id in ' . print_r($changedEntries, TRUE));
225 }
array.php (https://bitbucket.org/matyhaty/senses-thwaites.git) PHP · 290 lines
1 <?php
3 /**
4 * Array Extension for DataMapper classes.
5 *
6 * Quickly convert DataMapper models to-and-from PHP arrays.
7 *
8 * @license MIT License
232 {
233 //echo 'heelo';
234 //echo 'All_from_array<hr><pre>'.print_r($data, true).'</pre><hr>';
236 // clear the current object
287 }
289 /* End of file array.php */
290 /* Location: ./application/datamapper/array.php */
test.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 162 lines
1 <?php
2 class ControllerSupplierTest extends Controller {
3 public function index(){
18 $this->response->setOutput($this->render());
19 //print_r($order_query->row['supplier']); //$order_info
20 print_r($query->row['email']);
21 //print_r($this->config->get('free_checkout_order_status_id')); $this->cart->getProducts()
22 $products = $this->cart->getProducts();
23 foreach ($products as $product){
26 // }
27 //print_r($product['supplier']);
28 }
FieldnameRelatedTest.php (https://github.com/1989gaurav/Propel.git) PHP · 394 lines
1 <?php
3 /**
28 * @package misc
29 */
30 class FieldnameRelatedTest extends PHPUnit_Framework_TestCase
31 {
32 protected function setUp()
34 parent::setUp();
35 set_include_path(get_include_path() . PATH_SEPARATOR . "fixtures/bookstore/build/classes");
36 require_once 'bookstore/map/BookTableMap.php';
37 require_once 'bookstore/BookPeer.php';
38 require_once 'bookstore/Book.php';
39 }
teilgewaesserbenutzungen.php (https://github.com/srahn/kvwmap.git) PHP · 352 lines
1 <?php
2 class Teilgewaesserbenutzungen extends WrPgObject {
282 $this->addToArray($teilgewaesserbenutzung_value_array, 'entgeltsatz', $entgeltsatz);
284 // print_r($teilgewaesserbenutzung_value_array);
285 $this->log->log_debug('teilgewaesserbenutzung_value_array: ' . var_export($teilgewaesserbenutzung_value_array, true));
304 // $this->addToArray($teilgewaesserbenutzung_value_array, 'befreiungstatbestaende', $befreiungstatbestaende);
306 // // print_r($teilgewaesserbenutzung_value_array);
307 // $this->log->log_debug('teilgewaesserbenutzung_value_array: ' . var_export($teilgewaesserbenutzung_value_array, true));
Soft.php (https://gitlab.com/redwan4re/web-apps-php-26) PHP · 249 lines
1 <?php
3 namespace App;
70 $_SESSION['msg'] = ' <h5 style="color:green;">Software Successfully Added!</h5> ';
71 unset($_SESSION['formData']);
72 header('location: add.php');
73 } catch (\PDOException $e) {
74 echo 'Error:' . $e->getMessage();
75 }
76 }else{
77 header('location: add.php');
78 }
79 }
113 // $_SESSION['msg'] = 'Data Successfully updated';
114 $_SESSION['msg'] = ' <h5 style="color:green;">Software Successfully Updated!</h5> ';
115 header('location: show.php');
116 } catch(PDOException $e) {
117 echo 'Error: ' . $e->getMessage();
PrettyPrinterAbstract.php (https://gitlab.com/xolotsoft/pumasruiz) PHP · 262 lines
97 /**
98 * Pretty prints a file of statements (includes the opening <?php tag if it is required).
99 *
100 * @param PHPParser_Node[] $stmts Array of statements
143 $pNodes[] = $this->pComments($node->getAttribute('comments', array()))
144 . $this->p($node)
145 . ($node instanceof PHPParser_Node_Expr ? ';' : '');
146 }
168 }
170 protected function pInfixOp($type, PHPParser_Node $leftNode, $operatorString, PHPParser_Node $rightNode) {
171 list($precedence, $associativity) = $this->precedenceMap[$type];
ARedisSet.php (https://github.com/phpnode/YiiRedis.git) PHP · 358 lines
Clinic.php (https://gitlab.com/jeamar1234/medicloud) PHP · 242 lines
Admin.php (https://github.com/intraweb-modules13/IWstats.git) PHP · 225 lines
function.html_select_time.php (https://github.com/md-tech/openemr.git) PHP · 192 lines
1 <?php
2 /**
3 * Smarty plugin
13 * Name: html_select_time<br>
14 * Purpose: Prints the dropdowns for time selection
15 * @link http://smarty.php.net/manual/en/language.function.html.select.time.php {html_select_time}
16 * (Smarty online manual)
17 * @param array
34 $minute_interval = 1;
35 $second_interval = 1;
36 /* Should the select boxes be part of an array when returned from PHP?
37 e.g. setting it to "birthday", would create "birthday[Hour]",
38 "birthday[Minute]", "birthday[Seconds]" & "birthday[Meridian]".
101 'values' => $hours,
102 'selected' => strftime($hour_fmt, $time),
103 'print_result' => false),
104 $smarty);
105 $html_result .= "</select>\n";
despacho.php (https://bitbucket.org/angelus_developers/vasoleche.git) PHP · 273 lines
1 <?php
3 if (!defined('BASEPATH'))
32 public function registrarIns() {
33 //print_r($_POST);
34 extract($_POST);
35 //echo "tenemos: nombre:".$txtNombreInsumo." unidad:".$txtUnidadInsumo;
49 $data['informacion'] = $this->despacho_model->qryDespacho();
50 /* echo "<pre>";
51 print_r($datos);
52 echo "</pre>"; */
53 $this->load->view("despacho/qry_view", $data);
67 public function panel_updDespacho() {
68 //print_r($_POST["json"]);
69 $algo = json_decode($this->input->post("json"));
70 $iddespacho = $algo->nDesId;
mfields-post-label.php (https://github.com/kaambiz/nighthawk.git) PHP · 218 lines
feed.php (https://github.com/dstockto/joind.in.git) PHP · 229 lines
PrettyPrinterAbstract.php (https://gitlab.com/x33n/PHP-Parser) PHP · 268 lines
1 <?php
3 namespace PhpParser;
5 use PhpParser\Node\Expr;
6 use PhpParser\Node\Stmt;
106 /**
107 * Pretty prints a file of statements (includes the opening <?php tag if it is required).
108 *
109 * @param Node[] $stmts Array of statements
116 $p = preg_replace('/^\?>\n?/', '', $p, -1, $count);
117 $p = preg_replace('/<\?php$/', '', $p);
119 if (!$count) {
user-profile.tpl.php (https://github.com/front/oslo2011.drupalcamp.git) PHP · 136 lines
51 <h2><?php print check_plain($account->profile_name);?></h2>
53 <div class="fields"><?php print check_plain($account->profile_place); ?> (<?php print check_plain($account->profile_location); ?>)</div>
55 <?php if($account->profile_linkedin or $account->profile_twitter): ?>
59 <?php if($account->profile_linkedin): ?>
60 <td><a href="<?php print check_url($account->profile_linkedin); ?>"><img src="http://www.linkedin.com/img/webpromo/btn_viewmy_160x25.png" width="160" height="25" border="0" alt="Visit <?php print check_plain($account->profile_name); ?>s profile on LinkedIn" /></a></td>
61 <?php endif; ?>
63 <?php if($account->profile_twitter): ?>
64 <td><a href="<?php print check_url($account->profile_twitter); ?>"><img src="http://twitter-badges.s3.amazonaws.com/follow_me-b.png" alt="Follow <?php print check_plain($account->profile_name); ?> on Twitter" /></a></td>
65 <?php endif; ?>
80 <ul>
81 <?php if ($account->profile_drucontribmodules == '1'): ?>
82 <li>I have contributed to module developement.</li>
83 <?php endif ?>
controllers.php (https://bitbucket.org/ashwanthkumar/blueignis_workspace.git) PHP · 321 lines
132 layout('dashboard.html.php');
133 // Getting the user from the session
134 set('user', $_SESSION['user']);
166 layout('dashboard.html.php');
167 // Getting the user from the session
168 set('user', $_SESSION['user']);
295 // Starting the Campaign Threaded Deamon Process
296 // TODO Need to submit the Campaign to the Storm
297 // exec("php /home/blueignis/blueignis/spout/service/ThreadedCampaignQueueWorker.php > /home/blueignis/blueignis/spot/service/campaign-" . $newCid . ".log 2>&1 &");
299 flash('created_new', true);
RestProducts.php (https://bitbucket.org/AntonTyutin/pretty-simpla.git) PHP · 198 lines
Object.php (https://bitbucket.org/tschrock52/ethodeshare.git) PHP · 291 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
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
12 * obtain it through the world-wide-web, please send an email
22 * @package Varien_File
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 */
33 */
35 require_once("Varien/Object.php");
36 require_once('Varien/Directory/IFactory.php');
FieldnameRelatedTest.php (https://github.com/esimionato/Propel2.git) PHP · 394 lines
1 <?php
3 /**
28 * @package misc
29 */
30 class FieldnameRelatedTest extends \PHPUnit_Framework_TestCase
31 {
32 protected function setUp()
34 parent::setUp();
35 set_include_path(get_include_path() . PATH_SEPARATOR . "fixtures/bookstore/build/classes");
36 require_once 'bookstore/map/BookTableMap.php';
37 require_once 'bookstore/BookPeer.php';
38 require_once 'bookstore/Book.php';
39 }
definitions.php (https://gitlab.com/scsistemas/superprime) PHP · 262 lines
1 <?php
2 //$urlWS = 'http://qa.superprimeweb.com/admin/index.php?';
3 $urlWS = 'http://localhost:8080/superprime/admin/index.php?';
4 $rutaFotos = '../images/fotos/';
5 //$rutaFotos = $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] . '/backend/images/fotos/';
12 function comprobarRenovarToken($dataML,$urlWS){
13 $fecExpira = $dataML['ml_fecToken'] + $dataML['ml_expires'];
14 //print_r('fecha expira: ' . $fecExpira . ', fecha actual: ' . time() . ', fecha(300s): ' . ($fecExpira - time()) . '</br>');
15 if(time() > ($fecExpira) || ($fecExpira - time()) < 300){//si el token expiro o su tiempo de vida es menor de 5 min(300 Seg) se renueva
16 $tokenPre = $dataML['ml_token'];
17 //print_r('TokenPre: '.$tokenPre.'</br>');
18 $dataML = refreshToken($dataML, $urlWS);
19 $tokenPost = $dataML['ml_token'];
DatabaseAdapter.php (https://github.com/drawig/THM-PHP-Demo-Projects.git) PHP · 377 lines
accesgroupes_fonctions.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 284 lines
function.gnupg-decryptverify.html (https://bitbucket.org/thncr/manuals.git) HTML · 124 lines
10 <div class="next" style="text-align: right; float: right;"><a href="function.gnupg-encrypt.html">gnupg_encrypt</a></div>
11 <div class="up"><a href="ref.gnupg.html">GnuPG 函数</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13 </div><hr /><div id="function.gnupg-decryptverify" class="refentry">
14 <div class="refnamediv">
99 <div class="phpcode"><code><span style="color: #000000">
100 <span style="color: #0000BB"><?php<br />$plaintext </span><span style="color: #007700">= </span><span style="color: #DD0000">""</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$res </span><span style="color: #007700">= </span><span style="color: #0000BB">gnupg_init</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">gnupg_adddecryptkey</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">,</span><span style="color: #DD0000">"8660281B6051D071D94B5B230549F9DC851566DC"</span><span style="color: #007700">,</span><span style="color: #DD0000">"test"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$info </span><span style="color: #007700">= </span><span style="color: #0000BB">gnupg_decryptverify</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">,</span><span style="color: #0000BB">$text</span><span style="color: #007700">,</span><span style="color: #0000BB">$plaintext</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$info</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?></span>
101 </span>
102 </code></div>
109 <div class="phpcode"><code><span style="color: #000000">
110 <span style="color: #0000BB"><?php<br />$plaintext </span><span style="color: #007700">= </span><span style="color: #DD0000">""</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$gpg </span><span style="color: #007700">= new </span><span style="color: #0000BB">gnupg</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$gpg </span><span style="color: #007700">-> </span><span style="color: #0000BB">adddecryptkey</span><span style="color: #007700">(</span><span style="color: #DD0000">"8660281B6051D071D94B5B230549F9DC851566DC"</span><span style="color: #007700">,</span><span style="color: #DD0000">"test"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$info </span><span style="color: #007700">= </span><span style="color: #0000BB">$gpg </span><span style="color: #007700">-> </span><span style="color: #0000BB">decryptverify</span><span style="color: #007700">(</span><span style="color: #0000BB">$text</span><span style="color: #007700">,</span><span style="color: #0000BB">$plaintext</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$info</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?></span>
111 </span>
112 </code></div>
121 <div class="next" style="text-align: right; float: right;"><a href="function.gnupg-encrypt.html">gnupg_encrypt</a></div>
122 <div class="up"><a href="ref.gnupg.html">GnuPG 函数</a></div>
123 <div class="home"><a href="index.html">PHP Manual</a></div>
124 </div></body></html>
sfOAuth1.class.php (https://github.com/edse/Elastball.git) PHP · 383 lines
1 <?php
2 /**
3 *
132 if((is_null($oauth_token) || is_null($oauth_token_secret)) && $this->getLogger())
133 {
134 $error = sprintf('{OAuth} access token failed - %s returns %s', $this->getName(), print_r($params, true));
135 $this->getLogger()->err($error);
136 }
137 elseif($this->getLogger())
138 {
139 $message = sprintf('{OAuth} %s return %s', $this->getName(), print_r($params, true));
140 $this->getLogger()->info($message);
141 }
161 /**
162 * (non-PHPdoc)
163 * @see plugins/sfDoctrineOAuthPlugin/lib/sfOAuth::requestAuth()
164 */
Link.php (https://bitbucket.org/acidel/buykoala.git) PHP · 147 lines
1 <?php
2 /**
3 * WDCA - Sweet Tooth
10 * http://www.wdca.ca/sweet_tooth/sweet_tooth_license.txt
11 * The Open Software License is available at this URL:
12 * http://opensource.org/licenses/osl-3.0.php
13 *
14 * DISCLAIMER
33 * @package [TBT_Rewards]
34 * @copyright Copyright (c) 2009 Web Development Canada (http://www.wdca.ca)
35 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
36 */
116 */
117 public function canCheckout() {
118 // die(print_r($points_spent, true));
119 $customer_is_logged_in = $this->_getRewardsSess()->isCustomerLoggedIn();
120 if($customer_is_logged_in) {
VarClonerTest.php (https://github.com/livinglab/openlab.git) PHP · 269 lines
1 <?php
3 /*
12 namespace Symfony\Component\VarDumper\Tests\Cloner;
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\VarDumper\Cloner\VarCloner;
22 public function testMaxIntBoundary()
23 {
24 $data = array(PHP_INT_MAX => 123);
26 $cloner = new VarCloner();
57 EOTXT;
58 $this->assertSame(sprintf($expected, PHP_INT_MAX), print_r($clone, true));
59 }
function.html_select_time.php (https://bitbucket.org/seyar/kinda.local.git) PHP · 168 lines
1 <?php
2 function quicky_function_html_select_time($params,$quicky)
3 {
14 $minute_interval = 1;
15 $second_interval = 1;
16 /* Should the select boxes be part of an array when returned from PHP?
17 e.g. setting it to "birthday", would create "birthday[Hour]",
18 "birthday[Minute]", "birthday[Seconds]" & "birthday[Meridian]".
81 'values' => $hours,
82 'selected' => strftime($hour_fmt, $time),
83 'print_result' => false),
84 $quicky);
85 $html_result .= "</select>\n";
108 'values' => $minutes,
109 'selected' => $selected,
110 'print_result' => false),
111 $quicky);
112 $html_result .= "</select>\n";
SystemStateEdit.php (https://gitlab.com/Drulenium-bot/devel) PHP · 189 lines
speaker_profile_model.php (https://github.com/rickogden/joind.in.git) PHP · 282 lines
nfl_scrape.php (https://github.com/mikeygee/miscellaneous.git) PHP · 243 lines
1 <?php
2 // NFL score and odds scraper
4 include 'simple_html_dom.php';
6 // returns array of score maps from NFL.com
173 }
174 /*------------
175 usage: nfl_scrape.php [options]
176 -scores : print current scores to console
177 -scores [year] [week] : print scores from a specific week
189 else if(sizeof($argv) == 4)
190 $scores = getNFLScores($argv[2], $argv[3]);
191 print_r($scores);
192 }
193 else if($argv[1] == '-odds') {
CacheTest.php (https://github.com/friendica/friendica.git) PHP · 345 lines
1 <?php
2 /**
3 * @copyright Copyright (C) 2010-2022, the Friendica project
261 self::assertEquals('supersecure', $configCache->get('database', 'password'));
262 self::assertNotEquals('supersecure', print_r($configCache->get('database', 'password'), true));
263 self::assertEquals('notsecured', print_r($configCache->get('database', 'username'), true));
278 self::assertEquals('supersecure', $configCache->get('database', 'password'));
279 self::assertEquals('supersecure', print_r($configCache->get('database', 'password'), true));
280 self::assertEquals('notsecured', print_r($configCache->get('database', 'username'), true));
Frame.php (https://github.com/ftaiolivista/Zend-Framework-Namespaced-.git) PHP · 369 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Frame.php 22662 2010-07-24 17:37:36Z mabe $
21 */
30 * @see Zend_Queue_Stomp_FrameInterface
31 */
32 require_once 'Zend/Queue/Stomp/FrameInterface.php';
34 /**
112 {
113 if (!is_bool($auto)) {
114 require_once 'Zend/Queue/Exception.php';
115 throw new Queue\Exception('$auto is not a boolean');
116 }
carritoController.php (https://gitlab.com/fabian.morales/marlon_becerra) PHP · 180 lines
1 <?php
3 class carritoController extends myController{
140 if (!$detalle->save()){
141 throw new \Exception('No se pudo guardar el detalle de la cotizacion');
142 //myApp::redirect("index.php", "No se pudo guardar el detalle del pedido");
143 }
144 }
155 else{
156 throw new \Exception('No se pudo crear la cotizacion');
157 //myApp::redirect("index.php", "No se crear el pedido");
158 }
159 }catch(Exception $e){
160 $pdo->rollback();
161 throw $e;
162 //myApp::redirect("index.php", "No se pudo realizar el pedido");
163 }
164 }
Improved.php (https://github.com/maniator/SmallFry.git) PHP · 236 lines
Decoder.php (https://github.com/ewandor/horde.git) PHP · 575 lines
1 <?php
2 /**
3 * ActiveSync specific WBXML decoder.
9 /**
10 * File : wbxml.php
11 * Project : Z-Push
12 * Descr : WBXML mapping file
135 } else {
136 $this->_logger->err('Unmatched end tag:');
137 $this->_logger->err(print_r($element, true));
138 $this->_ungetElement($element);
139 }
154 } else {
155 $this->_logger->err('Unmatched content:');
156 $this->_logger->err(print_r($element, true));
157 $this->_ungetElement($element);
158 }
category.php (https://gitlab.com/akanshagupta/jigglylanding) PHP · 708 lines
386 <li><a href="<?php echo base_url(); ?>">Home</a></li>
387 <li>
388 <a href="<?php echo base_url(); ?>category/<?php echo str_replace(" ", "-", strtolower($category[0]['category_Name'])); ?>/<?php echo $category[0]['categoryId']; ?>"> <?php echo $category[0]['category_Name']; ?> </a>
389 </li>
390 </ul>
534 <?php } ?>
535 <h4>
536 <a href="<?php echo base_url(); ?>brand/<?php echo str_replace(" ", "-", strtolower($product['brand_Name'])); ?>/<?php echo $product['brandId']; ?>/legacy"><?php echo $product['brand_Name']; ?></a>
537 </h4>
538 <a href="javascript:void(0)" class="myan follow-brand-sectn"
568 <div class="relative-struct">
569 <h1 class="hea"><a
570 href="<?php echo base_url(); ?>category/<?php echo str_replace(" ", "-", strtolower($product['category_Name'])); ?>/<?php echo $product['categoryId']; ?>"><?php echo $product['category_Name']; ?></a>
571 <div class="tooltip cat-follow-popup">
572 <div class="tab">
DadosObito.php (https://gitlab.com/SFMSP/Hagape) PHP · 480 lines
1 <?php
2 namespace Agencia\Service;
178 //$data['falecido'] = $this->falecidoRepository->findOneBy(array('contratacao' => $contratacao->id));
179 //print_r($data['falecido']);die;
181 //$data['contratacao'] = $this->getEm()->getReference('Agencia\Entity\Contratacao', $contratacao->id);
222 }else if($data['localFalecimento']!==''){
223 //print_r($data['localFalecimento']);die;
224 $data['nomeLocalFalecimento'] = $data['localFalecimento'];
225 $data['enderecoFalecimento'] = $data['enderecoFalecimento'];
Container.php (https://gitlab.com/SFMSP/Hagape) PHP · 795 lines
1 <?php
3 namespace Agencia\Container;
57 $contratacao = new SessionContainer('Contratacao');
58 $arCampos = $sm->get('Agencia\Repository\ProcessoCampoRepository')->recuperaObrigatoriedadeCamposProcesso(4, $contratacao->tipoOperacao, $contratacao->tipoContratacao, $contratacao->tipoDestinoFinal);
59 // print_r($arCampos);die;
60 $inputFilter = new \Agencia\InputFilter\DadosObito($arCampos);
61 $form = new \Agencia\Form\DadosObito($inputFilter, $contratacao, $estados, $processoRepository, $medicos,$arCampos,$transporte,$carro);
766 /**
767 * Retorna os serviços do PHPOffice
768 * @return array
769 */
773 'Agencia\WordService\Notas' => function($sm) {
774 $config = $sm->get('BaseConfig');
775 return new \Agencia\WordService\Notas(new \PhpOffice\PhpWord\PhpWord(), $config['tmp'], $config['uploads'], $config['templates']);
776 },
777 );
cts_indicator_model.php (https://gitlab.com/bipsahu/ptcs) PHP · 265 lines
1 <?php
3 /*
20 $data['indicator_name'] = $formData[0]["value"];
21 $data['task_category_id'] = $formData[1]["value"];
22 // print_r($_POST);die;
23 }
24 else
217 // 'name' => $this->input->post('task_category')
218 // );
219 // // print_r($data);die;
220 // $result = $this->db->get_where('task_category', array('name' => $data['name']));
221 // if ($result->num_rows == 1) {
246 // );
247 // // echo $taskId;
248 // // print_r($data);die;
User.php (https://github.com/intraweb-modules13/IWmain.git) PHP · 826 lines
element_info.php (https://github.com/drobbins/s3db.git) PHP · 439 lines
1 <?php
2 /**
164 {
165 extract($S);
166 #echo '<pre>';print_r($S);
167 #$db= $_SESSION['db'];
168 $sql ="select r.subject, r.verb, r.object, s.statement_id, s.project_id, s.resource_id, s.rule_id, s.value, s.file_name, s.notes, s.created_on, s.created_by, s.modified_by, s.modified_on from s3db_rule as r, s3db_statement as s where r.rule_id = s.rule_id and s.statement_id='".$statement_id."'";
246 $shared_rules = list_shared_rules ($project_id, '', $object);
248 #echo '<pre>'.$object;print_r($shared_rules);
249 #When looking at the shared rules, find which one hve UID as object, those are the ones that are reosurces
331 $user = array_merge($account, $addr);
333 //print_r($user);
334 return $user;
335 }
AddNewRecords.php (https://bitbucket.org/droidzone/dns-manager.git) PHP · 282 lines
Reports.php (https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git) PHP · 126 lines
1 <?php
2 /*+**********************************************************************************
3 * The contents of this file are subject to the vtiger CRM Public License Version 1.0
114 'Emails sent to Leads' => 'Emails sent to Leads' ,
115 'Emails sent to Vendors' => 'Emails sent to Vendors' ,
116 'LBL_PRINT_REPORT' => 'Print Report' , // TODO: Review
117 'LBL_RECORDS' => 'Records' , // TODO: Review
118 'LBL_LIMIT_EXCEEDED' => 'Only 1000 + records are displayed. Use CSV or Excel Export to see all the records', // TODO: Review
Profile.php (https://gitlab.com/jLKisni/furandpaw-frontend) PHP · 406 lines
1 <?php
3 class Profile extends MY_Controller{
379 $this->pagination->initialize($config);
380 $petsdata =$this->Pets_pagination->fetch_pets($config['per_page'],$this->uri->segment(3));
381 //echo print_r($petsdata);
382 $queryuserdata = $this->M_Auth->queryUser();
383 $queryprofilephoto =$this->M_Profile->getprofilePhoto();
dumper.php (https://github.com/teamplus/teamplus.git) PHP · 360 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: dumper.php 6354 2009-04-15 02:41:21Z mvdam $
7 */
8 /**
22 /**
23 * Renders a variable in a shorter form than print_r().
24 * @param mixed $value Variable to render as a string.
25 * @return string Human readable string form.
346 * Sends a formatted dump of a variable to a string.
347 * @param mixed $variable Variable to display.
348 * @return string Output from print_r().
349 * @access public
350 * @static
regions5.js.php (https://github.com/cnlpete/Minecraft-Overviewer-Addons.git) PHP · 132 lines
1 <?php
2 // OPTIONS HERE.... ooooOooo so many options it's overwhelming, how are you ever going to get through all of these!?
3 $yml = @'<serverdir>\plugins\WorldGuard\worlds\<worldname>\regions.yml';
12 $output .= "overviewer.collections.regionDatas.push([\n";
14 require_once "spyc.php"; // YAML Library.
15 $data = spyc_load_file($yml);
69 }
71 if($debug) { print($name);print_r($region); }
72 } elseif($region["type"] == "polygon") {
73 //polygon.
Adapter.php (https://gitlab.com/habracoder/advertising) PHP · 461 lines
1 <?php
3 namespace Phalcon\Db {
61 * //Getting first robot
62 * $robot = $connection->fecthOne("SELECT * FROM robots");
63 * print_r($robot);
64 *
65 * //Getting first robot with associative indexes only
66 * $robot = $connection->fecthOne("SELECT * FROM robots", \Phalcon\Db::FETCH_ASSOC);
67 * print_r($robot);
68 *</code>
69 *
84 * $robots = $connection->fetchAll("SELECT * FROM robots");
85 * foreach($robots as $robot){
86 * print_r($robot);
87 * }
88 *
GalleryImage.php (https://bitbucket.org/brainbox/shared.git) PHP · 347 lines
1 <?php
2 /**
3 *
226 /*
227 //print_r($_POST);
228 //Grab the id - needed for photo uploads
229 $this->id = $_POST['id'];
283 );
285 require_once('Images/Thumbnail.php');
287 $tn=new ThumbNail( self::thumbWidth, self::thumbHeight);
334 try{
335 $stmnt->execute();
336 //print_r( $this->dbPDO->errorInfo() );
337 return $this->dbPDO->lastInsertId();
338 }
lib_test.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 139 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
17 /**
18 * Unit tests for (some of) mod/assign/lib.php.
19 *
20 * @package mod_assign
21 * @category phpunit
22 * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
29 global $CFG;
30 require_once($CFG->dirroot . '/mod/assign/lib.php');
31 require_once($CFG->dirroot . '/mod/assign/locallib.php');
default.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 220 lines
105 <?php if( $should_print_quick_view ){?>
106 <li class="eael-product-quick-view">
107 <a id="eael_quick_view_<?php echo uniqid(); ?>" data-quickview-setting="<?php echo htmlspecialchars(json_encode($quick_view_setting),ENT_QUOTES); ?>"
108 class="eael-product-gallery-open-popup open-popup-link">
109 <i class="fas fa-eye"></i>
124 <?php if( $should_print_quick_view ){?>
125 <li class="eael-product-quick-view">
126 <a id="eael_quick_view_<?php echo uniqid(); ?>" data-quickview-setting="<?php echo htmlspecialchars(json_encode($quick_view_setting),ENT_QUOTES); ?>"
127 class="eael-product-gallery-open-popup open-popup-link">
128 <i class="fas fa-eye"></i>
186 <?php if( $should_print_quick_view ){?>
187 <li class="eael-product-quick-view">
188 <a id="eael_quick_view_<?php echo uniqid(); ?>" data-quickview-setting="<?php echo htmlspecialchars(json_encode($quick_view_setting),ENT_QUOTES); ?>"
189 class="eael-product-gallery-open-popup open-popup-link">
190 <i class="fas fa-eye"></i>
Frame.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 363 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_Queue_Stomp_FrameInterface
25 */
26 // require_once 'Zend/Queue/Stomp/FrameInterface.php';
28 /**
106 {
107 if (!is_bool($auto)) {
108 // require_once 'Zend/Queue/Exception.php';
109 throw new Zend_Queue_Exception('$auto is not a boolean');
110 }
152 public function setHeader($header, $value) {
153 if (!is_string($header)) {
154 // require_once 'Zend/Queue/Exception.php';
155 throw new Zend_Queue_Exception('$header is not a string: ' . print_r($header, true));
frmConfirma.php (https://github.com/andrerezende/CENSO.git) PHP · 1155 lines
ModelInterface.php (https://gitlab.com/szlongshu/manaphp) PHP · 266 lines
1 <?php
3 namespace ManaPHP\Mvc {
5 /**
6 * ManaPHP\Mvc\ModelInterface initializer
7 */
8 interface ModelInterface
62 * Gets internal database connection
63 *
64 * @return \ManaPHP\DbInterface
65 */
66 public function getReadConnection();
250 *
251 * @return array
252 * @throws \ManaPHP\Mvc\Model\Exception|\ManaPHP\Di\Exception
253 */
254 public function getChangedFields();
NotificacaoDAO.class.php (https://gitlab.com/mucadoo/chatters) PHP · 206 lines
datalog_parser.y (https://github.com/ftarin/datalogsolve.git) Happy · 402 lines
132 CAESAR_BEGIN_DEBUG(4) {
134 CAESAR_PRINT_RELATION_LIST(CAESAR_DATALOG_RELATION_LIST);
136 } CAESAR_END_DEBUG;
143 CAESAR_BEGIN_DEBUG(4) {
145 CAESAR_PRINT_RULE_LIST(CAESAR_DATALOG_RULE_LIST);
147 } CAESAR_END_DEBUG;
316 CAESAR_BEGIN_DEBUG(4) {
318 CAESAR_PRINT_RULE_VARIABLE_LIST_NAMES($2);
320 } CAESAR_END_DEBUG;
registry.class.php (https://github.com/amereservant/Chevereto-Expanded.git) PHP · 265 lines
site.php (https://github.com/TheCloudGroup/PaymentManager.git) PHP · 219 lines
advanced_webserver1.template.php (https://github.com/BenBE/ispCP.git) PHP · 108 lines
7 <?php echo __("Checking if the FTP module of PHP is installed: "); ?>
8 <?php if (function_exists("ftp_connect") == true) { ?> <span style="color: green; font-weight: bold;"><?php echo __("yes"); ?></span> <?php }
9 else { ?> <span style="color: red; font-weight: bold;"><?php echo __("no - please install it!"); ?></span> <?php } ?>
14 <?php echo __("Creating filename: "); ?>
15 <?php if ($tempfilename == true) { ?> <span style="color: green; font-weight: bold;"><?php echo __("OK. Filename: %1\$s", $tempfilename); ?></span> <?php }
16 else { ?> <span style="color: red; font-weight: bold;"><?php echo __("not OK"); ?></span> <?php } ?>
20 <?php echo __("Opening the file in write mode: "); ?>
21 <?php if ($handle == true) { ?> <span style="color: green; font-weight: bold;"><?php echo __("OK"); ?></span> <?php }
22 else { ?> <span style="color: red; font-weight: bold;"><?php echo __("not OK. Check the permissions of the %1\$s directory"); ?></span> <?php } ?>
26 <?php echo __("Writing some text to the file: "); ?>
27 <?php if ($success1 == true) { ?> <span style="color: green; font-weight: bold;"><?php echo __("OK"); ?></span> <?php }
28 else { ?> <span style="color: red; font-weight: bold;"><?php echo __("not OK"); ?></span> <?php } ?>
32 <?php echo __("Closing the file: "); ?>
33 <?php if ($success2 == true) { ?> <span style="color: green; font-weight: bold;"><?php echo __("OK"); ?></span> <?php }
34 else { ?> <span style="color: red; font-weight: bold;"><?php echo __("not OK"); ?></span> <?php } ?>
graph_profile_printer_spec.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 192 lines
TestImageFilter.c (https://github.com/kobr4/Lincity4droid.git) C · 538 lines
47 }
49 void print_result(char *label,unsigned char *src1, unsigned char *src2, unsigned char *dst)
50 {
51 char blabel[80];
105 setup_src(src1, src2);
106 SDL_imageFilterBitAnd ((unsigned char *)src1,(unsigned char *)src2,(unsigned char *)dstm,15);
107 print_result ("MMX BitAnd", src1, src2, dstm);
109 SDL_imageFilterMMXoff();
111 setup_src(src1, src2);
112 SDL_imageFilterBitAnd ((unsigned char *)src1,(unsigned char *)src2,(unsigned char *)dstc,15);
113 print_result (" C BitAnd", src1, src2, dstc);
115 print_compare(dstm,dstc);
TestGenerator.php (https://gitlab.com/vanafroo/landingpage) PHP · 223 lines
1 <?php
3 namespace SqlParser\Tools;
5 require_once '../vendor/autoload.php';
7 use SqlParser\Lexer;
130 // Dumping test's data in human readable format too (if required).
131 if (!empty($debug)) {
132 file_put_contents($debug, print_r($test, true));
133 }
134 }
198 // Example of usage:
199 //
200 // php TestGenerator.php ../tests/data ../tests/data
201 //
202 // Input data must be in the `../tests/data` folder.
optional.php (https://github.com/hachimae/mrmenu.git) PHP · 241 lines
1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
3 class Optional extends APP_Controller
18 $this->setModel( $this->option );
20 $this->master_template = 'admin/list.php';
22 $this->menu_id = $this->input->get('ref_id');
65 {
66 $this->setContent('title', 'Add Menu Option');
67 $this->master_template = 'admin/form.php';
69 /* parent::add( '/app/optional/update', array(
78 {
79 $this->setContent('title', 'Edit Menu Option');
80 $this->master_template = 'admin/form.php';
82 // check option id
cts_report_controller.php (https://gitlab.com/bipsahu/ptcs) PHP · 215 lines
1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
3 /*
34 $data['result'] = $this->cts_report_model->show_all_peoject_details($from, $to);
35 // echo "1";
36 // print_r($data);die;
37 }
38 }
41 $data['result'] = $this->cts_report_model->show_all_project_details();
42 // echo "2";
43 // print_r($data);die;
44 }
45 $data1['roles_info'] = $this->cts_role_model->show_module_role_by_position($this->session->userdata('position_id'));
72 $data = $this->cts_report_model->show_all_task_details();
73 // print_r($data);
74 echo json_encode($data);
75 }
Frame.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 363 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Frame.php 23775 2011-03-01 17:25:24Z ralph $
21 */
24 * @see Zend_Queue_Stomp_FrameInterface
25 */
26 // // // // // // // // require_once 'Zend/Queue/Stomp/FrameInterface.php';
28 /**
106 {
107 if (!is_bool($auto)) {
108 // // // // // // // // require_once 'Zend/Queue/Exception.php';
109 throw new Zend_Queue_Exception('$auto is not a boolean');
110 }
CF7DBPluginExporter.php (https://bitbucket.org/gfelizola/pacaembu-institucional.git) PHP · 164 lines
1 <?php
2 /*
3 "Contact Form to Database" Copyright (C) 2011-2012 Michael Simpson (email : michael.d.simpson@gmail.com)
27 $params = array_merge($_POST, $_GET);
29 //print_r($params);
31 // Assumes coming from CF7DBPlugin::whatsInTheDBPage()
32 $key = '3fde789a'; //substr($_COOKIE['PHPSESSID'], - 5); // session_id() doesn't work
33 if (isset($params['guser'])) {
34 $params['guser'] = mcrypt_decrypt(MCRYPT_3DES, $key, CF7DBPluginExporter::hexToStr($params['guser']), 'ecb');
47 }
49 // Taken from http://ditio.net/2008/11/04/php-string-to-hex-and-hex-to-string-functions/
50 static function hexToStr($hex) {
51 $string = '';
ExchangeWebServices.php (https://github.com/maiiku/EWSWrapper.git) PHP · 485 lines
1 <?php
2 /**
3 * Base class of the Exchange Web Services application.
43 $password = null) {
44 //bootstrap
45 include "bootstrap.php";
46 // set the object properties
47 $this->setServer($server);
244 public function FindItem($request) {
245 $request->getAsSOAP();
246 //print_r($request);
247 return $this->initializeSoapClient()->{__FUNCTION__}($request);
248 } // end function FindItem()
465 public function UpdateItem($request) {
466 $request->getAsSOAP();
467 //print_r($request);
468 return $this->initializeSoapClient()->{__FUNCTION__}($request);
469 } // end function UpdateItem()
Abstract.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 200 lines
Person.php (https://gitlab.com/gothcon/cthulhu) PHP · 788 lines
function.html_select_time.php (https://github.com/kop1/newznab.git) PHP · 194 lines
1 <?php
2 /**
3 * Smarty plugin
14 * Purpose: Prints the dropdowns for time selection
15 *
16 * @link http://smarty.php.net/manual/en/language.function.html.select.time.php {html_select_time}
17 * (Smarty online manual)
18 * @author Roberto Berto <roberto@berto.net>
25 function smarty_function_html_select_time($params, $template)
26 {
27 require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php');
28 require_once(SMARTY_PLUGINS_DIR . 'function.html_options.php');
38 $minute_interval = 1;
39 $second_interval = 1;
40 /* Should the select boxes be part of an array when returned from PHP?
41 e.g. setting it to "birthday", would create "birthday[Hour]",
42 "birthday[Minute]", "birthday[Seconds]" & "birthday[Meridian]".
Projects.php (https://gitlab.com/joshuacurci/swim-crm) PHP · 262 lines
animals.html (https://github.com/riquito/Baobab.git) HTML · 124 lines
1 <div class="highlight"><pre><span class="cp"><?php</span>
3 <span class="k">class</span> <span class="nc">AnimalsBaobab</span> <span class="k">extends</span> <span class="nx">Baobab</span> <span class="p">{</span>
98 <span class="c1">// To obtain all the elements beetween root and a node ...</span>
99 <span class="nv">$parts</span><span class="o">=</span><span class="nv">$tree</span><span class="o">-></span><span class="na">getPath</span><span class="p">(</span><span class="nv">$insects_id</span><span class="p">);</span>
100 <span class="nb">print_r</span><span class="p">(</span><span class="nb">json_encode</span><span class="p">(</span><span class="nv">$parts</span><span class="p">));</span>
101 <span class="c1">// output: [{"id":"1"},{"id":"2"},{"id":"5"}]</span>
102 <span class="k">echo</span> <span class="s2">"</span><span class="se">\n</span><span class="s2">"</span><span class="p">;</span>
104 <span class="c1">// To obtain all the elements beetween root and a node filtering by a field...</span>
105 <span class="nv">$filtered_parts</span><span class="o">=</span><span class="nv">$tree</span><span class="o">-></span><span class="na">getPath</span><span class="p">(</span><span class="nv">$insects_id</span><span class="p">,</span><span class="s1">'name'</span><span class="p">,</span><span class="k">TRUE</span><span class="p">);</span>
106 <span class="nb">print_r</span><span class="p">(</span><span class="nb">join</span><span class="p">(</span><span class="s2">" » "</span><span class="p">,</span><span class="nv">$filtered_parts</span><span class="p">));</span>
107 <span class="c1">// output: Animals » Vertebrates » Insects</span>
108 <span class="k">echo</span> <span class="s2">"</span><span class="se">\n</span><span class="s2">"</span><span class="p">;</span>
110 <span class="c1">// Get the crystalized state of the tree, either as a class instance ...</span>
111 <span class="nv">$rootTreeState</span><span class="o">=</span><span class="nv">$tree</span><span class="o">-></span><span class="na">getTree</span><span class="p">();</span>
112 <span class="nb">print_r</span><span class="p">(</span><span class="nv">$rootTreeState</span><span class="o">-></span><span class="na">children</span><span class="p">);</span>
113 <span class="k">echo</span> <span class="s2">"</span><span class="se">\n</span><span class="s2">"</span><span class="p">;</span>
dbConnections.php (https://github.com/RishabhJain96/RoboWebProj.git) PHP · 253 lines
1 <?PHP
2 class dbConnections
3 {
145 }
146 //return $array_values;
147 //print_r($array);
148 try {
149 //testing code below
152 $result = mysql_query("INSERT INTO $tableName ($array) VALUES ($array_values)");
153 //change made
154 //print_r("INSERT INTO $tableName ($array) VALUES ($array_values)");
155 return $result;
156 } catch(Exception $err) {
239 $sql = "SELECT * FROM $table";
240 $result = @mysql_query($sql);
241 print_r($result);
242 if (!$result)
243 {
PU_test_dcp_newdoc.php (https://github.com/CircleCode/dynacase-core.git) PHP · 418 lines
1 <?php
2 /*
3 * @author Anakeen
13 */
15 require_once 'PU_testcase_dcp_commonfamily.php';
17 class TestNewDoc extends TestCaseDcpCommonFamily
123 $d = new_doc(self::$dbaccess, $docName);
124 $this->assertTrue($d->isAffected() , "document $docName not found");
125 $this->assertTrue($d->isAlive() , "document $docName not last revision\n" . print_r(self::$ids[$docName], true));
126 $this->assertEquals($expectedTitle, $d->getTitle() , "wrong title for $docName\n" . print_r(self::$ids[$docName], true));
127 // print_r("test".print_r(self::$ids[$docName], true) );
129 }
feed.php (https://github.com/brownjohnf/Peace-Corps-App.git) PHP · 223 lines
1 <?php
2 # Copyright (c) 2011, John F. Brown This file is
3 # licensed under the Affero General Public License version 3 or later. See
21 $links = $this->link_class->feed();
22 $vids = $this->video_class->feed();
23 //echo '<pre>'; echo print_r($feed['data']); echo '</pre>';
25 $feed = $pages + $blogs + $cs + $docs + $links + $vids;
26 //print_r($data['feed']);
27 krsort($feed);
28 //print_r($data['feed']);
51 $blogs = $this->blog_class->feed();
52 //echo '<pre>'; echo print_r($feed['data']); echo '</pre>';
54 krsort($blogs);
followers.php (https://gitlab.com/ashish21590/live-rigalio) PHP · 198 lines
42 {
43 ?>
44 <div class="profile-result-img"> <a href="<?php echo base_url();?><?php echo $follower[0]['username'];?>"><span class="pf-img" style="background:url(<?php echo base_url(); ?>content/images/profile/profile_pcture.jpg);"> </span><?php /*?><?php echo $follower[0]['firstname'];?> <?php echo $follower[0]['lastname'];?><?php */?></a>
45 <?php } else{ ?>
46 <div class="profile-result-img"> <a href="<?php echo base_url();?><?php echo $follower[0]['username'];?>"><span class="pf-img" style="background:url(<?php echo base_url(); ?><?php echo $follower[0]['profile_picture'];?>);"> </span><?php /*?><?php echo $follower[0]['firstname'];?> <?php echo $follower[0]['lastname'];?><?php */?></a>
47 <?php } ?>
74 {
75 ?>
76 <div class="profile-result-img"> <a href="<?php echo base_url();?><?php echo $following[0]['username'];?>"><span class="pf-img" style="background:url(<?php echo base_url(); ?>content/images/profile/profile_pcture.jpg);"> </span><?php /*?><?php echo $following[0]['firstname'];?> <?php echo $following[0]['lastname'];?><?php */?></a>
77 <?php } else{ ?>
78 <div class="profile-result-img"> <a href="<?php echo base_url();?><?php echo $following[0]['username'];?>"><span class="pf-img" style="background:url(<?php echo base_url(); ?><?php echo $following[0]['profile_picture'];?>);"> </span><?php /*?><?php echo $following[0]['firstname'];?> <?php echo $following[0]['lastname'];?><?php */?></a>
79 <?php } ?>
109 <?php } else{ ?>
110 <a href="<?php echo base_url();?><?php echo $notification2['username'];?>"><span class="pf-img" style="background:url(<?php echo base_url(); ?><?php echo $notification2['profile_picture']; ?>);"></span> <?php /*?></span><img src="<?php echo base_url(); ?><?php echo $notification2['profile_picture']; ?>"><?php */?> </a></span>
111 <?php } ?>
ajax_income_2.php (https://gitlab.com/dev.essetel/sjnuri) PHP · 194 lines
1 <?php
2 include_once('./_common.php');
55 if ($row_f) {
56 $file_is = "<a href='/iium/file_download.php?path=iu_drivers_working_info&original={$row_f['origin_name']}&name={$row_f['file_name']}'>다운로드</a>";
57 // $file_is = "<input type='button' onclick='showPopup();'/>";
58 } else {
149 if ($row_f) {
150 $file_is = "<a href='/iium/file_download.php?path=iu_drivers_working_info&original={$row_f['origin_name']}&name={$row_f['file_name']}'>다운로드</a>";
151 } else {
152 $file_is = "";
192 }
194 print_r($options);
TemplateHelper.php (https://gitlab.com/lighty/whoops) PHP · 196 lines
Block.php (https://gitlab.com/hoanghung.dev/phunuvadoisong.com) PHP · 130 lines
codes.php (https://github.com/caprenter/IATI-Data-Spotter.git) PHP · 165 lines
2 if (in_array($myinputs['group'],array_keys($available_groups))) {
3 //Include variables for each group. Use group name for the argument
4 //e.g. php detect_html.php dfid
5 require_once 'variables/' . $_GET['group'] . '.php';
36 array_push($bad_codes,$participating_org_ref);
37 array_push($bad_files,$url . $file);
38 //echo $url . $file . PHP_EOL;
39 $participating_org_ref_count ++;
40 //continue 3;
58 //echo '"'. $participating_org_ref . '","' ;
59 //echo $codes[$participating_org_ref][2] . '","';
60 //echo $participating_org[0] . '","' . $file . '"' . PHP_EOL;
61 }
135 //$bad_codes = array_unique($bad_codes);
136 //sort($bad_codes);
137 //print_r($bad_codes). PHP_EOL;
138 //print_r(array_unique($bad_files)). PHP_EOL;
SchemaTest.php (https://gitlab.com/axeltizon/magento-demopoweraccess) PHP · 129 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
9 use Magento\Framework\Component\ComponentRegistrar;
11 class SchemaTest extends \PHPUnit_Framework_TestCase
12 {
13 public function testXmlFiles()
24 $errors = libxml_get_errors();
25 libxml_clear_errors();
26 $this->assertEmpty($errors, print_r($errors, true));
28 $schemaLocations = [];
43 $this->assertEmpty(
44 $errors,
45 "Error validating $filename against {$schemaLocations[1]}\n" . print_r($errors, true)
46 );
47 },
LdapAbstract.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 156 lines
1 <?php
2 /**
3 * Tine 2.0
61 /**
62 * (non-PHPdoc)
63 * @see Tinebase_User_Plugin_LdapInterface::getSupportedAttributes()
64 */
70 /**
71 * (non-PHPdoc)
72 * @see Tinebase_User_Plugin_LdapAbstract::inspectAddUser()
73 */
79 /**
80 * (non-PHPdoc)
81 * @see Tinebase_User_Plugin_LdapAbstract::inspectGetUserByProperty()
82 */
virtuosoTest.php (https://github.com/BorderCloud/SPARQL.git) PHP · 251 lines
1 <?php
2 declare(strict_types=1);
4 namespace BorderCloud\SPARQL\Tests;
6 $loader = require __DIR__ . '/../vendor/autoload.php';
7 $loader->addPsr4('BorderCloud\\SPARQL\\', __DIR__ . '/../src');
9 use BorderCloud\SPARQL\SparqlClient;
10 use Exception;
11 use PHPUnit\Framework\TestCase;
13 final class virtuosoTest extends TestCase
44 $err = $this->_client->getErrors();
45 if ($err) {
46 print_r($err);
47 throw new Exception(print_r($err,true));
files_renderer.php (https://gitlab.com/unofficial-mirrors/moodle) PHP · 140 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
21 defined('MOODLE_INTERNAL') || die();
23 require_once($CFG->dirroot . '/files/renderer.php');
25 /**
77 'client_id' => $fm->options->client_id,
78 'helpicon' => $this->help_icon('setmainfile', 'repository'),
79 'restrictions' => $this->fm_print_restrictions($fm)
80 ];
81 return $this->render_from_template('core/filemanager_page_generallayout', $context);
Init.php (https://github.com/osarrat/sigmah-website.git) PHP · 147 lines
1 <?php
2 /*
3 * CKFinder
22 * Include base XML command handler
23 */
24 require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php";
26 /**
123 //print $_resourceTypeName;
124 $_oTypeInfo = $_config->getResourceTypeConfig($_resourceTypeName);
125 //print_r($_oTypeInfo);
126 $_oResourceType[$i] = new Ckfinder_Connector_Utils_XmlNode("ResourceType");
127 $_oResourceTypes->addChild($_oResourceType[$i]);
03_kuserMigration.php (https://github.com/richhl/kalturaCE.git) PHP · 184 lines
1 <?php
2 /**
3 * @package deployment
23 set_time_limit(0);
25 require_once(dirname(__FILE__).'/../../../bootstrap.php');
27 // stores the last handled admin kuser id, helps to restore in case of crash
116 if (!$dryRun) {
117 if ($new_login_data) {
118 KalturaLog::log('Saving new user_login_data with the following parameters: '.PHP_EOL);
119 KalturaLog::log(print_r($new_login_data, true));
122 }
123 else {
124 KalturaLog::log('User ['.$user->getId().'] has no login data'.PHP_EOL);
125 }
126 KalturaLog::log('Saving new kuser with the following parameters: '.PHP_EOL);
tenonTest.class.php (https://gitlab.com/tenon-io/tenon-js-embed-code) PHP · 205 lines
looping.php (https://gitlab.com/delpierotino/php-2) PHP · 136 lines
10 <h1>Berlatih Looping</h1>
12 <?php
13 echo "<h3>Soal No 1 Looping I Love PHP</h3>";
14 /*
15 Soal No 1
16 Looping I Love PHP
17 Lakukan Perulangan (boleh for/while/do while) sebanyak 20 iterasi. Looping terbagi menjadi dua: Looping yang pertama Ascending (meningkat)
18 dan Looping yang ke dua menurun (Descending).
20 Output:
21 LOOPING PERTAMA
22 2 - I Love PHP
23 4 - I Love PHP
24 6 - I Love PHP
25 8 - I Love PHP
generalsettings_a.php (https://gitlab.com/zohaibsaleem/shipcliq) PHP · 170 lines
1 <?php
2 include_once(TPATH_LIBRARIES."/general/Imagecrop.class.php");
5 $Data = $_POST["Data"];
7 //echo "<pre>"; print_r($_POST); /*print_r($_FILES);*/ exit;
8 $validext = array ('image/png',"image/jpeg","image/gif","image/jpg","image/bmp");
18 $logo_file_name = $_FILES['Data']['name']['SITE_LOGO'];
19 $logo_file_type = $_FILES['Data']['type']['SITE_LOGO'];
20 //echo "<pre>"; print_r($logo_file_type); exit;
22 $PATH = $tconfig["tsite_upload_site_logo_path"];
120 {
121 $msg = "You have selected wrong file format for Image. Valid format is ico";
122 header("Location: ".$tconfig["tpanel_url"]."/index.php?file=to-generalsettings&mode=edit&var_msg=".$msg."&eType=".$_POST['eType']);
123 exit;
124 }
Image_Library.php (https://gitlab.com/jeamar1234/medicloud) PHP · 198 lines
fcompiler.cpp
(git://github.com/ticking/self.git)
C++ · 251 lines
✨ Summary
This C++ code is part of a compiler, specifically for a Java-like language. It implements the “NIC” (Native Interface Compiler) which generates native machine code from bytecode. The code defines classes and functions that handle various aspects of compilation, such as accessing variables, handling method calls, and generating code for different types of methods.
This C++ code is part of a compiler, specifically for a Java-like language. It implements the “NIC” (Native Interface Compiler) which generates native machine code from bytecode. The code defines classes and functions that handle various aspects of compilation, such as accessing variables, handling method calls, and generating code for different types of methods.
md_u.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 160 lines
✨ Summary
This C header file defines an interface between Linux raidtools and RAID drivers, providing a standardized API for user-space applications to interact with RAID systems. It specifies various ioctl commands, data structures, and constants for managing RAID arrays, disks, and bitmap files, allowing users to configure, manage, and monitor RAID systems.
This C header file defines an interface between Linux raidtools and RAID drivers, providing a standardized API for user-space applications to interact with RAID systems. It specifies various ioctl commands, data structures, and constants for managing RAID arrays, disks, and bitmap files, allowing users to configure, manage, and monitor RAID systems.