PageRenderTime 396ms queryTime 67ms sortTime 89ms getByIdsTime 100ms findMatchingLines 56ms

100+ results results for 'php serialize repo:goldie/doctrine1' (396 ms)

Not the results you expected?
admin.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 303 lines
                    
1<?php
                    
2!function_exists('adminmsg') && exit('Forbidden');
                    
3
                    
4require_once(R_P.'require/credit.php');
                    
5
                    
75			!$rt['creditype'] && $rt['creditype'] = 'currency';
                    
76			$condition = unserialize($rt['conditions']);
                    
77			$groupids  = $condition['group'];
                    
138			}
                    
139			$condition = addslashes(serialize($condition));
                    
140			if ($action == 'edit') {
                    
268
                    
269		require_once(R_P.'require/bbscode.php');
                    
270		S::gp(array('page','keyword'));
                    
                
secp256k1.c https://gitlab.com/Ltaimao/bitcoin | C | 328 lines
                    
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;
                    
                
ErrorModel.php https://gitlab.com/i-have-a-green/digitemis-v3 | 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    }
                    
                
LanguagesManager.test.php https://github.com/quarkness/piwik.git | PHP | 259 lines
                    
1<?php
                    
2if(!defined('PIWIK_CONFIG_TEST_INCLUDED'))
                    
3{
                    
4	require_once dirname(__FILE__)."/../../../tests/config_test.php";
                    
5}
                    
6
                    
7require_once 'LanguagesManager/API.php';
                    
8
                    
36		
                    
37		// we also test that none of the language php files outputs any character on the screen (eg. space before the <?php)
                    
38		$languages = Piwik_LanguagesManager_API::getInstance()->getAvailableLanguages();
                    
44			$content = ob_get_flush();
                    
45			$serializedStrings = serialize($strings);
                    
46			$invalids = array("<script", 'document.', 'javascript:', 'src=', 'BACKGROUND=', 'onload=' );
                    
48			{
                    
49				$this->assertTrue(stripos($serializedStrings, $invalid) === false, "$language: language file containing javascript");
                    
50			}
                    
                
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 } ?>
                    
                
user.php https://bitbucket.org/jonarano/joneame.git | PHP | 283 lines
                    
26
                    
27		require_once(mnminclude.'avatars.php');
                    
28		require_once(mnminclude.'geo.php');
                    
129
                    
130        include_once mnminclude.'annotation.php';
                    
131
                    
