100+ results results for 'php serialize repo:jit_bec/shopifine' (935 ms)
3 * Distributed under the MIT software license, see the accompanying * 4 * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 **********************************************************************/ 99 if (ret) { 100 secp256k1_ecdsa_sig_serialize(signature, signaturelen, &sig); 101 } 167 if (secp256k1_ecdsa_sig_recover(&sig, &q, &m, recid)) { 168 ret = secp256k1_eckey_pubkey_serialize(&q, pubkey, pubkeylen, compressed); 169 } 203 secp256k1_ge_set_gej(&p, &pj); 204 return secp256k1_eckey_pubkey_serialize(&p, pubkey, pubkeylen, compressed); 205} 213 return 0; 214 return secp256k1_eckey_pubkey_serialize(&p, pubkey, pubkeylen, 0); 215}Attribute.php https://gitlab.com/reasonat/test8 | PHP | 345 lines
1<?php 2 340 */ 341 public function jsonSerialize() { 342 return (string) $this;index.php https://gitlab.com/iarafat/web-apps-php-b-26 | PHP | 234 lines
27 <body> 28 <?php include_once "include/log-navbar.php"; ?> 29 <div class="container"> 102 <td><?php echo $onedata['dateofbirth'] ?></td> 103 <td><?php echo $onedata['height'] ?></td> 104 </tr> 165 <td><?php echo $onedata['Blood_group'] ?></td> 166 <td><?php $addata = unserialize($onedata['address']); 167 echo $addata['address_one'] . ", "; 200 201 <td><a href="profile2.php?id=<?php echo $onedata['users_id'] ?>">View</a></td> 202 <td><a href="profile.php?id=<?php echo $onedata['users_id'] ?>">Edit</a></td> 203 <td><?php if ($onedata['is_admin'] == 0) { ?> 204 <a href="trash.php?id=<?php echo $onedata['users_id'] ?>">Delete</a> 205 <?php } ?>Store.php https://gitlab.com/ealexis.t/trends | PHP | 707 lines
1<?php 2 126 if ($data) { 127 $data = @unserialize($this->prepareForUnserialize($data)); 128 142 */ 143 protected function prepareForUnserialize($data) 144 { 261 262 $this->handler->write($this->getId(), $this->prepareForStorage(serialize($this->attributes))); 263 267 /** 268 * Prepare the serialized session data for storage. 269 *BaseVarDumper.php https://gitlab.com/makkooz/nikestreetbeat | PHP | 271 lines
1<?php 2/** 55 if ($highlight) { 56 $result = highlight_string("<?php\n" . self::$_output, true); 57 self::$_output = preg_replace('/<\\?php<br \\/>/', '', $result, 1); 140 * 141 * The string is a valid PHP expression that can be evaluated by PHP parser 142 * and the evaluation result will give back the variable value. 146 * 147 * It also handles objects by using the PHP functions serialize() and unserialize(). 148 * 148 * 149 * PHP 5.4 or above is required to parse the exported value. 150 * 195 try { 196 $output = 'unserialize(' . var_export(serialize($var), true) . ')'; 197 } catch (\Exception $e) {Weee.php https://gitlab.com/yousafsyed/easternglamor | PHP | 200 lines
1<?php 2/** 38 * @return $this 39 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 40 * @SuppressWarnings(PHPMD.NPathComplexity) 40 * @SuppressWarnings(PHPMD.NPathComplexity) 41 * @SuppressWarnings(PHPMD.ExcessiveMethodLength) 42 */ 96 if ($item->getTaxRatio()) { 97 $taxRatio = unserialize($item->getTaxRatio()); 98 } 99 $taxRatio[\Magento\Weee\Model\Total\Quote\Weee::ITEM_TYPE] = $itemWeeeTax / $orderItemWeeeTax; 100 $item->setTaxRatio(serialize($taxRatio)); 101 }single_product.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 229 lines
31 <a rel="<?php echo str_replace(array(" ", '"',"'", '"','''), array("_", "", "", "",''), wpsc_the_product_title()); ?>" class="thickbox preview_link" href="<?php echo wpsc_the_product_image(); ?>"> 32 <img class="product_image" id="product_image_<?php echo wpsc_the_product_id(); ?>" alt="<?php echo wpsc_the_product_title(); ?>" title="<?php echo wpsc_the_product_title(); ?>" src="<?php echo wpsc_the_product_image($image_width, $image_height); ?>" /> 33 </a> 118 <?php while (wpsc_have_variations()) : wpsc_the_variation(); ?> 119 <option value="<?php echo wpsc_the_variation_id(); ?>" <?php echo wpsc_the_variation_out_of_stock(); ?>><?php echo wpsc_the_variation_name(); ?></option> 120 <?php endwhile; ?> 149 <?php endif; ?> 150 <span id="product_price_<?php echo wpsc_the_product_id(); ?>" class="pricedisplay"><?php echo wpsc_the_product_price(); ?></span><?php echo __('Price', 'wpsc'); ?>: <br/> 151 <!-- multi currency code --> 177 <?php $action = wpsc_product_external_link(wpsc_the_product_id()); ?> 178 <input class="wpsc_buy_button" type='button' value='<?php echo __('Buy Now', 'wpsc'); ?>' onclick='gotoexternallink("<?php echo $action; ?>")'> 179 <?php else: ?> 209 210 <form onsubmit="submitform(this);return false;" action="<?php echo wpsc_this_page_url(); ?>" method="post" name="product_<?php echo wpsc_the_product_id(); ?>" id="product_extra_<?php echo wpsc_the_product_id(); ?>"> 211 <input type="hidden" value="<?php echo wpsc_the_product_id(); ?>" name="prodid"/>ArrayObject.php https://gitlab.com/yousafsyed/easternglamor | PHP | 432 lines
1<?php 2/** 326 /** 327 * Serialize an ArrayObject 328 * 330 */ 331 public function serialize() 332 { 332 { 333 return serialize(get_object_vars($this)); 334 } 399 /** 400 * Unserialize an ArrayObject 401 * 404 */ 405 public function unserialize($data) 406 {component.php https://gitlab.com/alexprowars/bitrix | PHP | 322 lines
9$arParams["LESSON_ID"] = (isset($arParams["LESSON_ID"]) && intval($arParams["LESSON_ID"]) > 0 ? intval($arParams["LESSON_ID"]) : intval($_REQUEST["LESSON_ID"])); 10$arParams["SELF_TEST_TEMPLATE"] = ($arParams["SELF_TEST_TEMPLATE"] <> '' ? htmlspecialcharsbx($arParams["SELF_TEST_TEMPLATE"]) : "self.php?SELF_TEST_ID=#SELF_TEST_ID#"); 11$arParams["CHECK_PERMISSIONS"] = (isset($arParams["CHECK_PERMISSIONS"]) && $arParams["CHECK_PERMISSIONS"]=="N" ? "N" : "Y"); 28 $arRatingData = CRatings::GetRatingVoteResult('LEARN_LESSON', $arParams['LESSON_ID']); 29 $ratingTransistor = serialize($arRatingData); 30} 293 array( 294 "URL" => "/bitrix/admin/learn_unilesson_edit.php?LESSON_ID=" . $arParams["LESSON_ID"] 295 . '&' . $strUrlencodedLessonPath 311 "TITLE" => GetMessage("LEARNING_COURSES_LESSON_DELETE"), 312 "URL" => "javascript:if(confirm('".GetMessage("LEARNING_COURSES_LESSON_DELETE_CONF")."'))jsUtils.Redirect([], '".CUtil::JSEscape("/bitrix/admin/learn_unilesson_admin.php?ID=".$arParams["LESSON_ID"]."&action=delete&lang=".LANGUAGE_ID."&".bitrix_sessid_get()."&COURSE_ID=".$arParams["COURSE_ID"]).($deleteReturnUrl <> ''? "&return_url=".urlencode($deleteReturnUrl) : "")."')", 313 "ICON" => "bx-context-toolbar-delete-icon",smooth-scroll-setting.php https://gitlab.com/ezgonzalez/integral | PHP | 300 lines
29 <a href="<?php echo admin_url('admin.php?page=about-ultimate'.$author_extend); ?>" data-tab="about-ultimate" class="nav-tab"> <?php echo __('About','ultimate_vc'); ?> </a> 30 <a href="<?php echo admin_url('admin.php?page=ultimate-dashboard'.$author_extend); ?>" data-tab="ultimate-modules" class="nav-tab"> <?php echo __('Modules','ultimate_vc'); ?> </a> 31 <a href="<?php echo admin_url('admin.php?page=ultimate-smoothscroll'.$author_extend); ?>" data-tab="css-settings" class="nav-tab nav-tab-active"> <?php echo __('Smooth Scroll','ultimate_vc'); ?> </a> 31 <a href="<?php echo admin_url('admin.php?page=ultimate-smoothscroll'.$author_extend); ?>" data-tab="css-settings" class="nav-tab nav-tab-active"> <?php echo __('Smooth Scroll','ultimate_vc'); ?> </a> 32 <a href="<?php echo admin_url('admin.php?page=ultimate-scripts-and-styles'.$author_extend); ?>" data-tab="css-settings" class="nav-tab"> <?php echo __('Scripts and Styles','ultimate_vc'); ?> </a> 33 <?php if($author) : ?> 33 <?php if($author) : ?> 34 <a href="<?php echo admin_url('admin.php?page=ultimate-debug-settings'); ?>" data-tab="ultimate-debug" class="nav-tab"> Debug </a> 35 <?php endif; ?> 61 <tr valign="top"> 62 <th scope="row"><?php echo __("Smooth Scroll","ultimate_vc"); ?></th> 63 <td> 68 <div class="onoffswitch-active"> 69 <div class="onoffswitch-switch"><?php echo __('ON','ultimate_vc'); ?></div> 70 </div>w5100-spi.c https://gitlab.com/CadeLaRen/linux | C | 466 lines
10 * http://wiznethome.cafe24.com/wp-content/uploads/wiznethome/Chip/W5200/Documents/W5200_DS_V140E.pdf 11 * http://wizwiki.net/wiki/lib/exe/fetch.php?media=products:w5500:w5500_ds_v106e_141230.pdf 12 */ 115struct w5200_spi_priv { 116 /* Serialize access to cmd_buf */ 117 struct mutex cmd_lock; 260struct w5500_spi_priv { 261 /* Serialize access to cmd_buf */ 262 struct mutex cmd_lock;view.php https://gitlab.com/agustus/wisata-web | PHP | 269 lines
5 <h3 class="page-title"> 6 <?php echo $title;?> <small><?php echo $description;?></small> 7 </h3> 152 <label class="control-label">Deskripsi Wisata</label> 153 <?php echo (!empty($dataWisata['deskripsi_wisata_kuliner']))?$dataWisata['deskripsi_wisata_kuliner']:'';?> 154 </div> 175 <td class="text-left"> 176 <img src="<?php echo base_url("assets/upload/".$dataGaleri['url_foto']); ?>" id="url_foto<?php echo $image_row; ?>" height="100" width="100" alt="1" title="" /> 177 </td> 179 <td class="text-right"> 180 <input type="text" disabled name="foto[<?php echo $image_row; ?>][nama_foto]" value="<?php echo $dataGaleri['nama_foto']; ?>" class="form-control" /> 181 </td> 183 <td class="text-right"> 184 <input type="text" disabled name="foto[<?php echo $image_row; ?>][deskripsi_foto]" value="<?php echo $dataGaleri['deskripsi_foto']; ?>" class="form-control" /> 185 </td>jquery.serializejson.js https://gitlab.com/Mirros/cdnjs | JavaScript | 193 lines
1/*! 2 SerializeJSON jQuery plugin. 3 https://github.com/marioizquierdo/jquery.serializeJSON 6 Copyright (c) 2014 Mario Izquierdo 7 Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 8 and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. 12 13 // jQuery('form').serializeJSON() 14 $.fn.serializeJSON = function (options) { 14 $.fn.serializeJSON = function (options) { 15 var serializedObject, formAsArray, keys, value, f, opts; 16 f = $.serializeJSON; 17 opts = f.optsWithDefaults(options); // calculate values for options {parseNumbers, parseBoolens, parseNulls} 18 formAsArray = this.serializeArray(); // array of objects {name, value} 19 f.readCheckboxUncheckedValues(formAsArray, this, opts); // add {name, value} of unchecked checkboxes if neededDispatcher.php https://gitlab.com/MineYourMind/BoNeMEAL | PHP | 486 lines
1<?php namespace Illuminate\Events; 2 404 $this->resolveQueue()->push('Illuminate\Events\CallQueuedHandler@call', [ 405 'class' => $class, 'method' => $method, 'data' => serialize($arguments), 406 ]); 434 $handler->queue($this->resolveQueue(), 'Illuminate\Events\CallQueuedHandler@call', [ 435 'class' => $class, 'method' => $method, 'data' => serialize($arguments), 436 ]);CacheBase.php https://gitlab.com/hoanghung.dev/aloads | PHP | 368 lines
3/** 4 * PHPExcel_CachedObjectStorage_CacheBase 5 * 21 * 22 * @category PHPExcel 23 * @package PHPExcel_CachedObjectStorage 23 * @package PHPExcel_CachedObjectStorage 24 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) 25 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 74 // This is maintained within the cache controller to facilitate re-attaching it to PHPExcel_Cell objects when 75 // they are woken from a serialized state 76 $this->parent = $parent; 311 * 312 * @param PHPExcel_Worksheet $parent The new worksheet 313 * @return voidextension.cache.sqlite3.php https://gitlab.com/x33n/ampache | PHP | 265 lines
1<?php 2///////////////////////////////////////////////////////////////////////////////// 8/// // 9// extension.cache.sqlite3.php - part of getID3() // 10// Please see readme.txt for more information // 24* 25* require_once 'getid3/getid3.php'; 26* $getID3 = new getID3; 32* 33* require_once 'getid3/getid3.php'; 34* require_once 'getid3/extension.cache.sqlite3.php'; 49* 50* sqlite3 table='getid3_cache', hide=false (PHP5) 51* 76* db3 dbm_filename, lock_filename 77* db4 dbm_filename, lock_filename (PHP5 required) 78*AbstractTokenTest.php https://gitlab.com/fabian.morales/marlon_becerra | PHP | 285 lines
45 { 46 return serialize(array($this->credentials, parent::serialize())); 47 } 48 49 public function unserialize($serialized) 50 { 50 { 51 list($this->credentials, $parentStr) = unserialize($serialized); 52 parent::unserialize($parentStr); 94 95 $uToken = unserialize(serialize($token)); 96 106 $parentToken = new ConcreteToken($user, array(new SwitchUserRole('ROLE_PREVIOUS', $token))); 107 $uToken = unserialize(serialize($parentToken)); 108Converter.php https://gitlab.com/xibalba/ocelote | PHP | 322 lines
1<?php 2/** 3 * @copyright 2014 - 2019 Xibalba Lab. 4 * @license http://opensource.org/licenses/bsd-license.php 5 * @link https://gitlab.com/xibalba/ocelote 172 else if (Checker::isJson($resource)) $resource = json_decode($resource, true); 173 else if (Checker::isSerialized($resource)) $resource = unserialize($resource); 174 else if (Checker::isXml($resource)) $resource = static::xmlToArray(simplexml_load_string($resource)); 203 else if (Checker::isXml($resource)) $resource = static::xmlToArray(simplexml_load_string($resource)); 204 else if (Checker::isSerialized($resource)) $resource = unserialize($resource); 205 else if (Checker::isBag($resource)) return json_encode($resource->toArray(), $options); 221 else if (Checker::isJson($resource)) $resource = json_decode($resource, true); 222 else if (Checker::isSerialized($resource)) $resource = unserialize($resource); 223 else if (Checker::isXml($resource)) $resource = static::xmlToArray(simplexml_load_string($resource)); 261 * 262 * @see http://php.net/manual/en/function.parse-str.php `parse_str()` official documentation. 263 *upgrade-2.0.0.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 279 lines
1<?php 2function icl_upgrade_2_0_0_steps($step, $stepper){ 153 'translation_service' => $service, 154 'translation_package' => serialize($translation_package), 155 'links_fixed' => intval(isset($links_fixed)?$links_fixed:0) 219 220// $iclsettings defined in upgrade.php 221if(empty($iclsettings['migrated_2_0_0'])){ 230 $ajax_action_none = wp_create_nonce($ajax_action); 231 $link = 'index.php?icl_ajx_action=' . $ajax_action . '&nonce=' . $ajax_action_none; 232 $txt = get_option('icl_temp_upgrade_data', FALSE) ? __('Resume Upgrade Process', 'sitepress') : __('Run Upgrade Process', 'sitepress'); 245 $message = __('Starting the upgrade process...', 'sitepress'); 246 include_once ICL_PLUGIN_PATH . '/inc/upgrade-functions/2.0.0/stepper.php'; 247 include_once ICL_PLUGIN_PATH . '/inc/upgrade-functions/upgrade-2.0.0.php';PositionCalculator.php https://gitlab.com/staging06/myproject | PHP | 221 lines
1<?php 2/** 2/** 3 * position-calculator.php 4 * 5 * This file implements the calculator for the position elements of 6 * the output of the PHPSQLParser. 7 * 33 34require_once dirname(__FILE__) . '/../utils/PHPSQLParserConstants.php'; 35require_once dirname(__FILE__) . '/../exceptions/UnableToCalculatePositionException.php'; 62 $holdem = substr($sql, 0, $charPos) . "^" . substr($sql, $charPos); 63 echo $spaces . $text . " key:" . $key . " parsed:" . $parsed . " back:" . serialize($backtracking) . " " 64 . $holdem . "\n"; 178 // SELECT, WHERE, INSERT etc. 179 if (PHPSQLParserConstants::isReserved($key)) { 180 $charPos = stripos($sql, $key, $charPos);PhpReferenceCompatibility.php https://gitlab.com/x33n/ImpressPages | PHP | 433 lines
1<?php 2/** 21 * This ArrayObject is a rewrite of the implementation to fix 22 * issues with php's implementation of ArrayObject where you 23 * are unable to unset multi-dimensional arrays because you 25 */ 26abstract class PhpReferenceCompatibility implements IteratorAggregate, ArrayAccess, Serializable, Countable 27{ 330 /** 331 * Serialize an ArrayObject 332 * 334 */ 335 public function serialize() 336 { 336 { 337 return serialize(get_object_vars($this)); 338 }Cache_File.php https://gitlab.com/karlen/ayo_wp | PHP | 455 lines
1<?php 2namespace W3TC; 117 @fputs( $fp, pack( 'L', $expires_at ) ); 118 @fputs( $fp, '<?php exit; ?>' ); 119 @fputs( $fp, @serialize( $var ) ); 137 if ( !empty( $data ) ) 138 $data_unserialized = @unserialize( $data ); 139 else 139 else 140 $data_unserialized = $data; 141 141 142 return array( $data_unserialized, $has_old_data ); 143 } 315 316 $path = sprintf( '%s/%s/%s.php', substr( $hash, 0, 3 ), substr( $hash, 3, 3 ), $hash ); 317translated-object.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 272 lines
1<?php 2 115 if ( empty( $term ) ) { 116 wp_insert_term( $group = uniqid( 'pll_' ), $this->tax_translations, array( 'description' => serialize( $translations ) ) ); 117 } 119 // take care not to overwrite extra data stored in description field, if any 120 $d = unserialize( $term->description ); 121 $d = is_array( $d ) ? array_diff_key( $d, $old_translations ) : array(); // remove old translations 122 $d = array_merge( $d, $translations ); // add new one 123 wp_update_term( $group = (int) $term->term_id, $this->tax_translations, array( 'description' => serialize( $d ) ) ); 124 } 153 if ( ! empty( $term ) ) { 154 $d = unserialize( $term->description ); 155 $slug = array_search( $id, $this->get_translations( $id ) ); // in case some plugin stores the same value with different key 161 else { 162 wp_update_term( (int) $term->term_id, $this->tax_translations, array( 'description' => serialize( $d ) ) ); 163 }symbol_table.cpp https://gitlab.com/iranjith4/hhvm | C++ | 318 lines
12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 16 17#include "hphp/compiler/analysis/symbol_table.h" 18#include <map> 25#include "hphp/compiler/expression/constant_expression.h" 26#include "hphp/compiler/expression/expression_list.h" 27#include "hphp/compiler/expression/parameter_expression.h" 29 30#include "hphp/runtime/base/variable-serializer.h" 31 313std::string SymbolTable::getEscapedText(Variant v, int &len) { 314 VariableSerializer vs(VariableSerializer::Type::Serialize); 315 String str = vs.serialize(v, true);Abstract.php https://gitlab.com/yousafsyed/easternglamor | PHP | 385 lines
1<?php 2/** 130 * If single element registered, returns that element; otherwise, 131 * serializes to array. 132 * 262 if ($this->_captureLock) { 263 #require_once 'Zend/View/Helper/Placeholder/Container/Exception.php'; 264 $e = new Zend_View_Helper_Placeholder_Container_Exception('Cannot nest placeholder captures for the same placeholder'); 336 * 337 * as defined by the PHP manual 338 * @return int 376 /** 377 * Serialize object to string 378 *Event.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 340 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) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 196 if (!empty($data['new_data'])) { 197 $previousNewData = unserialize($data['new_data']); 198 $currentNewData = $this->getNewData(false); 199 $currentNewData = $this->_mergeNewDataRecursive($previousNewData, $currentNewData); 200 $this->setNewData(serialize($currentNewData)); 201 } 228 } 229 $this->setNewData(serialize($newData)); 230JsonViewTest.php https://gitlab.com/grlopez90/servipro | PHP | 407 lines
4 * 5 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> 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/2.0/en/development/testing.html CakePHP(tm) Tests 14 * @package Cake.Test.Case.View 189 $Controller->set($data); 190 $Controller->set('_serialize', $serialize); 191 $View = new JsonView($Controller); 202 public function testRenderWithoutViewJsonOptions() { 203 $this->skipIf(!version_compare(PHP_VERSION, '5.3.0', '>='), 'Needs PHP5.3+ for these constants to be tested'); 204 214 $Controller->set($data); 215 $Controller->set('_serialize', $serialize); 216 $Controller->set('_jsonOptions', JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT);Mailer.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 504 lines
1<?php namespace Illuminate\Mail; 2 225 226 return serialize(new SerializableClosure($callback)); 227 } 252 { 253 return with(unserialize($data['callback']))->getClosure(); 254 }class.utils.php https://gitlab.com/sokeara/Tribal_Education | PHP | 351 lines
1<?php 2// Exit if accessed directly 95 /** 96 * PHP_SAPI for fcgi requires a data flush of at least 256 97 * bytes every 40 seconds or else it forces a script hault 144 $row = @mysqli_fetch_array($query); 145 $all_plugins = unserialize($row[0]); 146 if (is_array($all_plugins)) { 327 //FALL BACK: Windows XP has bug with glob, 328 //add secondary check for PHP lameness 329 if ($dh = opendir('.'))OfertaActividad.php https://gitlab.com/bluedrayco/Portafolio | PHP | 568 lines
1<?php 2 6use Symfony\Component\Validator\Constraints; 7use JMS\Serializer\Annotation\ExclusionPolicy; 8use JMS\Serializer\Annotation\Expose;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)) { 283 if ($this->_DBHandle === false) 284 throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg()); 285 if (!$this->_DBHandle->exec('CREATE TABLE kvp_'.$this->_TableName.' (id VARCHAR(12) PRIMARY KEY, value BLOB)'))ServiceMetadata.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 292 lines
1<?php 2/** 144 if ($servicesConfig && is_string($servicesConfig) && $typesData && is_string($typesData)) { 145 $this->services = unserialize($servicesConfig); 146 $this->typeProcessor->setTypesData(unserialize($typesData)); 148 $this->services = $this->initServicesMetadata(); 149 $this->cache->save(serialize($this->services), self::SERVICES_CONFIG_CACHE_ID); 150 $this->cache->save(serialize($this->typeProcessor->getTypesData()), self::REFLECTED_TYPES_CACHE_ID); 185 * @throws \InvalidArgumentException 186 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 187 */ 258 if ($routesConfig && is_string($routesConfig) && $typesData && is_string($typesData)) { 259 $this->routes = unserialize($routesConfig); 260 $this->typeProcessor->setTypesData(unserialize($typesData)); 262 $this->routes = $this->initRoutesMetadata(); 263 $this->cache->save(serialize($this->routes), self::ROUTES_CONFIG_CACHE_ID); 264 $this->cache->save(serialize($this->typeProcessor->getTypesData()), self::REFLECTED_TYPES_CACHE_ID);class-wp-object-cache.php https://gitlab.com/VTTE/sitios-vtte | PHP | 475 lines
1<?php 2/** 74 /** 75 * Sets up object properties; PHP 5 style constructor. 76 * 400 * The $expire parameter is not used, because the cache will automatically 401 * expire for each time a page is accessed and PHP finishes. The method is 402 * more for cache plugins which use files. 443 foreach ( $this->cache as $group => $cache ) { 444 echo '<li><strong>Group:</strong> ' . esc_html( $group ) . ' - ( ' . number_format( strlen( serialize( $cache ) ) / KB_IN_BYTES, 2 ) . 'k )</li>'; 445 }HproseWriter.php https://gitlab.com/fangfangchen/xianpipa | PHP | 301 lines
1<?php 2/**********************************************************\ 13 * * 14 * HproseWriter.php * 15 * * 15 * * 16 * hprose writer library for php5. * 17 * * 22 23require_once('HproseCommon.php'); 24require_once('HproseTags.php'); 24require_once('HproseTags.php'); 25require_once('HproseClassManager.php'); 26 35 } 36 public function serialize(&$var) { 37 if ((!isset($var)) || ($var === NULL)) {fileman_newfolder.php https://gitlab.com/alexprowars/bitrix | PHP | 302 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3 6 7require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fileman/include.php"); 8IncludeModuleLangFile(__FILE__); 74 $arParsedPathTmp = CFileMan::ParsePath(Array($site, $pathto), true, false, "", $logical == "Y"); 75 $menu_path = $arParsedPathTmp["PREV"]."/.".$menutype.".menu.php"; 76 if($USER->CanDoFileOperation('fm_view_file',Array($site, $menu_path))) 113 } 114 $APPLICATION->SaveFileContent($DOC_ROOT.$pathto."/.section.php", "<?\n\$sSectionName=\"".CFileMan::EscapePHPString($sectionname)."\";\n?>"); 115 } 124 if($toedit=="Y") 125 LocalRedirect("/bitrix/admin/fileman_html_edit.php?".$addUrl."&site=".$site."&template=".Urlencode($template)."&path=".UrlEncode($pathto)."&filename=index.php&new=Y".($back_url == '' ?"":"&back_url=".UrlEncode($back_url)).($gotonewpage == ''?"":"&gotonewpage=".UrlEncode($gotonewpage)).($backnewurl == ''?"":"&backnewurl=".UrlEncode($backnewurl))); 126 elsebrowse_old.php https://gitlab.com/wildanoo/E-procurement | PHP | 228 lines
7 $(function(){ }); 8 var baseUrl = "<?php echo base_url(); ?>"; 9 16 var search = $("#srch-term").val(); // alert(search); 17 var csrf = '<?php echo $this->security->get_csrf_token_name(); ?>'; 18 var token = '<?php echo $this->security->get_csrf_hash(); ?>'; 35 function form_create(){ 36 var baseUrl = "<?php echo base_url(); ?>"; 37 var csrf = '<?php echo $this->security->get_csrf_token_name(); ?>'; 37 var csrf = '<?php echo $this->security->get_csrf_token_name(); ?>'; 38 var token = '<?php echo $this->security->get_csrf_hash(); ?>'; 39 BootstrapDialog.show({ 55 if (json.status=='true'){ 56 var values = $("#form").serializeArray(); 57 values.push({ name: csrf,value: token });admin-sync.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 358 lines
1<?php 2 55 public function add_meta_boxes( $post_type, $post ) { 56 if ( 'post-new.php' == $GLOBALS['pagenow'] && isset( $_GET['from_post'], $_GET['new_lang'] ) && $this->model->is_translated_post_type( $post->post_type ) ) { 57 // capability check already done in post-new.php 211 foreach ( $metas[ $key ] as $value ) { 212 // important: always maybe_unserialize value coming from get_post_custom. See codex. 213 // thanks to goncalveshugo http://wordpress.org/support/topic/plugin-polylang-pll_copy_post_meta 213 // thanks to goncalveshugo http://wordpress.org/support/topic/plugin-polylang-pll_copy_post_meta 214 $value = maybe_unserialize( $value ); 215 // special case for featured images which can be translatedImagesController.php https://gitlab.com/jensdwul1/nmdad3.local | PHP | 362 lines
1<?php 2 50 * 51 * @FOSRest\View(serializerGroups={"Default", "Images_getImages"}) 52 * @FOSRest\Get(view_pages.php https://gitlab.com/diva-lab/essam-labs | PHP | 228 lines
44 <!--sidebar start--> 45 <?php require_once("../layout/navigation.php");?> 46 <!--sidebar end--> 77 <tbody id="myTable"> 78 <?php 79 $serialize = 1; 130 </div>"; 131 $serialize++; 132 }?> 155 <label class="checkbox-inline"> 156 <input type="radio" name="status" class="radio" value="publish" <?php if(isset($_GET["status"])){ 157 if($status == "publish") echo "checked";} ?>> 227 <!--footer start--> 228 <?php require_once("../layout/footer.php");?> 229admin_transitions.php https://gitlab.com/Riky_Lesmana/SugarSweetCakes | PHP | 313 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2 64 65 // Build the page. See views/admin/index.php 66 // for the view code. 106 107 // Build the page. See views/admin/index.php 108 // for the view code. 142 if($_POST){ 143 $_POST['transition_triggers'] = serialize($this->input->post('transition_triggers')); 144 } 236 if($_POST){ 237 $_POST['transition_triggers'] = serialize($this->input->post('transition_triggers')); 238 }FilterTest.php https://gitlab.com/oytunistrator/92five | PHP | 305 lines
1<?php 2/** 2/** 3 * PHP_CodeCoverage 4 * 4 * 5 * Copyright (c) 2009-2014, Sebastian Bergmann <sebastian@phpunit.de>. 6 * All rights reserved. 36 * 37 * @category PHP 38 * @package CodeCoverage 66 */ 67class PHP_CodeCoverage_FilterTest extends PHPUnit_Framework_TestCase 68{ 73 { 74 $this->filter = unserialize('O:23:"PHP_CodeCoverage_Filter":0:{}'); 75Payment.php https://gitlab.com/AlexandrSy/magento.xxx | PHP | 327 lines
1<?php 2/** 34 * @author Magento Core Team <core@magentocommerce.com> 35 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 36 */ 71 * @param array $data 72 * @SuppressWarnings(PHPMD.ExcessiveParameterList) 73 */ 284 if (is_string($additionalDataValue)) { 285 $additionalData = @unserialize($additionalDataValue); 286 if (is_array($additionalData)) {Item.php https://gitlab.com/ricardosanchez/prueba | PHP | 398 lines
1<?php 2/** 101 102 public function serialize() 103 { 104 // FIXME: need to create collection class to gather the sibling data. 105 return serialize([ 106 'version' => static::VERSION, 113 114 public function unserialize($serialized) 115 { 116 // FIXME: need to create collection class to gather the sibling data. 117 $data = unserialize($serialized); 118 119 if (!isset($data['version']) && $data['version'] === static::VERSION) { 120 throw new \UnexpectedValueException('Serialized data is not valid'); 121 }site-users.php https://gitlab.com/thisishayat/itv-2016 | PHP | 338 lines
88 /** 89 * Fires after a user has been created via the network site-users.php page. 90 * 205<h1 id="edit-site"><?php echo $title; ?></h1> 206<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p> 207<h2 class="nav-tab-wrapper nav-tab-small"> 209$tabs = array( 210 'site-info' => array( 'label' => __( 'Info' ), 'url' => 'site-info.php' ), 211 'site-users' => array( 'label' => __( 'Users' ), 'url' => 'site-users.php' ), 310<h2 id="add-new-user"><?php _e( 'Add New User' ); ?></h2> 311<form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post"> 312 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 336</div> 337<?php 338require( ABSPATH . 'wp-admin/admin-footer.php' );ARC2_SemHTMLParser.php https://gitlab.com/klausmig/CloudSemanticWeb | PHP | 339 lines
1<?php 2/* 62 if ($this->skip_dupes) { 63 $h = md5(serialize($t)); 64 if (!isset($this->added_triples[$h])) {content-archive.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 154 lines
21<div class="col-md-12" style="padding: 0px;"> 22 <div id="post-<?php the_ID(); ?>" <?php post_class('minisite_borda'); ?>> 23 <div class="row" style="padding: 0px;margin-right: 0px;margin-left: 0px;"> 103 <span style="font-weight: 300;"> 104 <a href="http://<?php echo $javo_meta_query->get('website'); ?>" target="_blank" alt="<?php the_title(); ?>" title="<?php the_title(); ?>"><?php echo $javo_meta_query->get('website'); ?></a> 105 </span> 122 <div style="float: right;padding-left: 5px;"> 123 <?php if ($javo_meta_query->get('phone1') != '' && $javo_meta_query->get('phone1') != ', ') { ?><div style="margin-top:5px;"><span class="quebratelefone"><?php echo $javo_meta_query->get('phone1'); ?></span></div><?php } ?> 124 <?php if ($javo_meta_query->get('phone2') != '' && $javo_meta_query->get('phone2') != ', ') { ?><div style="margin-top:5px;"><span class="quebratelefone"><?php echo $javo_meta_query->get('phone2'); ?></span></div><?php } ?> 124 <?php if ($javo_meta_query->get('phone2') != '' && $javo_meta_query->get('phone2') != ', ') { ?><div style="margin-top:5px;"><span class="quebratelefone"><?php echo $javo_meta_query->get('phone2'); ?></span></div><?php } ?> 125 <?php if ($javo_meta_query->get('phone3') != '' && $javo_meta_query->get('phone3') != ', ') { ?><div style="margin-top:5px;"><span class="quebratelefone"><?php echo $javo_meta_query->get('phone3'); ?></span></div><?php } ?> 126 </div> 146 <div style="float: right;width: 100%;" class="quebratelefone"> 147 <?php if ($javo_meta_query->get('phone0800') != '' && $javo_meta_query->get('phone0800') != ', ') { ?><div style="margin-top:5px;"><span class="quebratelefone"><?php echo $javo_meta_query->get('phone0800'); ?></span></div><?php } ?> 148 </div>CMB2_Field_Display.php https://gitlab.com/vitorhugoro1/grx-kanban | PHP | 455 lines
1<?php 2/** 289 290 $datetime = maybe_unserialize( $this->value ); 291 $this->value = $tzstring = '';AwsClientTest.php https://gitlab.com/github-cloud-corp/aws-sdk-php | PHP | 376 lines
1<?php 2namespace Aws\Test; 21 */ 22class AwsClientTest extends \PHPUnit_Framework_TestCase 23{ 45 'endpoint' => 'http://us-east-1.foo.amazonaws.com', 46 'serializer' => function () {}, 47 'api_provider' => $this->getApiProvider(), 295 * @expectedException \RuntimeException 296 * @expectedExceptionMessage Instances of Aws\AwsClient cannot be serialized 297 */ 300 $client = $this->createClient(); 301 \serialize($client); 302 } 370 'api_provider' => $apiProvider, 371 'serializer' => function () {}, 372 'error_parser' => function () {},_html_1_stash.php https://gitlab.com/mattswann/launch-housing | PHP | 308 lines
1<!-- _html_1_stash.php --> 2<?php 96</style> 97<?php 98$ITXAPI_KEY = 'ixho7dk0p244n0ob'; 113 'name' => 'options', 114 'default' => htmlspecialchars( serialize( pb_backupbuddy::$options ) ), 115) ); 147 148 require_once( dirname( dirname( __FILE__ ) ) . '/lib/requestcore/requestcore.class.php' ); 149 //require_once( dirname( dirname( __FILE__ ) ) . '/lib/stash2/init.php' ); 149 //require_once( dirname( dirname( __FILE__ ) ) . '/lib/stash2/init.php' ); 150 require_once( dirname( dirname( __FILE__ ) ) . '/lib/stash2/class.itx_helper2.php' ); 151 272 <input type="hidden" name="upload" value="stash"> 273 <input type="hidden" name="options" value="' . htmlspecialchars( serialize( pb_backupbuddy::$options ) ) . '"> 274 <input type="hidden" name="link" value="' . $stash_file['url'] . '">RequestDataCollector.php https://gitlab.com/fabian.morales/marlon_becerra | PHP | 330 lines
1<?php 2 50 51 // attributes are serialized and as they can be anything, they need to be converted to strings. 52 $attributes = array(); 111 112 if (isset($this->data['request_headers']['php-auth-pw'])) { 113 $this->data['request_headers']['php-auth-pw'] = '******'; 115 116 if (isset($this->data['request_server']['PHP_AUTH_PW'])) { 117 $this->data['request_server']['PHP_AUTH_PW'] = '******';ErrorModel.php https://gitlab.com/VTTE/sitios-vtte | PHP | 395 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 32use \ArrayAccess; 33use \SendinBlue\Client\ObjectSerializer; 34 385 return json_encode( 386 ObjectSerializer::sanitizeForSerialization($this), 387 JSON_PRETTY_PRINT 390 391 return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 392 }RouteTest.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 232 lines
1<?php 2 15 16class RouteTest extends \PHPUnit_Framework_TestCase 17{ 221 222 public function testSerialize() 223 { 226 $serialized = serialize($route); 227 $unserialized = unserialize($serialized); 228 228 229 $this->assertEquals($route, $unserialized); 230 $this->assertNotSame($route, $unserialized);BaseStringHelper.php https://gitlab.com/isdzulqor/Slis-Dev | PHP | 283 lines
1<?php 2/** 41 * @return string the extracted part of string, or FALSE on failure or an empty string. 42 * @see http://www.php.net/manual/en/function.substr.php 43 */ 50 * Returns the trailing name component of a path. 51 * This method is similar to the php function `basename()` except that it will 52 * treat both \ and / as directory separators, independent of the operating system. 59 * @return string the trailing name component of the given path. 60 * @see http://www.php.net/manual/en/function.basename.php 61 */ 81 * @return string the parent directory's path. 82 * @see http://www.php.net/manual/en/function.basename.php 83 */ 226 if ($caseSensitive) { 227 // Warning check, see http://php.net/manual/en/function.substr-compare.php#refsect1-function.substr-compare-returnvalues 228 if (static::byteLength($string) < $bytes) {test-kirki.php https://gitlab.com/aristath/mdl | PHP | 320 lines
71 Kirki::add_field( 'my_config_options_serialized', array( 72 'settings' => 'my_setting_options_serialized', 73 'label' => __( 'My custom control', 'translation_domain' ), 111 Kirki::add_field( 'my_config_options_serialized', array( 112 'settings' => 'my_settings_test_background_options_serialized', 113 'section' => 'my_section', 230 $this->assertEquals( 'some-default-value', Kirki::get_option( 'my_config_options', 'my_setting_options' ) ); 231 $this->assertEquals( 'some-default-value', Kirki::get_option( 'my_config_options_serialized', 'my_option[my_setting_options_serialized]' ) ); 232 270 ), 271 Kirki::get_option( 'my_config_options_serialized', 'my_option[my_settings_test_background_options_serialized]' ) 272 ); 315 ), 316 Kirki::get_option( 'my_config_options_serialized', 'my_option[my_settings_test_background_options_serialized]' ) 317 );class-fep-update.php https://gitlab.com/pankajmohale/chef2go | PHP | 325 lines
70 <option value="32"><?php _e('3.2', 'front-end-pm' ); ?></option> 71 <option value="33"><?php _e('3.3', 'front-end-pm' ); ?></option> 72 </select> 74 <div id="fep-submit_button"> 75 <p class="submit"><button id="fep-update-button" class="button button-secondary"><?php _e('Update', 'front-end-pm' ); ?></button> 76 <img src="<?php echo FEP_PLUGIN_URL; ?>assets/images/loading.gif" class="fep-ajax-img" style="display:none;"/></p> 166 $seen = $this->get_announcement_meta( $announcement->id ); 167 $seen = maybe_unserialize( $seen ); 168 173 $deleted = $this->get_announcement_meta( $announcement->id, 'announcement_deleted_user_id' ); 174 $deleted = maybe_unserialize( $deleted ); 175 210 $unserialized_file = maybe_unserialize( $attachment->field_value ); 211 if ( $unserialized_file['type'] && $unserialized_file['url'] && $unserialized_file['file'] ) { 212 // Prepare an array of post data for the attachment.SessionManager.php https://gitlab.com/Skull3x/GladiatorMine | PHP | 431 lines
1<?php 2 81 82 $this->serverId = mt_rand(0, PHP_INT_MAX); 83 131 $diff = max(0.005, $time - $this->lastMeasure); 132 $this->streamOption("bandwidth", serialize([ 133 "up" => $this->sendBytes / $diff, 334 if($timeout === -1){ 335 $final = PHP_INT_MAX; 336 }else{TermStorage.php https://gitlab.com/reasonat/test8 | PHP | 373 lines
1<?php 2 352 $vars = parent::__sleep(); 353 // Do not serialize static cache. 354 unset($vars['parents'], $vars['parentsAll'], $vars['children'], $vars['treeChildren'], $vars['treeParents'], $vars['treeTerms'], $vars['trees']);SetTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 304 lines
1<?php 2/** 12/** 13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 14 */ 14 */ 15class SetTest extends \PHPUnit_Framework_TestCase 16{ 17 /** 18 * @var \PHPUnit_Framework_MockObject_MockObject|Set 19 */ 22 /** 23 * @var \PHPUnit_Framework_MockObject_MockObject 24 */ 27 /** 28 * @var \PHPUnit_Framework_MockObject_MockObject 29 */Memcache.php https://gitlab.com/hoanghung.dev/aloads | PHP | 308 lines
3/** 4 * PHPExcel_CachedObjectStorage_Memcache 5 * 23 * @package PHPExcel_CachedObjectStorage 24 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) 25 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 27 */ 28class PHPExcel_CachedObjectStorage_Memcache extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache 29{ 100 /** 101 * Is a value set in the current PHPExcel_CachedObjectStorage_ICache for an indexed cell? 102 * 130 * @param string $pCoord Coordinate of the cell 131 * @throws PHPExcel_Exception 132 * @return PHPExcel_Cell Cell that was found, or null if not foundPlatformJobQueue.php https://gitlab.com/fabiorf/curso-zend1-aula1 | PHP | 343 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: PlatformJobQueue.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 25 */ 26require_once 'Zend/Queue/Adapter/AdapterAbstract.php'; 27 55 if (!extension_loaded("jobqueue_client")) { 56 require_once 'Zend/Queue/Exception.php'; 57 throw new Zend_Queue_Exception('Platform Job Queue extension does not appear to be loaded'); 60 if (! isset($this->_options['daemonOptions'])) { 61 require_once 'Zend/Queue/Exception.php'; 62 throw new Zend_Queue_Exception('Job Queue host and password should be provided'); 67 if (!array_key_exists('host', $options)) { 68 require_once 'Zend/Queue/Exception.php'; 69 throw new Zend_Queue_Exception('Platform Job Queue host should be provided');PlatformJobQueue.php https://gitlab.com/luisrepo/ClienteWS | PHP | 343 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: PlatformJobQueue.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 25 */ 26require_once 'Zend/Queue/Adapter/AdapterAbstract.php'; 27 55 if (!extension_loaded("jobqueue_client")) { 56 require_once 'Zend/Queue/Exception.php'; 57 throw new Zend_Queue_Exception('Platform Job Queue extension does not appear to be loaded'); 60 if (! isset($this->_options['daemonOptions'])) { 61 require_once 'Zend/Queue/Exception.php'; 62 throw new Zend_Queue_Exception('Job Queue host and password should be provided'); 67 if (!array_key_exists('host', $options)) { 68 require_once 'Zend/Queue/Exception.php'; 69 throw new Zend_Queue_Exception('Platform Job Queue host should be provided');Collection.php https://gitlab.com/habracoder/advertising | PHP | 486 lines
1<?php 2 470 /** 471 * Serializes the object ignoring connections or protected properties 472 * 474 */ 475 public function serialize(){ } 476 478 /** 479 * Unserializes the object from a serialized string 480 * 482 */ 483 public function unserialize($data){ } 484class-kirki-enqueue.php https://gitlab.com/aristath/kirki | PHP | 238 lines
1<?php 2/** 73 // Register serialize.js. 74 wp_register_script( 'serialize-js', trailingslashit( Kirki::$url ) . 'assets/js/vendor/serialize.js' ); 75 115 'slider' => array( 'jquery', 'customize-base' ), 116 'sortable' => array( 'jquery', 'customize-base', 'jquery-ui-core', 'jquery-ui-sortable', 'serialize-js' ), 117 'spacing' => array( 'jquery', 'customize-base', 'kirki-validate-css-value' ),posts-sp.inc.php https://gitlab.com/Gashler/dp | PHP | 120 lines
1<?php 2/** 102 { 103 foreach ($ccaps_req as $ccap) // The $user MUST satisfy ALL Custom Capabilities. Serialized array. 104 if (strlen ($ccap) && (!$check_user || !$user || !$user->has_cap ("access_s2member_ccap_" . $ccap)))xbox-server.cpp https://gitlab.com/alvinahmadov2/hhvm | C++ | 430 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 16 17#include "hphp/runtime/server/xbox-server.h" 18#include "hphp/runtime/base/builtin-functions.h"em-notices.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 238 lines
1<?php 2 /** 13 $notices = base64_decode($_COOKIE['em_notices']); 14 if( is_serialized( $notices ) ){ 15 $this->notices = unserialize($notices); 34 if(count($this->notices['errors']) > 0 || count($this->notices['alerts']) > 0 || count($this->notices['infos']) > 0 || count($this->notices['confirms']) > 0){ 35 setcookie('em_notices', base64_encode(serialize($this->notices)), time() + 30, COOKIEPATH, COOKIE_DOMAIN, is_ssl(), true); //sets cookie for 30 seconds, which may be too much 36 }AnnotationDriver.php https://gitlab.com/cuza/Clinic_Recods | PHP | 225 lines
34use JMS\Serializer\Annotation\XmlElement; 35use JMS\Serializer\Annotation\PostSerialize; 36use JMS\Serializer\Annotation\PostDeserialize; 36use JMS\Serializer\Annotation\PostDeserialize; 37use JMS\Serializer\Annotation\PreSerialize; 38use JMS\Serializer\Annotation\VirtualProperty; 42use JMS\Serializer\Annotation\Exclude; 43use JMS\Serializer\Annotation\Groups; 44use JMS\Serializer\Annotation\Expose; 44use JMS\Serializer\Annotation\Expose; 45use JMS\Serializer\Annotation\SerializedName; 46use JMS\Serializer\Annotation\Until; 115 continue 2; 116 } elseif ($annot instanceof PostDeserialize) { 117 $classMetadata->addPostDeserializeMethod(new MethodMetadata($name, $method->name));MessageBag.php https://gitlab.com/Sigpot/AirSpot | PHP | 359 lines
1<?php 2 333 */ 334 public function jsonSerialize() 335 { 346 { 347 return json_encode($this->jsonSerialize(), $options); 348 }RedisProfilerStorage.php https://gitlab.com/x33n/Backbone-Music-Store | PHP | 381 lines
27 const REDIS_SERIALIZER_NONE = 0; 28 const REDIS_SERIALIZER_PHP = 1; 29 320 */ 321 private function getValue($key, $serializer = self::REDIS_SERIALIZER_NONE) 322 { 338 */ 339 private function setValue($key, $value, $expiration = 0, $serializer = self::REDIS_SERIALIZER_NONE) 340 { 341 $redis = $this->getRedis(); 342 $redis->setOption(self::REDIS_OPT_SERIALIZER, $serializer); 343 358 $redis = $this->getRedis(); 359 $redis->setOption(self::REDIS_OPT_SERIALIZER, self::REDIS_SERIALIZER_NONE); 360Collection.php https://gitlab.com/habracoder/advertising | PHP | 565 lines
1<?php 2 532 /** 533 * Serializes the object ignoring connections or protected properties 534 * 536 */ 537 public function serialize(){ } 538 540 /** 541 * Unserializes the object from a serialized string 542 * 544 */ 545 public function unserialize($serialized=null){ } 546PlatformJobQueue.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 343 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: PlatformJobQueue.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 25 */ 26require_once 'Zend/Queue/Adapter/AdapterAbstract.php'; 27 55 if (!extension_loaded("jobqueue_client")) { 56 require_once 'Zend/Queue/Exception.php'; 57 throw new Zend_Queue_Exception('Platform Job Queue extension does not appear to be loaded'); 60 if (! isset($this->_options['daemonOptions'])) { 61 require_once 'Zend/Queue/Exception.php'; 62 throw new Zend_Queue_Exception('Job Queue host and password should be provided'); 67 if (!array_key_exists('host', $options)) { 68 require_once 'Zend/Queue/Exception.php'; 69 throw new Zend_Queue_Exception('Platform Job Queue host should be provided');personal.js https://gitlab.com/Red54/core | JavaScript | 378 lines
48 OC.msg.startSaving('#lostpassword .msg'); 49 var post = $("#lostpassword").serializeArray(); 50 $.ajax({ 71 OC.msg.startSaving('#displaynameform .msg'); 72 // Serialize the data 73 var post = $("#displaynameform").serialize(); 74 // Ajax foo 75 $.post('ajax/changedisplayname.php', post, function (data) { 76 if (data.status === "success") { 182 && !(isIE8or9 && $('#pass2').val() === $('#pass2').attr('placeholder'))) { 183 // Serialize the data 184 var post = $("#passwordform").serialize(); 219 $("#languageinput").change(function () { 220 // Serialize the data 221 var post = $("#languageinput").serialize();2-the-view-layer.md https://gitlab.com/randydanniswara/website | Markdown | 322 lines
7controllers, by placing a layer between the Controller and the generation of the 8final output via the templating or a serializer. 9 9 10The Bundle works with both the Symfony2 core serializer: 11http://symfony.com/doc/2.0/components/serializer.html 12 13But also with the more sophisticated serializer by Johannes Schmitt: 14https://github.com/schmittjoh/serializer 14https://github.com/schmittjoh/serializer 15https://github.com/schmittjoh/JMSSerializerBundle 16 27 28```php 29<?phpdiscount.php https://gitlab.com/Rad1calDreamer/honey | PHP | 426 lines
1<?php 2namespace Bitrix\Catalog; 234 'CONDITIONS_LIST' => new Main\Entity\TextField('CONDITIONS_LIST', array( 235 'serialized' => true, 236 'column_name' => 'CONDITIONS',CacheBase.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 376 lines
1<?php 2/** 4 * 5 * Copyright (c) 2006 - 2014 PHPExcel 6 * 22 * @package PHPExcel_CachedObjectStorage 23 * @copyright Copyright (c) 2006 - 2014 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 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 80 */ 81 public function __construct(PHPExcel_Worksheet $parent) { 82 // Set our parent worksheet. 367 * Identify whether the caching method is currently available 368 * Some methods are dependent on the availability of certain extensions being enabled in the PHP build 369 *Page.php https://gitlab.com/florianocomercial/centreon | PHP | 402 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Page.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 26 */ 27require_once 'Zend/Cache/Core.php'; 28 391 if ($bool2) { 392 return serialize($var); 393 }Messages.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 309 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) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 295 return array( 296 'storage_types' => serialize($this->_usedStorageTypes) 297 );Currencysymbol.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 282 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) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 158 159 $currentSymbols = $this->_unserializeStoreConfig(self::XML_PATH_CUSTOM_CURRENCY_SYMBOL); 160 205 if ($symbols) { 206 $value['options']['fields']['customsymbol']['value'] = serialize($symbols); 207 } else { 242 { 243 $customSymbols = $this->_unserializeStoreConfig(self::XML_PATH_CUSTOM_CURRENCY_SYMBOL); 244 if (array_key_exists($code, $customSymbols)) {CartItemProcessorTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 229 lines
1<?php 2/** 7 8class CartItemProcessorTest extends \PHPUnit_Framework_TestCase 9{ 15 /** 16 * @var \PHPUnit_Framework_MockObject_MockObject 17 */ 20 /** 21 * @var \PHPUnit_Framework_MockObject_MockObject 22 */ 25 /** 26 * @var \PHPUnit_Framework_MockObject_MockObject 27 */ 30 /** 31 * @var \PHPUnit_Framework_MockObject_MockObject 32 */ArrayCookieJarTest.php https://gitlab.com/x33n/respond | PHP | 353 lines
1<?php 2 86 { 87 $this->assertEquals('[]', $this->jar->serialize()); 88 $this->jar->unserialize('[]'); 96 // Remove discard and expired cookies 97 $serialized = $this->jar->serialize(); 98 $data = json_decode($serialized, true); 101 $a = new ArrayCookieJar(); 102 $a->unserialize($serialized); 103 $this->assertEquals(1, count($a));html-order-item.php https://gitlab.com/webkod3r/tripolis | PHP | 269 lines
203 <?php $item_total = ( isset( $item['line_total'] ) ) ? esc_attr( wc_format_localized_price( $item['line_total'] ) ) : ''; ?> 204 <input type="text" name="line_total[<?php echo absint( $item_id ); ?>]" placeholder="<?php echo wc_format_localized_price( 0 ); ?>" value="<?php echo $item_total; ?>" class="line_total wc_input_price tips" data-tip="<?php esc_attr_e( 'After pre-tax discounts.', 'woocommerce' ); ?>" data-total="<?php echo $item_total; ?>" /> 205 206 <?php $item_subtotal = ( isset( $item['line_subtotal'] ) ) ? esc_attr( wc_format_localized_price( $item['line_subtotal'] ) ) : ''; ?> 207 <input type="text" name="line_subtotal[<?php echo absint( $item_id ); ?>]" value="<?php echo $item_subtotal; ?>" class="line_subtotal wc_input_price tips" data-tip="<?php esc_attr_e( 'Before pre-tax discounts.', 'woocommerce' ); ?>" data-subtotal="<?php echo $item_subtotal; ?>" /> 208 </div> 246 <?php $item_total_tax = ( isset( $tax_item_total ) ) ? esc_attr( wc_format_localized_price( $tax_item_total ) ) : ''; ?> 247 <input type="text" name="line_tax[<?php echo absint( $item_id ); ?>][<?php echo esc_attr( $tax_item_id ); ?>]" placeholder="<?php echo wc_format_localized_price( 0 ); ?>" value="<?php echo $item_total_tax; ?>" class="line_tax wc_input_price tips" data-tip="<?php esc_attr_e( 'After pre-tax discounts.', 'woocommerce' ); ?>" data-total_tax="<?php echo $item_total_tax; ?>" /> 248 249 <?php $item_subtotal_tax = ( isset( $tax_item_subtotal ) ) ? esc_attr( wc_format_localized_price( $tax_item_subtotal ) ) : ''; ?> 250 <input type="text" name="line_subtotal_tax[<?php echo absint( $item_id ); ?>][<?php echo esc_attr( $tax_item_id ); ?>]" value="<?php echo $item_subtotal_tax; ?>" class="line_subtotal_tax wc_input_price tips" data-tip="<?php esc_attr_e( 'Before pre-tax discounts.', 'woocommerce' ); ?>" data-subtotal_tax="<?php echo $item_subtotal_tax; ?>" /> 251 </div> 253 <div class="refund" style="display: none;"> 254 <input type="text" name="refund_line_tax[<?php echo absint( $item_id ); ?>][<?php echo esc_attr( $tax_item_id ); ?>]" placeholder="<?php echo wc_format_localized_price( 0 ); ?>" class="refund_line_tax wc_input_price" data-tax_id="<?php echo esc_attr( $tax_item_id ); ?>" /> 255 </div>serverTypeCheck.ml https://gitlab.com/0072016/0072016-PHP.LLC | OCaml | 296 lines
55 * current modification. The scenario: 56 * File foo.php was defining the class A. 57 * The user gets rid of class A (in foo.php) 84 * It's called reparse (as opposed to parse) because it retrieves the tree 85 * from the datanodes where the Asts are stored in a serialized format. 86 * Important: we never ever want to reparse a file that was already parsed.Atom.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 280 lines
1<?php 2 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Atom.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 26 */ 27require_once 'Zend/Feed/Entry/Abstract.php'; 28 81 */ 82 require_once 'Zend/Feed/Exception.php'; 83 throw new Zend_Feed_Exception('Cannot delete entry; no link rel="edit" is present.'); 109 */ 110 require_once 'Zend/Feed/Exception.php'; 111 throw new Zend_Feed_Exception("Expected response code 2xx, got $httpStatus"); 121 * existing ones. If we have a link rel="edit", we are changing 122 * an existing entry. In this case we re-serialize the entry and 123 * PUT it to the edit URI, checking for a 200 OK result.Atom.php https://gitlab.com/luisrepo/ClienteWS | PHP | 280 lines
1<?php 2 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Atom.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 26 */ 27require_once 'Zend/Feed/Entry/Abstract.php'; 28 81 */ 82 require_once 'Zend/Feed/Exception.php'; 83 throw new Zend_Feed_Exception('Cannot delete entry; no link rel="edit" is present.'); 109 */ 110 require_once 'Zend/Feed/Exception.php'; 111 throw new Zend_Feed_Exception("Expected response code 2xx, got $httpStatus"); 121 * existing ones. If we have a link rel="edit", we are changing 122 * an existing entry. In this case we re-serialize the entry and 123 * PUT it to the edit URI, checking for a 200 OK result.MailHide.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | PHP | 351 lines
1<?php 2/** 22/** @see Zend_Service_ReCaptcha */ 23#require_once 'Zend/Service/ReCaptcha.php'; 24 32 * @license http://framework.zend.com/license/new-bsd New BSD License 33 * @version $Id: MailHide.php 24593 2012-01-05 20:35:02Z matthew $ 34 */ 126 if (null === $this->_emailValidator) { 127 #require_once 'Zend/Validate/EmailAddress.php'; 128 $this->setEmailValidator(new Zend_Validate_EmailAddress()); 154 /** @see Zend_Service_ReCaptcha_MailHide_Exception */ 155 #require_once 'Zend/Service/ReCaptcha/MailHide/Exception.php'; 156 156 157 throw new Zend_Service_ReCaptcha_MailHide_Exception('Use of the Zend_Service_ReCaptcha_MailHide component requires the mcrypt extension to be enabled in PHP'); 158 }eventslib_test.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 303 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 20 * @package core_event 21 * @subpackage phpunit 22 * @copyright 2007 onwards Martin Dougiamas (http://dougiamas.com) 59 $handlers = array(); 60 require(__DIR__.'/fixtures/events.php'); 61 $this->assertCount($dbcount, $handlers, 'Equal number of handlers in file and db: %s'); 91 // Change handler in db. 92 $DB->set_field('events_handlers', 'handlerfunction', serialize('some_other_function_handler'), array('id'=>$handler->id)); 93PhoneNumberCountryRegionInfoType.class.php https://gitlab.com/irbisadm/vox-php-sdk | PHP | 263 lines
1<?php 2/** 220 221 public function jsonSerialize(){ 222 return [class-helper.php https://gitlab.com/webkod3r/tripolis | PHP | 422 lines
1<?php 2/** 197 if($slides && !isset($slides->errors)){ 198 $slides = is_array($slides) ? $slides : unserialize($slides); 199 foreach($slides as $key => $val){fups.php https://gitlab.com/ezeql/fups | PHP | 147 lines
1<?php 2 3/* 4 * FUPS: Forum user-post scraper. An extensible PHP framework for scraping and 5 * outputting the posts of a specified user from a specified forum/board 25 26/* File : fups.php. 27 * Description: The main scraping script, initiated either automatically by 30 * 31 * php path/to/fups.php -i path/to/existing/optionsfile.txt -o path/to/desired/outputfile.html 32 * 38 * $required_settings and $optional_settings arrays in each of 39 * classes/CphpBB.php and classes/CXenForo.php. 40 */ 130 $token_or_settings_filename = $web_initiated ? $token : $settings_filename; 131 $FUPS = unserialize(file_get_contents(make_serialize_filename($token_or_settings_filename))); 132} else {FileStore.php https://gitlab.com/techniconline/kmc | PHP | 247 lines
1<?php namespace Illuminate\Cache; 2 75 76 $data = unserialize(substr($contents, 10)); 77 95 { 96 $value = $this->expiration($minutes) . serialize($value); 97DumpDataCollector.php https://gitlab.com/pthapa81/MeroSaaman-1.0 | PHP | 284 lines
1<?php 2 42 $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format'); 43 $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8'; 44 $this->requestStack = $requestStack; 68 69 $trace = PHP_VERSION_ID >= 50306 ? DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS : true; 70 if (PHP_VERSION_ID >= 50400) { 151 if ($response->headers->has('Content-Type') && false !== strpos($response->headers->get('Content-Type'), 'html')) { 152 $this->dumper = new HtmlDumper('php://output', $this->charset); 153 } else { 153 } else { 154 $this->dumper = new CliDumper('php://output', $this->charset); 155 } 166 167 public function serialize() 168 {ManagerTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 314 lines
1<?php 2/** 23 * 24 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 25 */ 25 */ 26class ManagerTest extends \PHPUnit_Framework_TestCase 27{ 33 /** 34 * @var ComponentDefinition|\PHPUnit_Framework_MockObject_MockObject 35 */ 38 /** 39 * @var CacheInterface|\PHPUnit_Framework_MockObject_MockObject 40 */ 43 /** 44 * @var InterpreterInterface|\PHPUnit_Framework_MockObject_MockObject 45 */MenuTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 324 lines
1<?php 2/** 7 8class MenuTest extends \PHPUnit_Framework_TestCase 9{ 318 319 public function testSerialize() 320 { 320 { 321 $this->assertNotEmpty($this->_model->serialize()); 322 $this->_model->add($this->_items['item1']);ObjectManagerFactory.php https://gitlab.com/yousafsyed/easternglamor | PHP | 307 lines
1<?php 2/** 12use Magento\Framework\Interception\ObjectManager\ConfigInterface; 13use Magento\Framework\ObjectManager\Definition\Compiled\Serialized; 14use Magento\Framework\App\ObjectManager\Environment; 17/** 18 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 19 * Class ObjectManagerFactory 106 * 107 * @SuppressWarnings(PHPMD.NPathComplexity) 108 */ 116 $this->directoryList->getPath(DirectoryList::GENERATION), 117 $deploymentConfig->get(self::CONFIG_PATH_DEFINITION_FORMAT, Serialized::MODE_NAME) 118 );sysvmsg.c https://gitlab.com/envieidoc/tomato | C | 477 lines
342 343 messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf)); 344 375 FREE_ZVAL(tmp); 376 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); 377 } else { 409 smart_str msg_var = {0}; 410 php_serialize_data_t var_hash; 411 411 412 PHP_VAR_SERIALIZE_INIT(var_hash); 413 php_var_serialize(&msg_var, &message, &var_hash TSRMLS_CC); 413 php_var_serialize(&msg_var, &message, &var_hash TSRMLS_CC); 414 PHP_VAR_SERIALIZE_DESTROY(var_hash); 415SQLite3.php https://gitlab.com/Zinnurain/destination_finder_beta | PHP | 345 lines
2/** 3 * PHPExcel 4 * 22 * @package PHPExcel_CachedObjectStorage 23 * @copyright Copyright (c) 2006 - 2014 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 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_CachedObjectStorage_SQLite3 extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { 37 126 * @param string $pCoord Coordinate of the cell 127 * @throws PHPExcel_Exception 128 * @return PHPExcel_Cell Cell that was found, or null if not foundclass.php https://gitlab.com/alexprowars/bitrix | PHP | 524 lines
1<?php 2 238 $signer = new Main\Security\Sign\Signer; 239 $this->arResult['$signedParams'] = $signer->sign(base64_encode(serialize($this->arParams)), 'sale.order.payment.change'); 240 }Atom.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 280 lines
1<?php 2 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Atom.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 26 */ 27require_once 'Zend/Feed/Entry/Abstract.php'; 28 81 */ 82 require_once 'Zend/Feed/Exception.php'; 83 throw new Zend_Feed_Exception('Cannot delete entry; no link rel="edit" is present.'); 109 */ 110 require_once 'Zend/Feed/Exception.php'; 111 throw new Zend_Feed_Exception("Expected response code 2xx, got $httpStatus"); 121 * existing ones. If we have a link rel="edit", we are changing 122 * an existing entry. In this case we re-serialize the entry and 123 * PUT it to the edit URI, checking for a 200 OK result.ext_pdo.h https://gitlab.com/iranjith4/hhvm | C Header | 217 lines
7 +----------------------------------------------------------------------+ 8 | This source file is subject to version 3.01 of the PHP license, | 9 | that is bundled with this package in the file LICENSE, and is | 10 | available through the world-wide-web at the following url: | 11 | http://www.php.net/license/3_01.txt | 12 | If you did not receive a copy of the PHP license and are unable to | 13 | obtain it through the world-wide-web, please send a note to | 14 | license@php.net so we can mail you a copy immediately. | 15 +----------------------------------------------------------------------+ 17 18#ifndef incl_HPHP_EXT_PDO_H_ 19#define incl_HPHP_EXT_PDO_H_ 137const StaticString s_FETCH_CLASSTYPE("FETCH_CLASSTYPE"); 138const StaticString s_FETCH_SERIALIZE("FETCH_SERIALIZE"); 139const StaticString s_FETCH_PROPS_LATE("FETCH_PROPS_LATE");SQLite3.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 345 lines
22 * @package PHPExcel_CachedObjectStorage 23 * @copyright Copyright (c) 2006 - 2014 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 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_CachedObjectStorage_SQLite3 extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { 37 109 */ 110 public function addCacheData($pCoord, PHPExcel_Cell $cell) { 111 if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { 306 if ($this->_DBHandle === false) 307 throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg()); 308 if (!$this->_DBHandle->exec('CREATE TABLE kvp_'.$this->_TableName.' (id VARCHAR(12) PRIMARY KEY, value BLOB)'))cqspellclassroom.inc.php https://gitlab.com/nacridan/Nacridan | PHP | 185 lines
1<?php 2 13 */ 14require_once (HOMEPATH . "/factory/InsideBuildingFactory.inc.php"); 15require_once (HOMEPATH . "/factory/CityFactory.inc.php"); 55 if ($curbuilding->get("school") != "") 56 $schoolList = unserialize($curbuilding->get("school")); 57 else 91 92 $str .= "<form name='form' method='POST' action='" . CONFIG_HOST . "/conquest/conquest.php?action=act" . "' target='_self'>"; 93 $str .= "<tr><td class='mainbglabel'>Vous allez apprendre le sort " . $dbBMS->get("name") . " pour " . $price . " PO (et " . (LEARN_AP - $curbuilding->get("value")) . 101 } else { 102 $str .= "<form method='POST' action='" . CONFIG_HOST . "/conquest/conquest.php?center=view2d&bottom=viewpanel' target='_self'>\n"; 103 126 $str .= "<tr><td class='mainbgbody'><input type='radio' name='IDSPELL' value='" . $dbBMS->get("id") . "' id='" . $dbBMS->get("name") . "' /><label for='" . 127 $dbBMS->get("name") . "'><a href=\"" . CONFIG_HOST . "/conquest/spell.php?id=" . $dbBMS->get("id") . "\" class='parchment popupify'>" . 128 localize($dbBMS->get("name")) . "</a> (" . $price . " PO) </label></td></tr>";ObjectTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 381 lines
1<?php 2/** 11 12use PHPUnit_Framework_TestCase; 13 13 14class ObjectTest extends \PHPUnit_Framework_TestCase 15{ 114 'subkey2.1' => 'value2.1', 115 'subkey2.2' => 'multiline'. PHP_EOL .'string', 116 'subkey2.3' => new \Magento\Framework\DataObject(['test_key' => 'test_value']), 311 /** 312 * Tests \Magento\Framework\DataObject->serialize() 313 */ 313 */ 314 public function testSerialize() 315 {wp-e-commerce.js https://gitlab.com/endomorphosis/reservationtelco | JavaScript | 368 lines
111 } else { 112 form_values = jQuery(this).serialize(); 113 // Sometimes jQuery returns an object instead of null, using length tells us how many elements are in the object, which is more reliable than comparing the object to null 116 } 117 jQuery.post( 'index.php?ajax=true', form_values, function(returned_data) { 118 eval(returned_data); 161 parent_form = jQuery(this).parents("form.product_form"); 162 form_values =jQuery("input[name=product_id],div.wpsc_variation_forms .wpsc_select_variation",parent_form).serialize( ); 163 jQuery.post( 'index.php?update_product_price=true', form_values, function(returned_data) { 191 form_values = "ajax=true" 192 jQuery.post( 'index.php?wpsc_ajax_action=get_cart', form_values, function(returned_data) { 193 eval(returned_data); 210 form_values = "ajax=true&"; 211 form_values += jQuery(this).serialize(); 212 jQuery.post( 'index.php', form_values, function(returned_data) {update.class.php https://gitlab.com/webkod3r/tripolis | PHP | 234 lines
1<?php 2/** 12 private $plugin_url = 'http://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/2751380'; 13 private $remote_url = 'http://updates.themepunch.tools/check_for_updates.php'; 14 private $remote_url_info = 'http://updates.themepunch.tools/revslider/revslider.php'; 15 private $plugin_slug = 'revslider'; 16 private $plugin_path = 'revslider/revslider.php'; 17 private $version; 82 83 $this->data = is_object($data) ? $data : maybe_unserialize($data); 84 141 if(!is_wp_error($request)) { 142 if($response = maybe_unserialize($request['body'])) { 143 if(is_object($response)) {Memcache.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 312 lines
22 * @package PHPExcel_CachedObjectStorage 23 * @copyright Copyright (c) 2006 - 2014 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 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_CachedObjectStorage_Memcache extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { 37 91 */ 92 public function addCacheData($pCoord, PHPExcel_Cell $cell) { 93 if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { 299 * Identify whether the caching method is currently available 300 * Some methods are dependent on the availability of certain extensions being enabled in the PHP build 301 *merkleblock.h https://gitlab.com/jslee1/bitcoin | C Header | 157 lines
3// Distributed under the MIT software license, see the accompanying 4// file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 8 9#include "serialize.h" 10#include "uint256.h" 84 /** serialization implementation */ 85 ADD_SERIALIZE_METHODS; 86 147 148 ADD_SERIALIZE_METHODS; 149admin-import.php https://gitlab.com/futuredrive630/wp-event-list | PHP | 305 lines
1<?php 2if(!defined('WPINC')) { 5 6require_once(EL_PATH.'includes/options.php'); 7require_once(EL_PATH.'admin/includes/admin-functions.php'); 7require_once(EL_PATH.'admin/includes/admin-functions.php'); 8require_once(EL_PATH.'includes/db.php'); 9require_once(EL_PATH.'includes/categories.php'); 107 $this->import_data = $import_data; 108 $serialized = serialize($this->import_data); 109 135 </div> 136 <input type="hidden" name="reviewed_events" id="reviewed_events" value="'.esc_html($serialized).'" /> 137 </form>'; 274 private function import_events() { 275 $reviewed_events = unserialize(stripslashes($_POST['reviewed_events'])); 276 $categories = isset($_POST['categories']) ? $_POST['categories'] : '';site-users.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 330 lines
88 /** 89 * Fires after a user has been created via the network site-users.php page. 90 * 205<h1 id="edit-site"><?php echo $title; ?></h1> 206<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p> 207<?php 272if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?> 273<h2 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h2> 274<form action="site-users.php?action=adduser" id="adduser" method="post"> 274<form action="site-users.php?action=adduser" id="adduser" method="post"> 275 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 276 <table class="form-table"> 302<h2 id="add-new-user"><?php _e( 'Add New User' ); ?></h2> 303<form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post"> 304 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />simulator.js https://gitlab.com/gregtyka/Scryve-Webapp | JavaScript | 362 lines
21// Ext.Ajax.request({ 22// url: '../../dump.php', 23// method: 'POST', 45 <p>Close this dialog and tap on the <b>\"Show Me!\"</b> button to see it in action. A demo series of events \n\ 46 (technically an array of serialized events in JSON format) will be replayed live on the screen.</p>\n\ 47 <p>To try it yourself, follow the steps below:\n\ASTNode.php https://gitlab.com/yousafsyed/easternglamor | PHP | 540 lines
1<?php 2/** 4 * 5 * PHP Version 5 6 * 39 * @copyright 2008-2015 Manuel Pichler. All rights reserved. 40 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 41 * @since 0.9.6 49 * @copyright 2008-2015 Manuel Pichler. All rights reserved. 50 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 51 * @since 0.9.6 77 /** 78 * Metadata for this node instance, serialized in a string. This string 79 * contains the start, end line, and the start, end column and the node 526 * The magic wakeup method will be called by PHP's runtime environment when 527 * a previously serialized object gets unserialized. This implementation of 528 * the wakeup method restores the dependencies between an ast node and theiblock_admin.php https://gitlab.com/Rad1calDreamer/honey | PHP | 484 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3CModule::IncludeModule("iblock"); 3CModule::IncludeModule("iblock"); 4require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/iblock/prolog.php"); 5IncludeModuleLangFile(__FILE__); 8if($arIBTYPE===false) 9 LocalRedirect("/bitrix/admin/iblock_type_admin.php?lang=".LANGUAGE_ID); 10 122 $ID, 123 serialize($res_log) 124 ); 248 { 249 $row =& $lAdmin->AddRow($f_ID, $dbrs, 'iblock_edit.php?ID='.$f_ID.'&type='.htmlspecialcharsbx($type).'&lang='.LANGUAGE_ID.'&admin='.($_REQUEST["admin"]=="Y"? "Y": "N"), GetMessage("IBLOCK_ADM_TO_EDIT")); 250 }CacheTest.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 522 lines
1<?php 2/** 4 * 5 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> 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/2.0/en/development/testing.html CakePHP(tm) Tests 14 * @package Cake.Test.Case.Cache 14 * @package Cake.Test.Case.Cache 15 * @since CakePHP(tm) v 1.2.0.5432 16 * @license http://www.opensource.org/licenses/mit-license.php MIT License 130 * 131 * @expectedException PHPUnit_Framework_Error_Warning 132 * @return void 143 'path' => 'data/', 144 'serialize' => true, 145 'random' => 'wii'helpers.php https://gitlab.com/VTTE/sitios-vtte | PHP | 312 lines
1<?php 2use GutenPress\Forms; 78 $request = new WP_Http; 79 $result = $request->request( 'http://vimeo.com/api/v2/video/'.$id.'.php' , $args ); 80 //$iframe='<iframe src="http://player.vimeo.com/video/'.$id.'?title=0&byline=0&portrait=0" width="'.$width.'" height="'.$height.'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'; 81 if (!is_wp_error( $result )) { 82 $body = maybe_unserialize($result['body']); 83 if ($size == 'medium') 227/* 228 Super PHP Plugin to add Full SVG Media support to WordPress 229 Author URI: http://www.lewiscowles.co.uk/ 235 236 add_action( 'load-post.php', [ $this, 'add_editor_styles' ] ); 237 add_action( 'load-post-new.php', [ $this, 'add_editor_styles' ] ); 255 global $current_screen; 256 $mce_css .= ', ' . '/wp-admin/admin-ajax.php?action=adminlc_mce_svg.css'; 257 return $mce_css;class-wp-embed.php https://gitlab.com/pankajmohale/chef2go | PHP | 386 lines
1<?php 2/** 88 jQuery(document).ready(function($){ 89 $.get("<?php echo admin_url( 'admin-ajax.php?action=oembed-cache&post=' . $post->ID, 'relative' ); ?>"); 90 }); 91</script> 92<?php 93 } 195 // Check for a cached result (stored in the post meta) 196 $key_suffix = md5( $url . serialize( $attr ) ); 197 $cachekey = '_oembed_' . $key_suffix; 267 if ( $html ) { 268 /** This filter is documented in wp-includes/class-wp-embed.php */ 269 return apply_filters( 'embed_oembed_html', $html, $url, $attr, $post_ID );