PageRenderTime 1894ms queryTime 249ms sortTime 27ms getByIdsTime 221ms findMatchingLines 334ms

100+ results results for 'php unserialize repo:sahilbabu/phpb2b' (1894 ms)

Not the results you expected?
Store.php https://gitlab.com/ealexis.t/trends | PHP | 707 lines
                    
1<?php
                    
2
                    
126        if ($data) {
                    
127            $data = @unserialize($this->prepareForUnserialize($data));
                    
128
                    
142     */
                    
143    protected function prepareForUnserialize($data)
                    
144    {
                    
                
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'];
                    
268
                    
269		require_once(R_P.'require/bbscode.php');
                    
270		S::gp(array('page','keyword'));
                    
                
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"/>
                    
                
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		
                    
                
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 {
                    
194	function get_latlng() {
                    
195		require_once(mnminclude.'geo.php');
                    
196
                    
                
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) {
                    
                
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 );
                    
                
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>
                    
                
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'));
                    
                
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
                    
103     * @param 	string 			$pCoord		Coordinate of the cell
                    
104     * @throws 	PHPExcel_Exception
                    
105     * @return 	PHPExcel_Cell 	Cell that was found, or null if not found
                    
309	 * Identify whether the caching method is currently available
                    
310	 * Some methods are dependent on the availability of certain extensions being enabled in the PHP build
                    
311	 *
                    
                
ArrayObject.php https://gitlab.com/guillaumev/alkarama | PHP | 432 lines
                    
1<?php
                    
2/**
                    
399    /**
                    
400     * Unserialize an ArrayObject
                    
401     *
                    
404     */
                    
405    public function unserialize($data)
                    
406    {
                    
406    {
                    
407        $ar                        = unserialize($data);
                    
408        $this->protectedProperties = array_keys(get_object_vars($this));
                    
                
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('.')) 
                    
                
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>
                    
                
Weee.php https://gitlab.com/svillegas/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                }
                    
                
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);
                    
                
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	 *
                    
                
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{
                    
403    /**
                    
404     * Unserialize an ArrayObject
                    
405     *
                    
408     */
                    
409    public function unserialize($data)
                    
410    {
                    
410    {
                    
411        $ar = unserialize($data);
                    
412        $this->setFlags($ar['flag']);
                    
                
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*
                    
                
Mailer.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 504 lines
                    
1<?php namespace Illuminate\Mail;
                    
2
                    
252		{
                    
253			return with(unserialize($data['callback']))->getClosure();
                    
254		}
                    
                
AbstractTokenTest.php https://gitlab.com/fabian.morales/marlon_becerra | PHP | 285 lines
                    
1<?php
                    
2
                    
48
                    
49    public function unserialize($serialized)
                    
50    {
                    
50    {
                    
51        list($this->credentials, $parentStr) = unserialize($serialized);
                    
52        parent::unserialize($parentStr);
                    
57
                    
58class AbstractTokenTest extends \PHPUnit_Framework_TestCase
                    
59{
                    
87     * @covers Symfony\Component\Security\Core\Authentication\Token\AbstractToken::serialize
                    
88     * @covers Symfony\Component\Security\Core\Authentication\Token\AbstractToken::unserialize
                    
89     */
                    
94
                    
95        $uToken = unserialize(serialize($token));
                    
96
                    
                
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);
                    
                
Item.php https://gitlab.com/ricardosanchez/prueba | PHP | 398 lines
                    
1<?php
                    
2/**
                    
113
                    
114    public function unserialize($serialized)
                    
115    {
                    
116        // FIXME: need to create collection class to gather the sibling data.
                    
117        $data = unserialize($serialized);
                    
118
                    
                
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));
                    
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));
                    
                
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
                    
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
                    
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
                    
176		$term = $this->get_object_term( $id, $this->tax_translations );
                    
177		$translations = empty( $term ) ? array() : unserialize( $term->description );
                    
178
                    
                
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);
                    
255        if (is_string($data)) {
                    
256            $data = unserialize($data);
                    
257        } elseif (empty($data) || !is_array($data)) {
                    
                
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
                    
33{
                    
34	if(!$USER->CanDoFileOperation('fm_edit_existent_file',Array($site, $path."/.".$key.".menu.php")))
                    
35		continue;
                    
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
                    
                
update.php https://github.com/jao/jpcamargo.git | PHP | 334 lines
                    
11 *
                    
12 * The WordPress version, PHP version, and Locale is sent. Checks against the
                    
13 * WordPress server at api.wordpress.org server. Will only check if WordPress
                    
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
                    
117	$new_option->last_checked = time();
                    
118	$timeout = 'load-plugins.php' == current_filter() ? 3600 : 43200; //Check for updated every 60 minutes if hitting the themes page, Else, check every 12 hours
                    
119	$time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked );
                    
                
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
                    
                
wiki_document.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 280 lines
                    
1<?php
                    
2/**
                    
17* Functions for iterating and retrieving the necessary records are now also included
                    
18* in this file, rather than mod/wiki/lib.php
                    
19*/
                    
23*/
                    
24require_once("$CFG->dirroot/search/documents/document.php");
                    
25require_once("$CFG->dirroot/mod/wiki/lib.php");
                    
76
                    
77    return $CFG->wwwroot.'/mod/wiki/view.php?wid='.$wikiId.'&amp;page='.wiki_name_convert($title).'&amp;version='.$version;
                    
78} //wiki_make_link
                    
80/**
                    
81* rescued and converted from ewikimoodlelib.php
                    
82* retrieves latest version of a page
                    
106    if (isset($result_obj))  {
                    
107        $result_obj->meta = @unserialize($result_obj->meta);
                    
108        return $result_obj;
                    
                
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
                    
                
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)) {
                    
                
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
                    
                
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>
                    
                
User.php https://github.com/gryzz/crystal_magento.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        }
                    
                
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();
                    
300    /**
                    
301     * Unserialize
                    
302     *
                    
                
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 = '';
                    
                
RouteTest.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 232 lines
                    
1<?php
                    
2
                    
15
                    
16class RouteTest extends \PHPUnit_Framework_TestCase
                    
17{
                    
226        $serialized = serialize($route);
                    
227        $unserialized = unserialize($serialized);
                    
228
                    
228
                    
229        $this->assertEquals($route, $unserialized);
                    
230        $this->assertNotSame($route, $unserialized);
                    
                
file.php https://github.com/purplexcite/Purpled-Blog-Engine.git | PHP | 413 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
32 * *  Kohana 3.0.x
                    
33 * *  PHP 5.2.4 or greater
                    
34 * 
                    
38 * @copyright  (c) 2009-2010 Kohana Team
                    
39 * @license    http://kohanaphp.com/license
                    
40 */
                    
150
                    
151				// Decode the json into PHP object
                    
152				$data = json_decode($json);
                    
164				{
                    
165					return ($data->type === 'string') ? $data->payload : unserialize($data->payload);
                    
166				}
                    
174			{
                    
175				throw new Kohana_Cache_Exception(__METHOD__.' failed to unserialize cached object with message : '.$e->getMessage());
                    
176			}
                    
                
Memcache.php https://gitlab.com/ilyales/vigma | PHP | 308 lines
                    
5 *
                    
6 * Copyright (c) 2006 - 2015 PHPExcel
                    
7 *
                    
23 * @package    PHPExcel_CachedObjectStorage
                    
24 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
25 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
                    
27 */
                    
28class PHPExcel_CachedObjectStorage_Memcache extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache
                    
29{
                    
118                parent::deleteCacheData($pCoord);
                    
119                throw new PHPExcel_Exception('Cell entry '.$pCoord.' no longer exists in MemCache');
                    
120            }
                    
275     * @param    integer    $port        Memcache port
                    
276     * @throws    PHPExcel_Exception
                    
277     */
                    
                
class-fep-update.php https://gitlab.com/pankajmohale/chef2go | PHP | 325 lines
                    
70				<option value="32"><?php _e('3.2', 'front-end-pm' ); ?></option>
                    
71				<option value="33"><?php _e('3.3', 'front-end-pm' ); ?></option>
                    
72			</select>
                    
74			<div id="fep-submit_button">
                    
75			 <p class="submit"><button id="fep-update-button" class="button button-secondary"><?php _e('Update', 'front-end-pm' ); ?></button>
                    
76			 <img src="<?php echo FEP_PLUGIN_URL; ?>assets/images/loading.gif" class="fep-ajax-img" style="display:none;"/></p>
                    
166			$seen = $this->get_announcement_meta( $announcement->id );
                    
167			$seen = maybe_unserialize( $seen );
                    
168			
                    
173			$deleted = $this->get_announcement_meta( $announcement->id, 'announcement_deleted_user_id' );
                    
174			$deleted = maybe_unserialize( $deleted );
                    
175			
                    
210			$unserialized_file = maybe_unserialize( $attachment->field_value );
                    
211			if ( $unserialized_file['type'] && $unserialized_file['url'] && $unserialized_file['file'] ) {
                    
212				// Prepare an array of post data for the attachment.
                    
                
lib.php https://github.com/Br3nda/mahara.git | PHP | 305 lines
                    
1<?php
                    
2/**
                    
47            if ($field == 'data' && !is_array($value)) {
                    
48                $value = unserialize($value);
                    
49            }
                    
260    public function prepare_files() {
                    
261        require_once(get_config('docroot') . 'api/xmlrpc/client.php');
                    
262        $client = new Client();
                    
263        try {
                    
264            $client->set_method('portfolio/mahara/lib.php/fetch_file')
                    
265                    ->add_param($this->token)
                    
                
PlatformJobQueue.php https://gitlab.com/fabiorf/curso-zend1-aula1 | PHP | 343 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: PlatformJobQueue.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
55        if (!extension_loaded("jobqueue_client")) {
                    
56            require_once 'Zend/Queue/Exception.php';
                    
57            throw new Zend_Queue_Exception('Platform Job Queue extension does not appear to be loaded');
                    
60        if (! isset($this->_options['daemonOptions'])) {
                    
61            require_once 'Zend/Queue/Exception.php';
                    
62            throw new Zend_Queue_Exception('Job Queue host and password should be provided');
                    
67        if (!array_key_exists('host', $options)) {
                    
68            require_once 'Zend/Queue/Exception.php';
                    
69            throw new Zend_Queue_Exception('Platform Job Queue host should be provided');
                    
                
pending.php https://github.com/ccraig/cpoMMo.git | PHP | 344 lines
                    
1<?php
                    
2/**
                    
23// include the pending prototype object 
                    
24$GLOBALS['pommo']->requireOnce($GLOBALS['pommo']->_baseDir. 'inc/classes/prototypes.php');
                    
25
                    
42		'code' => $row['pending_code'],
                    
43		'array' => unserialize($row['pending_array']),
                    
44		'type' => $row['pending_type']);
                    
264		if ($in['type'] == 'add') {
                    
265			$pommo->requireOnce($pommo->_baseDir.'inc/helpers/subscribers.php');
                    
266			return PommoSubscriber::delete($in['subscriber_id']);
                    
306			case 'change': // update
                    
307				$pommo->requireOnce($pommo->_baseDir. 'inc/helpers/subscribers.php');
                    
308				$subscriber =& $in['array'];
                    
315			case 'password' : // change (admin) password
                    
316				$pommo->requireOnce($pommo->_baseDir. 'inc/helpers/subscribers.php');
                    
317				$password = PommoHelper::makePassword();
                    
                
PlatformJobQueue.php https://gitlab.com/luisrepo/ClienteWS | PHP | 343 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: PlatformJobQueue.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
55        if (!extension_loaded("jobqueue_client")) {
                    
56            require_once 'Zend/Queue/Exception.php';
                    
57            throw new Zend_Queue_Exception('Platform Job Queue extension does not appear to be loaded');
                    
60        if (! isset($this->_options['daemonOptions'])) {
                    
61            require_once 'Zend/Queue/Exception.php';
                    
62            throw new Zend_Queue_Exception('Job Queue host and password should be provided');
                    
67        if (!array_key_exists('host', $options)) {
                    
68            require_once 'Zend/Queue/Exception.php';
                    
69            throw new Zend_Queue_Exception('Platform Job Queue host should be provided');
                    
                
func-effects.cpp https://gitlab.com/iranjith4/hhvm | C++ | 413 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   +----------------------------------------------------------------------+
                    
27  s_http_response_header("http_response_header"),
                    
28  s_php_errormsg("php_errormsg"),
                    
29  s_extract("extract"),
                    
117  "furchash_hphp_ext",
                    
118  "hphp_murmurhash",
                    
119  "get_declared_classes",
                    
138  "set_exception_handler",
                    
139  "hphp_set_error_page",
                    
140  "hphp_clear_unflushed",
                    
337  // containing them:
                    
338  assertx(caller->lookupVarId(s_php_errormsg.get()) == -1);
                    
339  assertx(caller->lookupVarId(s_http_response_header.get()) == -1);
                    
                
dilizium.php https://github.com/Biggerskimo/WOT-Game.git | PHP | 208 lines
                    
1<?php
                    
2/*
                    
21include($ugamela_root_path . 'extension.inc');
                    
22include($ugamela_root_path . 'common.'.$phpEx);
                    
23
                    
23
                    
24if(!check_user()){ header("Location: login.php"); die();}
                    
25
                    
28//
                    
29include($ugamela_root_path . 'includes/planet_toggle.'.$phpEx);
                    
30
                    
38
                    
39$features = unserialize($user['diliziumFeatures']);
                    
40
                    
42	//$dilizium = $user['dilizium'];
                    
43	//$features = unserialize($user['diliziumFeatures']);
                    
44
                    
                
Renderer.php https://github.com/gryzz/crystal_magento.git | PHP | 353 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 */
                    
192        if ($addOptions = $this->getItem()->getOptionByCode('additional_options')) {
                    
193            $options = array_merge($options, unserialize($addOptions->getValue()));
                    
194        }
                    
                
Collection.php https://gitlab.com/habracoder/advertising | PHP | 486 lines
                    
1<?php 
                    
2
                    
478		/**
                    
479		 * Unserializes the object from a serialized string
                    
480		 *
                    
482		 */
                    
483		public function unserialize($data){ }
                    
484
                    
                
PlatformJobQueue.php https://github.com/vvitkouski/New-Referrers-in-Google-Analytics.git | PHP | 343 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: PlatformJobQueue.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
55        if (!extension_loaded("jobqueue_client")) {
                    
56            require_once 'Zend/Queue/Exception.php';
                    
57            throw new Zend_Queue_Exception('Platform Job Queue extension does not appear to be loaded');
                    
60        if (! isset($this->_options['daemonOptions'])) {
                    
61            require_once 'Zend/Queue/Exception.php';
                    
62            throw new Zend_Queue_Exception('Job Queue host and password should be provided');
                    
67        if (!array_key_exists('host', $options)) {
                    
68            require_once 'Zend/Queue/Exception.php';
                    
69            throw new Zend_Queue_Exception('Platform Job Queue host should be provided');
                    
                
PlatformJobQueue.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 343 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: PlatformJobQueue.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
55        if (!extension_loaded("jobqueue_client")) {
                    
56            require_once 'Zend/Queue/Exception.php';
                    
57            throw new Zend_Queue_Exception('Platform Job Queue extension does not appear to be loaded');
                    
60        if (! isset($this->_options['daemonOptions'])) {
                    
61            require_once 'Zend/Queue/Exception.php';
                    
62            throw new Zend_Queue_Exception('Job Queue host and password should be provided');
                    
67        if (!array_key_exists('host', $options)) {
                    
68            require_once 'Zend/Queue/Exception.php';
                    
69            throw new Zend_Queue_Exception('Platform Job Queue host should be provided');
                    
                
members.inc.php https://github.com/AlexChien/EY_BBS.git | PHP | 259 lines
                    
1<?php
                    
2
                    
6
                    
7$Id: members.inc.php 16746 2008-11-17 07:59:46Z tiger $
                    
8*/
                    
24			if(!empty($clearavatar)) {
                    
25				require_once DISCUZ_ROOT.'./uc_client/client.php';
                    
26				uc_user_deleteavatar($member['uid']);
                    
28
                    
29			require_once DISCUZ_ROOT.'./include/discuzcode.func.php';
                    
30
                    
60
                    
61		require_once DISCUZ_ROOT.'./include/editor.func.php';
                    
62		$bio = explode("\t\t\t", $member['bio']);
                    
126
                    
127	require_once DISCUZ_ROOT.'./include/misc.func.php';
                    
128
                    
                
cache.php https://github.com/abma/spring-website.git | PHP | 444 lines
                    
6* @copyright (c) 2005 phpBB Group
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
13*/
                    
14if (!defined('IN_PHPBB'))
                    
15{
                    
86			{
                    
87				if ((version_compare(PHP_VERSION, '5.1.0', '>=') || (version_compare(PHP_VERSION, '5.0.0-dev', '<=') && version_compare(PHP_VERSION, '4.4.0', '>='))) && @preg_match('/\p{L}/u', 'a') !== false)
                    
88				{
                    
415	{
                    
416		global $phpbb_root_path, $phpEx;
                    
417
                    
428				{
                    
429					if (strpos($file, 'hook_') === 0 && substr($file, -(strlen($phpEx) + 1)) === '.' . $phpEx)
                    
430					{
                    
                
sql.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 302 lines
                    
1<?php
                    
2if (!@ob_start("ob_gzhandler")) @ob_start();
                    
3$download=(isset($_POST['f_export_submit'])&&(isset($_POST['f_export_sendresult'])&&$_POST['f_export_sendresult']==1));
                    
4include ('./inc/header.php');
                    
5include ('language/'.$config['language'].'/lang.php');
                    
5include ('language/'.$config['language'].'/lang.php');
                    
6include ('language/'.$config['language'].'/lang_sql.php');
                    
7include ('./inc/functions_sql.php');
                    
8include ('./'.$config['files']['parameter']);
                    
9include ('./inc/template.php');
                    
10include ('./inc/define_icons.php');
                    
11$key='';
                    
12// stripslashes and trimming is done in runtime.php which is included and executet above
                    
13if (isset($_GET['rk']))
                    
16	$key=urldecode($rk);
                    
17	if (!$rk=@unserialize($key)) $rk=$key;
                    
18}
                    
                
Collection.php https://gitlab.com/habracoder/advertising | PHP | 565 lines
                    
1<?php 
                    
2
                    
540		/**
                    
541		 * Unserializes the object from a serialized string
                    
542		 *
                    
544		 */
                    
545		public function unserialize($serialized=null){ }
                    
546
                    
                
em-notices.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 238 lines
                    
1<?php
                    
2    /**
                    
14        	    if( is_serialized( $notices ) ){
                    
15	        		$this->notices = unserialize($notices);
                    
16	        		setcookie('em_notices', '', time() - 3600, COOKIEPATH, COOKIE_DOMAIN, is_ssl(), true); //unset the cookie
                    
                
fups.php https://gitlab.com/ezeql/fups | PHP | 147 lines
                    
1<?php
                    
2
                    
3/* 
                    
4 * FUPS: Forum user-post scraper. An extensible PHP framework for scraping and
                    
5 * outputting the posts of a specified user from a specified forum/board
                    
25
                    
26/* File       : fups.php.
                    
27 * Description: The main scraping script, initiated either automatically by
                    
27 * Description: The main scraping script, initiated either automatically by
                    
28 *              the web app (run.php) or manually e.g. via the commandline.
                    
29 *              Manual initiation should be as follows:
                    
30 *
                    
31 *              php path/to/fups.php -i path/to/existing/optionsfile.txt -o path/to/desired/outputfile.html
                    
32 *
                    
38 *              $required_settings and $optional_settings arrays in each of
                    
39 *              classes/CphpBB.php and classes/CXenForo.php.
                    
40 */
                    
                
Banner.php https://bitbucket.org/kdms/sh-magento.git | PHP | 263 lines
                    
1<?php
                    
2/**
                    
105        }
                    
106        return unserialize($data);
                    
107    }
                    
                
FileStore.php https://gitlab.com/techniconline/kmc | PHP | 247 lines
                    
1<?php namespace Illuminate\Cache;
                    
2
                    
75
                    
76        $data = unserialize(substr($contents, 10));
                    
77
                    
                
Cache.php https://github.com/icz/OpenPNE3.git | PHP | 416 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Cache.php 5801 2009-06-02 17:30:27Z 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        }
                    
                
uc.php https://github.com/bluelovers/Discuz.git | PHP | 393 lines
                    
43	include_once(B_ROOT.'./common.php');
                    
44	include_once(B_ROOT.'./source/function/common.func.php');
                    
45	include_once(B_ROOT.'./data/system/config.cache.php');
                    
79	include_once B_ROOT.'./uc_client/lib/xml.class.php';
                    
80	$post = xml_unserialize(file_get_contents('php://input'));
                    
81
                    
125		//note 用戶刪除 API 接口
                    
126		include_once B_ROOT.'./source/function/admin.func.php';
                    
127
                    
232
                    
233		$cachefile = UC_CLIENT_ROOT.'./data/cache/badwords.php';
                    
234		$fp = fopen($cachefile, 'w');
                    
234		$fp = fopen($cachefile, 'w');
                    
235		$s = "<?php\r\n";
                    
236		$s .= '$_CACHE[\'badwords\'] = '.var_export($post, true).";\r\n";
                    
                
functions.php https://bitbucket.org/zachisit/zachis.it-m.git | PHP | 367 lines
                    
126	
                    
127	get_option('duplicator_options') == ""  ? "" : $duplicator_opts = unserialize(get_option('duplicator_options'));
                    
128	$replace_items = Array(
                    
294	@chmod($path_plugin . 'files', 0755);
                    
295	@chmod(duplicator_safe_path($path_plugin . 'files/installer.rescue.php'), 0644);
                    
296	
                    
300	$ssfile = @fopen($path_ssdir .'/index.php', 'w');
                    
301	@fwrite($ssfile, '<?php error_reporting(0);  if (stristr(php_sapi_name(), "fcgi")) { $url  =  "http://" . $_SERVER["HTTP_HOST"]; header("Location: {$url}/404.html");} else { header("HTML/1.1 404 Not Found", true, 404);} exit(); ?>');
                    
302	@fclose($ssfile);
                    
305	$tokenfile = @fopen($path_ssdir .'/dtoken.php', 'w');
                    
306	@fwrite($tokenfile, '<?php error_reporting(0);  if (stristr(php_sapi_name(), "fcgi")) { $url  =  "http://" . $_SERVER["HTTP_HOST"]; header("Location: {$url}/404.html");} else { header("HTML/1.1 404 Not Found", true, 404);} exit(); ?>');
                    
307	@fclose($tokenfile);
                    
320	$tokenfile2 = @fopen($path_plugin .'files/dtoken.php', 'w');
                    
321	@fwrite($tokenfile2, '<?php @error_reporting(0); @require_once("../../../../wp-admin/admin.php"); global $wp_query; $wp_query->set_404(); header("HTML/1.1 404 Not Found", true, 404); header("Status: 404 Not Found"); @include(get_template_directory () . "/404.php"); ?>');
                    
322	@fclose($tokenfile2);
                    
                
ArrayCookieJarTest.php https://gitlab.com/x33n/respond | PHP | 353 lines
                    
1<?php
                    
2
                    
87        $this->assertEquals('[]', $this->jar->serialize());
                    
88        $this->jar->unserialize('[]');
                    
89        $this->assertEquals(array(), $this->jar->all());
                    
101        $a = new ArrayCookieJar();
                    
102        $a->unserialize($serialized);
                    
103        $this->assertEquals(1, count($a));
                    
                
class-wc-order-item-shipping.php https://gitlab.com/campus-academy/krowkaramel | PHP | 319 lines
                    
1<?php
                    
2/**
                    
133	public function set_taxes( $raw_tax_data ) {
                    
134		$raw_tax_data = maybe_unserialize( $raw_tax_data );
                    
135		$tax_data     = array(
                    
                
ezauthortype.php https://github.com/zerustech/ezpublish.git | PHP | 309 lines
                    
1<?php
                    
2/**
                    
11/*!
                    
12  \class eZAuthorType ezauthortype.php
                    
13  \ingroup eZDatatype
                    
293
                    
294    function unserializeContentObjectAttribute( $package, $objectAttribute, $attributeNode )
                    
295    {
                    
                
QueueFake.php https://gitlab.com/jjpa2018/dashboard | PHP | 414 lines
                    
1<?php
                    
2
                    
9use Illuminate\Support\Traits\ReflectsClosures;
                    
10use PHPUnit\Framework\Assert as PHPUnit;
                    
11
                    
39
                    
40        PHPUnit::assertTrue(
                    
41            $this->pushed($job, $callback)->count() > 0,
                    
56
                    
57        PHPUnit::assertSame(
                    
58            $times, $count,
                    
95    {
                    
96        PHPUnit::assertTrue(
                    
97            $this->pushed($job, $callback)->isNotEmpty(),
                    
100
                    
101        PHPUnit::assertTrue(
                    
102            collect($expectedChain)->isNotEmpty(),
                    
                
class.php https://gitlab.com/alexprowars/bitrix | PHP | 371 lines
                    
1<?php
                    
2
                    
11{
                    
12	/** @var CPHPCache $obCache */
                    
13	protected $obCache;
                    
66				{
                    
67					$templateProps = unserialize($banner['TEMPLATE'], ['allowed_classes' => false]);
                    
68					$templateFiles = unserialize($banner['TEMPLATE_FILES'], ['allowed_classes' => false]);
                    
222			{
                    
223				$this->templateProps = unserialize($banner['TEMPLATE'], ['allowed_classes' => false]);
                    
224				$this->templateFiles = unserialize($banner['TEMPLATE_FILES'], ['allowed_classes' => false]);
                    
                
Currencysymbol.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 282 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
158
                    
159        $currentSymbols = $this->_unserializeStoreConfig(self::XML_PATH_CUSTOM_CURRENCY_SYMBOL);
                    
160
                    
242    {
                    
243        $customSymbols = $this->_unserializeStoreConfig(self::XML_PATH_CUSTOM_CURRENCY_SYMBOL);
                    
244        if (array_key_exists($code, $customSymbols)) {
                    
265    /**
                    
266     * Unserialize data from Store Config.
                    
267     *
                    
                
admincp_report.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 193 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: admincp_report.php 29236 2012-03-30 05:34:47Z chenmengshu $
                    
8 */
                    
62	$curcredits = $_G['setting']['creditstransextra'][8] ? $_G['setting']['creditstransextra'][8] : $_G['setting']['creditstrans'];
                    
63	$report_reward = dunserialize($_G['setting']['report_reward']);
                    
64	$offset = abs(ceil(($report_reward['max'] - $report_reward['min']) / 10));
                    
80			'<b>'.cplang('report_newreport_url').'</b><a href="'.$row['url'].'" target="_blank">'.$row['url'].'</a><br \><b>'.cplang('report_newreport_time').'</b>'.dgmdate($row['dateline']).'<br><b>'.cplang('report_newreport_message').'</b><br>'.$row['message'],
                    
81			'<a href="home.php?mod=space&uid='.$row['uid'].'">'.$row['username'].'</a><input type="hidden" name="reportuids['.$row['id'].']" value="'.$row['uid'].'">',
                    
82			($report_reward['max'] != $report_reward['min'] ? $_G['setting']['extcredits'][$curcredits]['title'].':&nbsp;<select name="creditsvalue['.$row['id'].']">'.$rewardlist.'</select><br /><br />'.cplang('report_note').':&nbsp;<input type="text" name="msg['.$row['id'].']" value="">' : '')
                    
130	}
                    
131	$report_receive = dunserialize($_G['setting']['report_receive']);
                    
132	showformheader('report&operation=receiveuser');
                    
174			"<input class=\"checkbox\" type=\"checkbox\" name=\"adminuser[]\" value=\"$uid\" $checked>",
                    
175			"<a href=\"home.php?mod=space&uid=$uid\" target=\"_blank\">$username</a>"
                    
176			));
                    
                
environment.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 195 lines
                    
1<?php // $Id$
                    
2/**
                    
4 *
                    
5 * This should really be a singleton. A PHP5 Todo I guess.
                    
6 */
                    
105        if (!empty($keypair)) {
                    
106            // Explode/Implode is faster than Unserialize/Serialize
                    
107            list($this->keypair['certificate'], $this->keypair['keypair_PEM']) = explode('@@@@@@@@', $keypair);
                    
121            } else {
                    
122                $openssl_history = unserialize($result);
                    
123            }
                    
                
tiki-edit_banner.php https://gitlab.com/ElvisAns/tiki | PHP | 372 lines
                    
1<?php
                    
2
                    
12
                    
13require_once('tiki-setup.php');
                    
14
                    
66    if ($info["which"] == 'useFlash') {
                    
67        $movie = unserialize($info['HTMLData']);
                    
68        $smarty->assign_by_ref('movie', $movie);
                    
357
                    
358        header("location:tiki-list_banners.php");
                    
359    }
                    
                
core.h https://gitlab.com/freedmpure/bitcoin | C Header | 476 lines
                    
3// Distributed under the MIT/X11 software license, see the accompanying
                    
4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
                    
5
                    
300    template<typename Stream>
                    
301    void Unserialize(Stream &s, int nType, int nVersion) {
                    
302        unsigned int nCode = 0;
                    
302        unsigned int nCode = 0;
                    
303        ::Unserialize(s, VARINT(nCode), nType, nVersion);
                    
304        nHeight = nCode / 2;
                    
306        if (nHeight > 0)
                    
307            ::Unserialize(s, VARINT(this->nVersion), nType, nVersion);
                    
308        ::Unserialize(s, REF(CTxOutCompressor(REF(txout))), nType, nVersion);
                    
                
ModulePackage.php https://github.com/intraface/intraface.dk.git | PHP | 281 lines
                    
1<?php
                    
2/**
                    
119     * Parse the serialized array of limiters that is saved in the database.
                    
120     * The limiters are checked whether they are valid accoring to the Intraface/config/setting_limiters.php definition
                    
121     *
                    
132
                    
133        $limiters = unserialize($string_limiters);
                    
134        if ($limiters === false) {
                    
134        if ($limiters === false) {
                    
135            throw new Exception('Unable to unserialize string "'.$string_limiters.'" in ModulePackage->parseLimiters');
                    
136            return array();
                    
140        // the array is filled in with values in the include file.
                    
141        require('Intraface/config/setting_limiters.php');
                    
142
                    
221        // get all products in one request and add them to the array
                    
222        require_once 'Intraface/modules/modulepackage/ShopExtension.php';
                    
223        $shopextension = new Intraface_modules_modulepackage_ShopExtension;
                    
                
all-in-one-event-calendar.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 260 lines
                    
1<?php
                    
2/**
                    
36$ai1ec_base_path = dirname( __FILE__ );
                    
37foreach ( array( 'constants-local.php', 'constants.php' ) as $file ) {
                    
38	if ( file_exists( $ai1ec_base_path . DIRECTORY_SEPARATOR . $file ) ) {
                    
43	return trigger_error(
                    
44		'File \'constants.php\' defining \'ai1ec_initiate_constants\' function must be present.',
                    
45		E_USER_WARNING
                    
49
                    
50require_once AI1EC_LIB_PATH . DIRECTORY_SEPARATOR . 'global-functions.php';
                    
51
                    
51
                    
52require_once AI1EC_LIB_PATH . DIRECTORY_SEPARATOR . 'class-ai1ec-loader.php' ;
                    
53spl_autoload_register( array( 'Ai1ec_Loader', 'autoload' ) );
                    
87
                    
88	$plugins = unserialize( $r['body']['plugins'] );
                    
89	unset( $plugins->plugins[ plugin_basename( __FILE__ ) ] );
                    
                
file.test.php https://github.com/purushoth85/wildflower.git | PHP | 355 lines
                    
1<?php
                    
2/* SVN FILE: $Id$ */
                    
7 *
                    
8 * PHP versions 4 and 5
                    
9 *
                    
9 *
                    
10 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
                    
11 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @link          https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
                    
18 * @package       cake
                    
19 * @subpackage    cake.tests.cases.libs.cache
                    
20 * @since         CakePHP(tm) v 1.2.0.5434
                    
21 * @version       $Revision$
                    
23 * @lastmodified  $Date$
                    
24 * @license       http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
                    
25 */
                    
                
RequestHandler.php https://gitlab.com/mohamed_hussein/prodt | PHP | 291 lines
                    
178        try {
                    
179          $unserialized = $this->serializer->denormalize($unserialized, $definition['serialization_class'], $format, ['request_method' => $method]);
                    
180        }
                    
227   * @param mixed $unserialized
                    
228   *   The unserialized data.
                    
229   * @param \Symfony\Component\HttpFoundation\Request $request
                    
235   */
                    
236  protected function createArgumentResolver(RouteMatchInterface $route_match, $unserialized, Request $request) {
                    
237    $route = $route_match->getRouteObject();
                    
266        $upcasted_route_arguments['data'] = $unserialized;
                    
267        $upcasted_route_arguments['unserialized'] = $unserialized;
                    
268      }
                    
270        $raw_route_arguments['data'] = $unserialized;
                    
271        $raw_route_arguments['unserialized'] = $unserialized;
                    
272      }
                    
                
Mbox.php https://github.com/Riges/KawaiViewModel.git | PHP | 264 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Mbox.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Mail/Storage/Folder.php';
                    
28
                    
31 */
                    
32require_once 'Zend/Mail/Storage/Folder/Interface.php';
                    
33
                    
36 */
                    
37require_once 'Zend/Mail/Storage/Mbox.php';
                    
38
                    
88             */
                    
89            require_once 'Zend/Mail/Storage/Exception.php';
                    
90            throw new Zend_Mail_Storage_Exception('use Zend_Mail_Storage_Mbox for a single file');
                    
                
store_locator.php https://github.com/laposa/onxshop.git | PHP | 289 lines
                    
1<?php
                    
2/**
                    
6
                    
7require_once('models/ecommerce/ecommerce_store.php');
                    
8require_once('models/ecommerce/ecommerce_store_taxonomy.php');
                    
8require_once('models/ecommerce/ecommerce_store_taxonomy.php');
                    
9require_once('models/common/common_node.php');
                    
10require_once('models/common/common_node_taxonomy.php');
                    
10require_once('models/common/common_node_taxonomy.php');
                    
11require_once('models/common/common_uri_mapping.php');
                    
12require_once('models/client/client_customer.php');
                    
70
                    
71                $store['street_view_options'] = unserialize($store['street_view_options']);
                    
72
                    
                
printed_settings.inc.php https://gitlab.com/mucill/sman7 | PHP | 185 lines
                    
1<?php
                    
2/**
                    
31    if ($barcode_settings_d[0]) {
                    
32      $barcode_settings = @unserialize($barcode_settings_d[0]);
                    
33      if (is_array($barcode_settings) && count($barcode_settings) > 0) {
                    
                
class-itsec-logger-all-logs.php https://gitlab.com/najomie/fit-hippie | PHP | 260 lines
                    
1<?php
                    
2
                    
74	function column_host( $item ) {
                    
75		require_once( ITSEC_Core::get_core_dir() . '/lib/class-itsec-lib-ip-tools.php' );
                    
76
                    
102		if ( 0 != $item['user_id'] ) {
                    
103			return '<a href="' . esc_url( admin_url( 'user-edit.php?user_id=' . $item['user_id'] ) ) . '" target="_blank" rel="noopener noreferrer">' . $item['user'] . '</a>';
                    
104		} else {
                    
149
                    
150		$raw_data = maybe_unserialize( $item['data'] );
                    
151
                    
                
redis.php https://github.com/plastic/fuel.git | PHP | 525 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * Fuel is a fast, lightweight, community driven PHP5 framework.
                    
6 *
                    
11 * @copyright	2010 - 2011 Fuel Development Team
                    
12 * @link		http://fuelphp.com
                    
13 */
                    
165			$index = $this->redis->get($this->config['cache_id'].':index:'.$sections);
                    
166			is_null($index) or $index = $this->_unserialize($index);
                    
167
                    
214		$index = $this->redis->get($this->config['cache_id'].':dir:');
                    
215		is_null($index) or $index = $this->_unserialize($index);
                    
216
                    
247				{
                    
248					$list = $this->_unserialize($list);
                    
249				}
                    
                
Mbox.php https://bitbucket.org/ellwcouk/debts-oldish.git | PHP | 264 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Mbox.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Mail/Storage/Folder.php';
                    
28
                    
31 */
                    
32require_once 'Zend/Mail/Storage/Folder/Interface.php';
                    
33
                    
36 */
                    
37require_once 'Zend/Mail/Storage/Mbox.php';
                    
38
                    
88             */
                    
89            require_once 'Zend/Mail/Storage/Exception.php';
                    
90            throw new Zend_Mail_Storage_Exception('use Zend_Mail_Storage_Mbox for a single file');
                    
                
class-helper.php https://gitlab.com/webkod3r/tripolis | PHP | 422 lines
                    
1<?php
                    
2/**
                    
197		if($slides && !isset($slides->errors)){
                    
198			$slides = is_array($slides) ? $slides : unserialize($slides);
                    
199			foreach($slides as $key => $val){
                    
                
adodb-active-record.inc.php https://bitbucket.org/astawiarski/openemr.git | PHP | 608 lines
                    
1<?php
                    
2/*
                    
71	
                    
72	// php4 constructor
                    
73	function ADODB_Active_Record($table = false, $pkeyarr=false, $db=false)
                    
77	
                    
78	// php5 constructor
                    
79	function __construct($table = false, $pkeyarr=false, $db=false)
                    
155			@flock($fp, LOCK_SH);
                    
156			$acttab = unserialize(fread($fp,100000));
                    
157			fclose($fp);
                    
236			$s = serialize($activetab);
                    
237			if (!function_exists('adodb_write_file')) include(ADODB_DIR.'/adodb-csvlib.inc.php');
                    
238			adodb_write_file($fname,$s);
                    
247	
                    
248	// error handler for both PHP4+5. 
                    
249	function Error($err,$fn)
                    
                
registry.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 512 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: registry.php 14401 2010-01-26 14:10:00Z louis $
                    
4 * @package		Joomla.Framework
                    
6 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
                    
7 * @license		GNU/GPL, see LICENSE.php
                    
8 * Joomla! is free software. This version may have been modified pursuant
                    
11 * other free or open source software licenses.
                    
12 * See COPYRIGHT.php for copyright notices and details.
                    
13 */
                    
18//Register the session storage class with the loader
                    
19JLoader::register('JRegistryFormat', dirname(__FILE__).DS.'format.php');
                    
20
                    
509	{
                    
510		$this->_registry = unserialize(serialize($this->_registry));
                    
511	}
                    
                
function_group.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 364 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: function_group.php 29394 2012-04-10 07:26:16Z liulanbo $
                    
8 */
                    
156	if($firsttype) {
                    
157		$groupnav = ' <em>&rsaquo;</em> <a href="group.php?gid='.$firsttype['fid'].'">'.$firsttype['name'].'</a>';
                    
158	}
                    
159	if($secondtype) {
                    
160		$groupnav .= ' <em>&rsaquo;</em> <a href="group.php?sgid='.$secondtype['fid'].'">'.$secondtype['name'].'</a>';
                    
161	}
                    
163		$mod_action = $_GET['mod'] == 'forumdisplay' || $_GET['mod'] == 'viewthread' ? 'mod=forumdisplay&action=list' : 'mod=group';
                    
164		$groupnav .= ($groupnav ? ' <em>&rsaquo;</em> ' : '').'<a href="forum.php?'.$mod_action.'&fid='.$forum['fid'].'">'.$forum['name'].'</a>';
                    
165	}
                    
228		foreach($query as $group) {
                    
229			$groupcache[$group['type']] = dunserialize($group['data']);
                    
230			$groupcache[$group['type']]['dateline'] = $group['dateline'];
                    
                
Db.php https://github.com/FbN/Zend-Framework-Namespaced-.git | PHP | 278 lines
                    
1<?php
                    
2
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Db.php 23405 2010-11-19 19:46:10Z bittarman $
                    
21 */
                    
65    /**
                    
66     * Use the AUTO_RECONNECT_ON_UNSERIALIZE constant in the config of a Zend_Db_Adapter.
                    
67     */
                    
67     */
                    
68    const AUTO_RECONNECT_ON_UNSERIALIZE = 'autoReconnectOnUnserialize';
                    
69
                    
218             */
                    
219            require_once 'Zend/Db/Exception.php';
                    
220            throw new Exception('Adapter parameters must be in an array or a Zend_Config object');
                    
229             */
                    
230            require_once 'Zend/Db/Exception.php';
                    
231            throw new Exception('Adapter name must be specified in a string');
                    
                
products_page.php https://github.com/evadne/wp-e-commerce.git | PHP | 255 lines
                    
24			<?php if(get_option('show_category_thumbnails') && wpsc_category_image()) : ?>
                    
25				<img src='<?php echo wpsc_category_image(); ?>' alt='<?php echo wpsc_category_name(); ?>' title='<?php echo wpsc_category_name(); ?>' />
                    
26			<?php endif; ?>
                    
55							<a rel="<?php echo wpsc_the_product_title(); ?>" class="thickbox preview_link" href="<?php echo wpsc_the_product_image(); ?>">
                    
56								<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_thumbnail(); ?>"/>
                    
57							</a>
                    
128					<?php endif; ?>
                    
129					<form class='product_form'  enctype="multipart/form-data" action="<?php echo $action; ?>" method="post" name="product_<?php echo wpsc_the_product_id(); ?>" id="product_<?php echo wpsc_the_product_id(); ?>" >
                    
130						<?php do_action('wpsc_product_addon_after_descr', wpsc_the_product_id()); ?>
                    
180								<?php endif; ?>
                    
181								  <span id="product_price_<?php echo wpsc_the_product_id(); ?>" class="pricedisplay"><?php echo wpsc_the_product_price(); ?></span><?php echo TXT_WPSC_PRICE; ?>:<br/>
                    
182								<?php if(get_option('display_pnp') == 1) : ?>
                    
198										<?php else: ?>
                    
199										<input type='image' src='<?php echo WPSC_URL; ?>/themes/marketplace/images/atc.gif' id='product_<?php echo wpsc_the_product_id(); ?>_submit_button' class='wpsc_buy_button' name='Buy'  value="<?php echo TXT_WPSC_ADDTOCART; ?>" />
                    
200
                    
                
products_page.php https://github.com/evadne/wp-e-commerce.git | PHP | 255 lines
                    
24			<?php if(get_option('show_category_thumbnails') && wpsc_category_image()) : ?>
                    
25				<img src='<?php echo wpsc_category_image(); ?>' alt='<?php echo wpsc_category_name(); ?>' title='<?php echo wpsc_category_name(); ?>' />
                    
26			<?php endif; ?>
                    
55							<a rel="<?php echo wpsc_the_product_title(); ?>" class="thickbox preview_link" href="<?php echo wpsc_the_product_image(); ?>">
                    
56								<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_thumbnail(); ?>"/>
                    
57							</a>
                    
128					<?php endif; ?>
                    
129					<form class='product_form'  enctype="multipart/form-data" action="<?php echo $action; ?>" method="post" name="product_<?php echo wpsc_the_product_id(); ?>" id="product_<?php echo wpsc_the_product_id(); ?>" >
                    
130						<?php do_action('wpsc_product_addon_after_descr', wpsc_the_product_id()); ?>
                    
180								<?php endif; ?>
                    
181								<?php echo TXT_WPSC_PRICE; ?>:  <span id="product_price_<?php echo wpsc_the_product_id(); ?>" class="pricedisplay"><?php echo wpsc_the_product_price(); ?></span><br/>
                    
182								<?php if(get_option('display_pnp') == 1) : ?>
                    
198										<?php else: ?>
                    
199										<input type='image' src='<?php echo WPSC_URL; ?>/themes/marketplace/images/atc.gif' id='product_<?php echo wpsc_the_product_id(); ?>_submit_button' class='wpsc_buy_button' name='Buy'  value="<?php echo TXT_WPSC_ADDTOCART; ?>" />
                    
200
                    
                
MockConfiguration.php https://gitlab.com/ealexis.t/trends | PHP | 460 lines
                    
1<?php
                    
2
                    
135         * Internal objects can not be instantiated with newInstanceArgs and if
                    
136         * they implement Serializable, unserialize will have to be called. As
                    
137         * such, we can't mock it and will need a pass to add a dummy
                    
143            $methods = array_filter($methods, function ($method) {
                    
144                return $method->getName() !== "unserialize";
                    
145            });
                    
                
elementproperty.php https://gitlab.com/Rad1calDreamer/honey | PHP | 402 lines
                    
1<?php
                    
2/**
                    
84				if ($row["USER_TYPE_SETTINGS"])
                    
85					$row["USER_TYPE_SETTINGS"] = unserialize($row["USER_TYPE_SETTINGS"]);
                    
86
                    
                
searhSuggess.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 168 lines
                    
30<div class="sg_info">
                    
31<a title="<?=$sName?>" class="sg_name" href="<?php echo $server;?><?php echo CovertVn($row_song['sName']);?>-s<?=$row_song['sID']?>.html"><?=$sName?></a>
                    
32<?=$artist_row['singerName']?>
                    
58		} else if($image_url['host'] == 'www.vimeo.com' || $image_url['host'] == 'vimeo.com'){
                    
59		$hash = unserialize(file_get_contents("http://vimeo.com/api/v2/video/".substr($image_url['path'], 1).".php"));
                    
60		return $hash[0]["thumbnail_small"];
                    
70<div class="sg_thumb">
                    
71<a title="<?=$sNamess?>" href="<?php echo $server;?><?php echo CovertVn($row_video['sName']);?>-s<?=$row_video['sID']?>.html">
                    
72<img src="<?=video_image($row_video["sLink"])?>" alt="<?=$sNamess?>">
                    
75<div class="sg_info">
                    
76<a title="<?=$sNamess?>" class="sg_name" href="<?php echo $server;?><?php echo CovertVn($row_video['sName']);?>-s<?=$row_video['sID']?>.html"><?=$sNamess?></a>
                    
77<?=$singerName?>
                    
107<div class="sg_thumb">
                    
108<a title="<?=$row_album['albumName']?>" href="<?php echo $server;?>album/<?=$row_album['albumID']?>/<?php echo CovertVn($row_album['albumName']);?>.html">
                    
109<img src="<?=$row_album['albumPicture']?>" alt="<?=$row_album['albumName']?>">                                       
                    
                
sysvmsg.c https://gitlab.com/envieidoc/tomato | C | 477 lines
                    
147	php_info_print_table_row(2, "sysvmsg support", "enabled");
                    
148	php_info_print_table_row(2, "Revision", "$Id: adf1d2d6be849c46eed3c3ee6f1cbebd1448d6e5 $");
                    
149	php_info_print_table_end();
                    
342
                    
343	messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf));
                    
344
                    
362		if (do_unserialize)	{
                    
363			php_unserialize_data_t var_hash;
                    
364			zval *tmp = NULL;
                    
368			PHP_VAR_UNSERIALIZE_INIT(var_hash);
                    
369			if (!php_var_unserialize(&tmp, &p, p + result, &var_hash TSRMLS_CC)) {
                    
370				php_error_docref(NULL TSRMLS_CC, E_WARNING, "message corrupted");
                    
375			FREE_ZVAL(tmp);
                    
376			PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
                    
377		} else {
                    
                
TestCase.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 361 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @author    Andreas Fischer <bantu@phpbb.com>
                    
4 * @copyright 2012 Andreas Fischer
                    
7
                    
8require_once 'Math/BigInteger.php';
                    
9
                    
9
                    
10abstract class Unit_Math_BigInteger_TestCase extends PhpseclibTestCase
                    
11{
                    
15
                    
16        self::reRequireFile('Math/BigInteger.php');
                    
17    }
                    
247        $x = $this->getInstance('18446744073709551616');
                    
248        $y = unserialize(serialize($x));
                    
249
                    
                
Mailer.php https://gitlab.com/kimting254/wbms | PHP | 541 lines
                    
1<?php namespace Illuminate\Mail;
                    
2
                    
269		{
                    
270			return unserialize($data['callback'])->getClosure();
                    
271		}
                    
                
ASTNode.php https://gitlab.com/yousafsyed/easternglamor | PHP | 540 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5
                    
6 *
                    
39 * @copyright 2008-2015 Manuel Pichler. All rights reserved.
                    
40 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
                    
41 * @since 0.9.6
                    
49 * @copyright 2008-2015 Manuel Pichler. All rights reserved.
                    
50 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
                    
51 * @since 0.9.6
                    
508    /**
                    
509     * The magic sleep method will be called by PHP's runtime environment right
                    
510     * before an instance of this class gets serialized. It should return an
                    
525    /**
                    
526     * The magic wakeup method will be called by PHP's runtime environment when
                    
527     * a previously serialized object gets unserialized. This implementation of
                    
                
Memcache.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 312 lines
                    
20 *
                    
21 * @category   PHPExcel
                    
22 * @package    PHPExcel_CachedObjectStorage
                    
22 * @package    PHPExcel_CachedObjectStorage
                    
23 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package    PHPExcel_CachedObjectStorage
                    
34 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_CachedObjectStorage_Memcache extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache {
                    
37
                    
106	/**
                    
107	 * Is a value set in the current PHPExcel_CachedObjectStorage_ICache for an indexed cell?
                    
108	 *
                    
                
SQLite3.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 345 lines
                    
22 * @package    PHPExcel_CachedObjectStorage
                    
23 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package    PHPExcel_CachedObjectStorage
                    
34 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_CachedObjectStorage_SQLite3 extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache {
                    
37
                    
126     * @param 	string 			$pCoord		Coordinate of the cell
                    
127     * @throws 	PHPExcel_Exception
                    
128     * @return 	PHPExcel_Cell 	Cell that was found, or null if not found
                    
332	 * Identify whether the caching method is currently available
                    
333	 * Some methods are dependent on the availability of certain extensions being enabled in the PHP build
                    
334	 *
                    
                
SQLite3.php https://gitlab.com/ehfahad/Library_Management_System | PHP | 345 lines
                    
22 * @package    PHPExcel_CachedObjectStorage
                    
23 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package    PHPExcel_CachedObjectStorage
                    
34 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_CachedObjectStorage_SQLite3 extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache {
                    
37
                    
109     */
                    
110	public function addCacheData($pCoord, PHPExcel_Cell $cell) {
                    
111		if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
                    
306			if ($this->_DBHandle === false)
                    
307				throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg());
                    
308			if (!$this->_DBHandle->exec('CREATE TABLE kvp_'.$this->_TableName.' (id VARCHAR(12) PRIMARY KEY, value BLOB)'))
                    
                
 

Source

Language