140            ) {
                    
141                $obj = unserialize($stats->text);
                    
142        } else {
                    
151            if ($do_cache) {
                    
152                $stats->text = serialize($obj);
                    
153                $stats->store(); 
                    
194	function get_latlng() {
                    
195		require_once(mnminclude.'geo.php');
                    
196
                    
                
API.java https://bitbucket.org/pombredanne/linked-data-api-treemap.git | Java | 167 lines
                    
112    
                    
113    /** <p>gives a SPARQL WHERE clause (GroupGraphPattern excluding {}) to filter the 
                    
114     *  view (can be given in the query using _where)</p>
                    
141    
                    
142    /** <p>class used to mark properties that should be serialized as if they are multivalued, 
                    
143     *  irrespective of their cardinality on any particular instance</p>
                    
                
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('/&lt;\\?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) {
                    
                
PluginMain.cs https://bitbucket.org/kkszysiu/flashdevelop.git | C# | 290 lines
                    
181            this.defaultStartPageUrl = Path.Combine(startPageDir, fileWithArgs);
                    
182            this.defaultRssUrl = "http://www.flashdevelop.org/community/rss.php?f=15";
                    
183            if (!Directory.Exists(dataDir)) Directory.CreateDirectory(dataDir);
                    
207            {
                    
208                Object obj = ObjectSerializer.Deserialize(this.settingFilename, this.settingObject);
                    
209                this.settingObject = (Settings)obj;
                    
217        {
                    
218            ObjectSerializer.Serialize(this.settingFilename, this.settingObject);
                    
219        }
                    
                
acf-meta-functions.php https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br | PHP | 384 lines
                    
1<?php
                    
2
                    
48
                    
49	// Unserialized results (get_metadata does not unserialize if $key is empty).
                    
50	$meta = array_map( 'maybe_unserialize', $meta );
                    
                
MailHide.php https://bitbucket.org/haichau59/manga.git | 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 24594 2012-01-05 21:27:01Z 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        }
                    
                
w5100-spi.c https://github.com/mturquette/linux.git | 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;
                    
                
single_product.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 229 lines
                    
31								<a rel="<?php echo str_replace(array(" ", '"',"'", '&quot;','&#039;'), 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"/>
                    
                
sfsi_plus_subscribe_widget.php https://gitlab.com/vanafroo/landingpage | PHP | 248 lines
                    
1<?php
                    
2//Add Subscriber form css
                    
5{
                    
6	$option9 			= unserialize(get_option('sfsi_plus_section9_options',false));
                    
7	$sfsi_plus_feediid 	= sanitize_text_field(get_option('sfsi_plus_feed_id'));
                    
12			jQuery(document).ready(function(e) {
                    
13                jQuery("body").addClass("sfsi_plus_<?php echo get_option("sfsi_plus_pluginVersion");?>")
                    
14            });
                    
15			function sfsi_plus_processfurther(ref) {
                    
16				var feed_id = '<?php echo $sfsi_plus_feediid?>';
                    
17				var feedtype = 8;
                    
21					if (feedtype == "8") {
                    
22						var url = "<?php echo $url; ?>"+feed_id+"/"+feedtype;
                    
23						window.open(url, "popupwindow", "scrollbars=yes,width=1080,height=760");
                    
200			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title' ); ?>:</label> 
                    
201			<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
                    
202		</p>
                    
                
Store.php https://gitlab.com/susmitha.plts/photographer_portfolio | 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     *
                    
                
MailHide.php https://github.com/sassman/django-benchmark.git | PHP | 351 lines
                    
1<?php
                    
2/**
                    
22/** @see Zend_Service_ReCaptcha */
                    
23require_once 'Zend/Service/ReCaptcha.php';
                    
24
                    
32 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
33 * @version    $Id: MailHide.php 20108 2010-01-06 22:05:31Z 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        }
                    
                
Weee.php https://gitlab.com/crazybutterfly815/magento2 | 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            }
                    
                
Cache.php https://github.com/cawago/ci_campusync_auth.git | PHP | 416 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Cache.php 5798 2009-06-02 15:10:46Z piccoloprincipe $
                    
4 *
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
27 * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @link        www.phpdoctrine.org
                    
270
                    
271            return array_map('unserialize', $e);
                    
272        }
                    
290            if ($rand <= $this->_options['addStatsPropability']) {
                    
291                file_put_contents($this->_options['statsFile'], implode("\n", array_map('serialize', $this->_queries)));
                    
292            }
                    
                
du.php https://bitbucket.org/lordgnu/greyhole.git | PHP | 326 lines
                    
1<?php
                    
2/*
                    
30	<div>Please wait for fsck to run once.</div>
                    
31	<?php
                    
32
                    
38
                    
39require_once('includes/common.php');
                    
40
                    
41exec("tail -2 $data_file | grep '^# '", $results);
                    
42$shares_options = unserialize(substr($results[0], 2));
                    
43unset($results);
                    
177
                    
178<?php render_header('Greyhole Disk Usage') ?>
                    
179
                    
180<h1>Greyhole Storage Pool Disk Usage
                    
181	<?php if ($root_dir == '/'): ?>
                    
182		- All Shares
                    
                
lxportmonitor.php https://github.com/yourhty/hypervm.git | PHP | 526 lines
                    
1<?php 
                    
2
                    
212	$server = $global_remoteserver;
                    
213	$var = base64_encode(serialize($rmt));
                    
214	$data = send_to_some_http_server_monitor($server, "", $port, $var);
                    
217
                    
218	$res = unserialize(base64_decode($data));
                    
219
                    
243
                    
244	$ch = curl_init("http://$raddress:$port/htmllib/mibin/monitordata.php");
                    
245	curl_setopt($ch, CURLOPT_POST, true);
                    
462
                    
463	$val = @ file_get_contents("commands.php");
                    
464	if ($val === "2") {
                    
                
admin_review.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 501 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
2
                    
3require_once(APPPATH.'controllers/project.php');
                    
4
                    
192		
                    
193		$this->data["reviewers"] = $unseri = unserialize($reviewers);
                    
194		
                    
464		$exp = explode( "|", $this->input->post("project_reviewer") );
                    
465		$reviewer = serialize($exp);
                    
466		
                    
474		}
                    
475		$project_keywords = serialize($project_keywordstrim);
                    
476		
                    
                
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>
                    
                
Dispatcher.php https://gitlab.com/kimting254/wbms | 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		]);
                    
                
log.php https://github.com/nibra/joomla-platform.git | PHP | 399 lines
                    
1<?php
                    
2/**
                    
14
                    
15JLoader::register('LogException', JPATH_PLATFORM.'/joomla/log/logexception.php');
                    
16
                    
26 * logging events to be sent to where the user wishes them to be sent. On high load sites
                    
27 * SysLog is probably the best (pure PHP function), then the text file based loggers (CSV, W3C
                    
28 * or plain FormattedText) and finally MySQL offers the most features (e.g. rapid searching)
                    
198		// Generate a unique signature for the JLog instance based on its options.
                    
199		$signature = md5(serialize($options));
                    
200
                    
223	 */
                    
224	public static function getInstance($file = 'error.php', $options = null, $path = null)
                    
225	{
                    
248		// Generate a unique signature for the JLog instance based on its options.
                    
249		$signature = md5(serialize($options));
                    
250
                    
                
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 needed
                    
                
CacheBase.php https://gitlab.com/unofficial-mirrors/moodle | 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    void
                    
                
extension.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*
                    
                
Key.php https://github.com/drobbins/s3db.git | PHP | 316 lines
                    
1<?php
                    
2/**
                    
9 *
                    
10 * LICENSE: This source file is subject to version 3.0 of the PHP license
                    
11 * that is available through the world-wide-web at the following URI:
                    
12 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
                    
13 * the PHP License and are unable to obtain it through the web, please
                    
14 * send a note to license@php.net so we can mail you a copy immediately.
                    
19 * @copyright  2005, 2006 Alexander Valyalkin
                    
20 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
21 * @version    1.2.0b
                    
43 *  - toString() - returns serialized key as string
                    
44 *  - fromString($key_str) - static function; returns key, unserialized from string
                    
45 *  - isValid($key) - static function for validating of $key
                    
89 * @copyright  2005, 2006 Alexander Valyalkin
                    
90 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
91 * @link       http://pear.php.net/package/Crypt_RSA
                    
                
scrut_prop.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 329 lines
                    
1<?php
                    
2
                    
61	}
                    
62	$return['obligatoires'] = serialize($table_des_obligatoires);
                    
63	return $return;
                    
154        //les obligatoires
                    
155        $obligatoires = unserialize(_request('obligatoires'));
                    
156        $valeur_champs_obligatoire = array();
                    
                
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));
                    
108
                    
                
import.php https://bitbucket.org/hudsonite/concrete5.git | PHP | 317 lines
                    
19
                    
20$types = $ch->serializeUploadFileExtensions($types);
                    
21$valt = Loader::helper('validation/token');
                    
72
                    
73<h3><?php echo t('Upload Multiple Files')?></h3>
                    
74
                    
96		upload_url : "<?=REL_DIR_FILES_TOOLS_REQUIRED?>/files/importers/multiple",
                    
97		post_params: {'ccm-session' : "<?php echo session_id(); ?>",'searchInstance': '<?=$searchInstance?>', 'ocID' : '<?=$ocID?>', 'ccm_token' : '<?=$valt->generate("upload")?>'},
                    
98		file_size_limit : "<?=$umf?>",
                    
100		button_window_mode : SWFUpload.WINDOW_MODE.TRANSPARENT,
                    
101		file_types_description : "<?php echo t('All Files') ?>",
                    
102		file_upload_limit : 100,
                    
144				
                    
145				progress.setStatus("<?php echo t('Uploading...')?> ("+percent+"%)");
                    
146			} catch (ex) {
                    
                
Converter.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	 *
                    
                
ProxyMagicMethodsTest.php https://github.com/nattaphat/hgis.git | PHP | 285 lines
                    
50    /**
                    
51     * @var \PHPUnit_Framework_MockObject_MockObject|Callable
                    
52     */
                    
131        $this->assertSame('defaultValue', $proxy->serializedField);
                    
132        $this->assertSame('defaultValue', $proxy->nonSerializedField);
                    
133
                    
136
                    
137        $unserialized = unserialize(serialize($proxy));
                    
138
                    
139        $this->assertSame('changedValue', $unserialized->serializedField);
                    
140        $this->assertSame('defaultValue', $unserialized->nonSerializedField, 'Field was not returned by "__sleep"');
                    
141    }
                    
150        $proxy->wakeupValue = 'changedValue';
                    
151        $unserialized       = unserialize(serialize($proxy));
                    
152
                    
                
class.utilitycontroller.php https://github.com/abhishekmica/Garden.git | PHP | 278 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
42   /**
                    
43    * Allows the setting of data into one of two serialized data columns on the
                    
44    * user table: Preferences and Attributes. The method expects "Name" &
                    
91			foreach ($AppNames as $AppName) {
                    
92				$Files[] = CombinePaths(array(PATH_APPLICATIONS, $AppName, 'settings', 'structure.php'), DS);
                    
93			}
                    
96			 // Load that specific application structure file.
                    
97         $Files[] = CombinePaths(array(PATH_APPLICATIONS, $AppName, 'settings', 'structure.php'), DS);
                    
98      }
                    
212         if ($Messages != '') {
                    
213            // Unserialize them & save them if necessary
                    
214            $Messages = Gdn_Format::Unserialize($Messages);
                    
246         if ($Response != '')
                    
247            $Save['Garden.RequiredUpdates'] = Gdn_Format::Unserialize($Response);
                    
248      
                    
                
class.splqueue.html https://bitbucket.org/thncr/manuals.git | HTML | 216 lines
                    
11 <div class="up"><a href="spl.datastructures.html">数据结构</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="class.splqueue" class="reference">
                    
16 
                    
17 <div class="partintro"><p class="verinfo">(PHP 5 &gt;= 5.3.0)</p>
                    
18 
                    
146<div class="methodsynopsis dc-description">
                    
147   <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><a href="spldoublylinkedlist.serialize.html" class="methodname">SplDoublyLinkedList::serialize</a></span>
                    
148    ( <span class="methodparam">void</span>
                    
162<div class="methodsynopsis dc-description">
                    
163   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="spldoublylinkedlist.unserialize.html" class="methodname">SplDoublyLinkedList::unserialize</a></span>
                    
164    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$serialized</code></span>
                    
214 <div class="up"><a href="spl.datastructures.html">数据结构</a></div>
                    
215 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
216</div></body></html>
                    
                
class.client.autolinks.php https://gitlab.com/vanafroo/landingpage | PHP | 287 lines
                    
1<?php
                    
2
                    
58			// Generate key cache
                    
59			$key = md5( maybe_serialize( $postlist ) );
                    
60
                    
165
                    
166			// Make a first test with PHP function, economize CPU with regexp
                    
167			if ( $strpos_fnc( $content, $term_name ) === false ) {
                    
247		if ( $must_tokenize ) {
                    
248			// this regexp is taken from PHP Markdown by Michel Fortin: http://www.michelf.com/projects/php-markdown/
                    
249			$comment                = '(?s:<!(?:--.*?--\s*)+>)|';
                    
265					if ( $anchor_level == 0 ) { // linkify if not inside anchor tags
                    
266						if ( preg_match( $match, $token ) ) { // use preg_match for compatibility with PHP 4
                    
267							$j ++;
                    
268							if ( $j <= SimpleTags_Plugin::get_option_value( 'auto_link_max_by_tag' ) || SimpleTags_Plugin::get_option_value( 'auto_link_max_by_tag' ) == 0 ) {// Limit replacement at 1 by default, or options value !
                    
269								$token = preg_replace( $match, $substitute, $token ); // only PHP 5 supports calling preg_replace with 5 arguments
                    
270							}
                    
                
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';
                    
                
locallib.php https://github.com/dataview/Moodle2_NZ_Schools.git | PHP | 306 lines
                    
1<?php
                    
2
                    
29
                    
30require_once("$CFG->libdir/filelib.php");
                    
31require_once("$CFG->libdir/resourcelib.php");
                    
31require_once("$CFG->libdir/resourcelib.php");
                    
32require_once("$CFG->dirroot/mod/extsearch/lib.php");
                    
33
                    
60
                    
61    $options = empty($extsearch->displayoptions) ? array() : unserialize($extsearch->displayoptions);
                    
62
                    
78
                    
79    $options = empty($extsearch->displayoptions) ? array() : unserialize($extsearch->displayoptions);
                    
80    if ($ignoresettings or !empty($options['printintro'])) {
                    
256    if (strpos($extsearch->externalurl, $CFG->wwwroot) === 0) {
                    
257        if (strpos($extsearch->externalurl, 'file.php') === false and strpos($extsearch->externalurl, '.php') !== false ) {
                    
258            // most probably our moodle page with navigation
                    
                
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    }
                    
                
graminfo.php https://github.com/Oreolek/Togataltu.git | PHP | 338 lines
                    
88 
                    
89abstract class phpMorphy_GramInfo implements phpMorphy_GramInfo_Interace {
                    
90    const HEADER_SIZE = 128;
                    
208
                    
209class phpMorphy_GramInfo_Decorator implements phpMorphy_GramInfo_Interace {
                    
210    protected $info;
                    
250
                    
251class phpMorphy_GramInfo_Proxy_WithHeader extends phpMorphy_GramInfo_Proxy {
                    
252    protected
                    
291
                    
292class phpMorphy_GramInfo_RuntimeCaching extends phpMorphy_GramInfo_Decorator {
                    
293    protected
                    
307
                    
308class phpMorphy_GramInfo_AncodeCache extends phpMorphy_GramInfo_Decorator {
                    
309    public
                    
                
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 );
                    
317
                    
                
translated-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			}
                    
                
internal-link-aliases.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 374 lines
                    
1<?php
                    
2
                    
34		if (suwp::permalink_mode() != SUWP_PRETTY_PERMALINKS)
                    
35			$this->print_message('error', sprintf(__('Link Mask Generator won&#8217;t work with default or &#8220;pathinfo&#8221; permalinks. Please change your <a href="%s">permalink structure</a> to enable this module&#8217;s functionality.', 'seo-ultimate'), 'options-permalink.php'));
                    
36		
                    
53		$aliases = $this->get_setting('aliases', array());
                    
54		$aliases = array_map('unserialize', array_unique(array_map('serialize', $aliases)));
                    
55		$aliases = array_filter($aliases, array(&$this, 'remove_empty_aliases'));
                    
                
credit.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 348 lines
                    
1<?php
                    
2!function_exists('readover') && exit('Forbidden');
                    
5 *
                    
6 * phpwind 積分操作統一入口
                    
7 * @author sky_hold@163.com
                    
51	function creditset($f_set,$d_set) {
                    
52		if (!is_array($f_set)) $f_set = unserialize($f_set);
                    
53		if (!is_array($d_set)) $d_set = unserialize($d_set);
                    
204		if ($uc_server && $uc_syncredit) {
                    
205			require_once(R_P . 'uc_client/uc_client.php');
                    
206			$retv = uc_credit_add($setUser, $isAdd);
                    
                
file_set.php https://github.com/rii-J/concrete5-de.git | PHP | 336 lines
                    
1<?php 
                    
2
                    
122					$row2 = $db->GetRow('select fsSearchRequest, fsResultColumns from FileSetSavedSearches where fsID = ?', array($fsID));
                    
123					$fs->fsSearchRequest = @unserialize($row2['fsSearchRequest']);
                    
124					$fs->fsResultColumns = @unserialize($row2['fsResultColumns']);
                    
328			$db = Loader::db();
                    
329			$v = array($fs->getFileSetID(), serialize($searchRequest), serialize($searchColumnsObject));
                    
330			$db->Execute('insert into FileSetSavedSearches (fsID, fsSearchRequest, fsResultColumns) values (?, ?, ?)', $v);
                    
                
MailHide.php https://github.com/jiiarra/site.git | PHP | 351 lines
                    
1<?php
                    
2/**
                    
22/** @see Zend_Service_ReCaptcha */
                    
23require_once 'Zend/Service/ReCaptcha.php';
                    
24
                    
32 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
33 * @version    $Id: MailHide.php 20144 2010-01-08 15:18:46Z 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        }
                    
                
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/LisovyiEvhenii/ismextensions | 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));
                    
230
                    
                
JsonViewTest.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);
                    
                
ext_json.cpp https://github.com/tstarling/hiphop-php.git | C++ | 257 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
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   +----------------------------------------------------------------------+
                    
20#include "hphp/runtime/base/utf8-decode.h"
                    
21#include "hphp/runtime/base/variable-serializer.h"
                    
22
                    
74
                    
75  VariableSerializer vs(VariableSerializer::Type::JSON, options);
                    
76  return vs.serializeValue(value, !(options & k_JSON_FB_UNLIMITED));
                    
                
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('.')) 
                    
                
Array.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 355 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
25 */
                    
26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            // require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
174        if (!$this->isExists($queue->getName())) {
                    
175            // require_once 'Zend/Queue/Exception.php';
                    
176            throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());
                    
                
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;
                    
                
Array.php https://github.com/grandison/budo16.git | PHP | 354 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 18701 2009-10-26 13:03:47Z matthew $
                    
21 */
                    
25 */
                    
26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            // require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
174        if (!$this->isExists($queue->getName())) {
                    
175            // require_once 'Zend/Queue/Exception.php';
                    
176            throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());
                    
                
wp-cache-phase1.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 264 lines
                    
1<?php
                    
2// Pre-2.6 compatibility
                    
5
                    
6if( !include( WP_CONTENT_DIR . '/wp-cache-config.php' ) )
                    
7	return true;
                    
10
                    
11include( WPCACHEHOME . 'wp-cache-base.php');
                    
12
                    
26
                    
27require_once( WPCACHEHOME . 'wp-cache-phase2.php');
                    
28
                    
28
                    
29$plugins = glob( $wp_cache_plugins_dir . '/*.php' );
                    
30if( is_array( $plugins ) ) {
                    
48function gzip_accepted(){
                    
49	if( ini_get( 'zlib.output_compression' ) ) // don't compress WP-Cache data files when PHP is already doing it
                    
50		return false;
                    
                
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);
                    
                
ARC2_SemHTMLParser.php https://github.com/mterenzio/FollowThis.git | PHP | 339 lines
                    
1<?php
                    
2/*
                    
62    if ($this->skip_dupes) {
                    
63      $h = md5(serialize($t));
                    
64      if (!isset($this->added_triples[$h])) {
                    
                
MBCategoryServiceSoap.java https://github.com/lululiferay/liferay-portal.git | Java | 322 lines
                    
45 * The benefits of using the SOAP utility is that it is cross platform
                    
46 * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
                    
47 * even Perl, to call the generated services. One drawback of SOAP is that it is
                    
47 * even Perl, to call the generated services. One drawback of SOAP is that it is
                    
48 * slow because it needs to serialize all calls into a text format (XML).
                    
49 * </p>
                    
                
arrayhelper.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 461 lines
                    
1<?php
                    
2/**
                    
436	 *
                    
437	 * @see     http://php.net/manual/en/function.array-unique.php
                    
438	 * @since   11.2
                    
448		{
                    
449			$myvalue = serialize($myvalue);
                    
450		}
                    
455		{
                    
456			$myvalue = unserialize($myvalue);
                    
457		}
                    
                
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		}
                    
                
Array.php https://bitbucket.org/haichau59/manga.git | PHP | 355 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
25 */
                    
26//require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            //require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
174        if (!$this->isExists($queue->getName())) {
                    
175            //require_once 'Zend/Queue/Exception.php';
                    
176            throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());
                    
                
ReCaptcha.php https://github.com/shevron/zf2.git | PHP | 478 lines
                    
1<?php
                    
2/**
                    
136    /**
                    
137     * Serialize as string
                    
138     *
                    
                
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							else
                    
                
Aspect.php https://github.com/JeCat/framework.git | PHP | 368 lines
                    
1<?php
                    
2////////////////////////////////////////////////////////////////////////////////////////////////////////////
                    
2////////////////////////////////////////////////////////////////////////////////////////////////////////////
                    
3//  这个文件是 JeCat PHP框架的一部分,该项目和此文件 均遵循 GNU 自由软件协议
                    
4// 
                    
7//
                    
8//  JeCat PHP框架 的正式全名是:Jellicle Cat PHP Framework。
                    
9//  “Jellicle Cat”出自 Andrew Lloyd Webber的音乐剧《猫》(《Prologue:Jellicle Songs for Jellicle Cats》)。
                    
9//  “Jellicle Cat”出自 Andrew Lloyd Webber的音乐剧《猫》(《Prologue:Jellicle Songs for Jellicle Cats》)。
                    
10//  JeCat 是一个开源项目,它像音乐剧中的猫一样自由,你可以毫无顾忌地使用JCAT PHP框架。JCAT 由中国团队开发维护。
                    
11//  正在使用的这个版本是:0.7.1
                    
216	 */
                    
217	public function unserialize ($serialized)
                    
218	{
                    
218	{
                    
219		$arrData = unserialize($serialized) ;
                    
220	
                    
                
GetCharactersCharacterIdPlanetsPlanetIdOkRoutes.php https://gitlab.com/mglinski/php-esi-lib | PHP | 398 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
390        if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
                    
391            return json_encode(\ESI\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
                    
392        }
                    
393
                    
394        return json_encode(\ESI\Client\ObjectSerializer::sanitizeForSerialization($this));
                    
395    }
                    
                
phpBB.php https://bitbucket.org/adatux_/uakami.git | PHP | 538 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Implementation of phpBB converter.
                    
5 */
                    
5 */
                    
6class phpBB extends BBP_Converter_Base {
                    
7	function __construct() {
                    
336		
                    
337		// Store old User password. Stores in usermeta serialized with salt.
                    
338		$this->field_map[] = array(
                    
357			'to_fieldname' => '_bbp_class',
                    
358			'default'      => 'phpBB'
                    
359		);
                    
438		$itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
                    
439		$pass_array = unserialize($serialized_pass);
                    
440		if (strlen($pass_array['hash']) == 34) {				
                    
                
FileStorage.php https://github.com/vohnicky/treeview.git | PHP | 451 lines
                    
1<?php
                    
2
                    
7 * @license    http://nettephp.com/license  Nette license
                    
8 * @link       http://nettephp.com
                    
9 * @category   Nette
                    
34	/**#@+ @ignore internal cache file structure */
                    
35	const META_HEADER_LEN = 28; // 22b signature + 6b meta-struct size + serialized meta-struct + data
                    
36	// meta structure: array of
                    
37	const META_TIME = 'time'; // timestamp
                    
38	const META_SERIALIZED = 'serialized'; // is content serialized?
                    
39	const META_EXPIRE = 'expire'; // expiration timestamp
                    
168			$data = serialize($data);
                    
169			$meta[self::META_SERIALIZED] = TRUE;
                    
170		}
                    
227
                    
228		$head = serialize($meta) . '?>';
                    
229		$head = '<?php //netteCache[01]' . str_pad((string) strlen($head), 6, '0', STR_PAD_LEFT) . $head;
                    
                
browse_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 translated
                    
                
RedisProfilerStorage.php https://github.com/nattaphat/hgis.git | PHP | 393 lines
                    
28    const REDIS_SERIALIZER_NONE = 0;
                    
29    const REDIS_SERIALIZER_PHP = 1;
                    
30
                    
332     */
                    
333    private function getValue($key, $serializer = self::REDIS_SERIALIZER_NONE)
                    
334    {
                    
350     */
                    
351    private function setValue($key, $value, $expiration = 0, $serializer = self::REDIS_SERIALIZER_NONE)
                    
352    {
                    
353        $redis = $this->getRedis();
                    
354        $redis->setOption(self::REDIS_OPT_SERIALIZER, $serializer);
                    
355
                    
370        $redis = $this->getRedis();
                    
371        $redis->setOption(self::REDIS_OPT_SERIALIZER, self::REDIS_SERIALIZER_NONE);
                    
372
                    
                
DumpDataCollector.php https://gitlab.com/madwanz64/laravel | PHP | 296 lines
                    
1<?php
                    
2
                    
53        $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
                    
54        $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8';
                    
55        $this->requestStack = $requestStack;
                    
127            if ($response->headers->has('Content-Type') && str_contains($response->headers->get('Content-Type'), 'html')) {
                    
128                $dumper = new HtmlDumper('php://output', $this->charset);
                    
129                $dumper->setDisplayOptions(['fileLinkFormat' => $this->fileLinkFormat]);
                    
130            } else {
                    
131                $dumper = new CliDumper('php://output', $this->charset);
                    
132                if (method_exists($dumper, 'setDisplayOptions')) {
                    
187            if (!\is_string($dump['name']) || !\is_string($dump['file']) || !\is_int($dump['line'])) {
                    
188                throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
                    
189            }
                    
244
                    
245            if (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) && stripos($h[$i], 'html')) {
                    
246                $dumper = new HtmlDumper('php://output', $this->charset);
                    
                
composer.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 255 lines
                    
19
                    
20	<form method="post" action="<?php echo $this->action('save')?>">
                    
21
                    
22	<div class="ccm-pane-body">
                    
23	<?php echo $form->hidden('ctID', $ct->getCollectionTypeID()); ?>
                    
24    
                    
114                            <label>
                    
115                                <?php echo $form->checkbox('composerAKID[]', $ak->getAttributeKeyID(), in_array($ak->getAttributeKeyID(), $selectedAttributes))?>
                    
116                                <span><?php echo $ak->getAttributeKeyName()?></span>
                    
158                        <div class="ccm-composer-content-item" id="item_akID<?php echo $ak->getAttributeKeyID()?>">
                    
159                            <img class="ccm-composer-content-item-icon" src="<?php echo $ak->getAttributeKeyIconSRC()?>" width="16" height="16" /><?php echo $ak->getAttributeKeyName()?>
                    
160                        </div>
                    
166                        <div class="ccm-composer-content-item" id="item_bID<?php echo $b->getBlockID()?>">
                    
167                            <img class="ccm-composer-content-item-icon" src="<?php echo $cur->getBlockTypeIconURL($b)?>" width="16" height="16" /><?php 
                    
168                                if ($b->getBlockName()) {
                    
                
ImagesController.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");?> 
                    
229
                    
                
hidefl.c https://bitbucket.org/lingfeng_xiang/php-ext-hidefl.git | C | 386 lines
                    
45                      hidefl_globals)
                    
46    STD_PHP_INI_BOOLEAN("hidefl.load_unserialize", "1", PHP_INI_SYSTEM,
                    
47                        OnUpdateBool, load_unserialize,  zend_hidefl_globals,
                    
68{
                    
69    php_serialize_data_t var_hash;
                    
70
                    
72    php_var_serialize(retval, struc, &var_hash TSRMLS_CC);
                    
73    PHP_VAR_SERIALIZE_DESTROY(var_hash);
                    
74
                    
81{
                    
82    php_unserialize_data_t var_hash;
                    
83
                    
91    }
                    
92    PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
                    
93
                    
                
admin_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:{}');
                    
75
                    
                
PlatformJobQueue.php https://github.com/Exercise/zf2.git | PHP | 318 lines
                    
1<?php
                    
2/**
                    
187
                    
188        // Unfortunately, the Platform JQ API is PHP4-style...
                    
189        $platformJob = $zendApiJob->getJob();
                    
290    /**
                    
291     * Serialize
                    
292     *
                    
300    /**
                    
301     * Unserialize
                    
302     *
                    
                
User.php https://github.com/weburnit/magento-lite.git | PHP | 290 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
123    {
                    
124        $user->setExtra(unserialize($user->getExtra()));
                    
125        return $this;
                    
130        if (is_string($user->getExtra())) {
                    
131            $user->setExtra(unserialize($user->getExtra()));
                    
132        }
                    
                
RedisTest.php https://bitbucket.org/saifshuvo/zf2.git | PHP | 264 lines
                    
1<?php
                    
2
                    
81        $this->assertNull($this->_storage->getItem($key));
                    
82        $this->_storage->setItem($key, serialize(array('test', array('one', 'two'))));
                    
83
                    
83
                    
84        $this->assertCount(2, unserialize($this->_storage->getItem($key)), 'Get item should return array of two elements');
                    
85
                    
100
                    
101    public function testRedisSerializer()
                    
102    {
                    
102    {
                    
103        $this->_storage->addPlugin(new \Zend\Cache\Storage\Plugin\Serializer());
                    
104        $value = array('test', 'of', 'array');
                    
240    {
                    
241        $options = array('serializer', RedisResource::SERIALIZER_PHP);
                    
242        $this->_options->setLibOptions($options);
                    
                
FileEngine.php https://bitbucket.org/ManiAdil/jardinorient.git | PHP | 373 lines
                    
8 *
                    
9 * PHP 5
                    
10 *
                    
10 *
                    
11 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
12 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
18 * @link          http://cakephp.org CakePHP(tm) Project
                    
19 * @since         CakePHP(tm) v 1.2.0.4933
                    
19 * @since         CakePHP(tm) v 1.2.0.4933
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
21 */
                    
46 * - lock = enable file locking on write, default => false
                    
47 * - serialize = serialize the data, default => true
                    
48 *
                    
                
AbstractSessionArrayStorage.php https://bitbucket.org/zbahij/eprojets_app.git | PHP | 484 lines
                    
1<?php
                    
2/**
                    
174     */
                    
175    public function serialize()
                    
176    {
                    
176    {
                    
177        return serialize($_SESSION);
                    
178    }
                    
180    /**
                    
181     * Unserialize
                    
182     *
                    
185     */
                    
186    public function unserialize($session)
                    
187    {
                    
187    {
                    
188        return unserialize($session);
                    
189    }
                    
                
Payment.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        }
                    
                
sfNamespacedParameterHolderTest.php https://github.com/mrwabu/urlcatcher.git | PHP | 224 lines
                    
1<?php
                    
2
                    
10
                    
11require_once(dirname(__FILE__).'/../../bootstrap/unit.php');
                    
12
                    
212
                    
213// ->serialize() ->unserialize()
                    
214$t->diag('->serialize() ->unserialize()');
                    
214$t->diag('->serialize() ->unserialize()');
                    
215$t->ok($ph == unserialize(serialize($ph)), 'sfNamespacedParameterHolder implements the Serializable interface');
                    
216
                    
                
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' );
                    
                
File.php https://github.com/KaRLsM/SIFO.git | PHP | 423 lines
                    
56 * @copyright  2008-2011 Manuel Pichler. All rights reserved.
                    
57 * @license    http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
58 * @version    Release: 0.10.6
                    
60 */
                    
61class PHP_Depend_Code_File implements PHP_Depend_Code_NodeI
                    
62{
                    
200     */
                    
201    public function setCache(PHP_Depend_Util_Cache_Driver $cache)
                    
202    {
                    
273     */
                    
274    public function addChild(PHP_Depend_Code_AbstractItem $item)
                    
275    {
                    
359     * The magic wakeup method will is called by PHP's runtime environment when
                    
360     * a serialized instance of this class was unserialized. This implementation
                    
361     * of the wakeup method restores the references between all parsed entities
                    
                
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'] . '">
                    
                
Archive.class.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 483 lines
                    
1<?php
                    
2/* 
                    
2/* 
                    
3 * phpMyVisites : website statistics and audience measurements
                    
4 * Copyright (C) 2002 - 2006
                    
4 * Copyright (C) 2002 - 2006
                    
5 * http://www.phpmyvisites.net/ 
                    
6 * phpMyVisites is free software (license GNU/GPL)
                    
6 * phpMyVisites is free software (license GNU/GPL)
                    
7 * Authors : phpMyVisites team
                    
8*/
                    
9
                    
10// $Id: Archive.class.php,v 1.70 2006/01/13 01:24:49 matthieu_ Exp $
                    
11
                    
15
                    
16require_once INCLUDE_PATH."/core/include/Date.class.php";
                    
17require_once INCLUDE_PATH."/core/include/Str.class.php";
                    
                
csv-to-dspace-xml.php https://github.com/ottenhoff/dspace-utils.git | PHP | 419 lines
                    
3
                    
4require_once 'XML/Serializer.php';
                    
5
                    
6if (floatval(phpversion()) < 5.0) {
                    
7  require_once 'PHP/Compat.php';
                    
8  require_once 'PHP/Compat/Function/file_put_contents.php';
                    
407
                    
408  $serializer = &new XML_Serializer($serializer_options);
                    
409  $serializer->setOption(XML_SERIALIZER_OPTION_CDATA_SECTIONS, true);
                    
410
                    
411  $status = $serializer->serialize($arr);
                    
412
                    
417
                    
418  return $serializer->getSerializedData();
                    
419}
                    
                
update.php https://github.com/jao/jpcamargo.git | PHP | 334 lines
                    
26	global $wp_version, $wpdb, $wp_local_package;
                    
27	$php_version = phpversion();
                    
28
                    
46	$local_package = isset( $wp_local_package )? $wp_local_package : '';
                    
47	$url = "http://api.wordpress.org/core/version-check/1.3/?version=$wp_version&php=$php_version&locale=$locale&mysql=$mysql_version&local_package=$local_package";
                    
48
                    
89 *
                    
90 * The WordPress version, PHP version, and Locale is sent along with a list of
                    
91 * all plugins installed. Checks against the WordPress server at
                    
161
                    
162	$response = unserialize( $raw_response['body'] );
                    
163
                    
191	if( !function_exists( 'get_themes' ) )
                    
192		require_once( ABSPATH . 'wp-includes/theme.php' );
                    
193
                    
                
 

Source

Language