PageRenderTime 537ms queryFilters 0ms Sphinxql 33ms app.CodeModel.GetByIds 389ms findMatchingLines 84ms GetByIds 473ms meta 0ms repositoryFilters 6ms languageFilters 1ms sourceFilters 3ms

21,207 results for 'php chr repo:tof06/yii-bootstrap' (537 ms)

Source

Language

Repository

write.id3v2.php https://github.com/umonkey/molinos-cms.git | PHP | 2,052 lines
26	var $id3v2_default_encodingid    = 0;        // default text encoding (ISO-8859-1) if not explicitly passed
27	var $id3v2_use_unsynchronisation = false;    // the specs say it should be TRUE, but most other ID3v2-aware programs are broken if unsynchronization is used, so by default don't use it.
28	var $warnings                    = array();  // any non-critical errors will be stored here
284				$flag2 .= $Encryption          ? '1' : '0'; // m - Encryption (true == encrypted)
285				$flag2 .= $Unsynchronisation   ? '1' : '0'; // n - Unsynchronisation (true == unsynchronised)
286				$flag2 .= $DataLengthIndicator ? '1' : '0'; // p - Data length indicator (true == data length indicator added)
1638			$tagheader .= chr($this->minorversion);
1639			$tagheader .= $this->GenerateID3v2TagFlags(array('unsynchronisation'=>$TagUnsynchronisation));
1640			$tagheader .= getid3_lib::BigEndian2String(strlen($tagstring), 4, true);
1800		// written by dev-null�christophe*vg
1801		// taken from http://www.php.net/manual/en/function.array-merge-recursive.php
1802		if (is_array($var)) {
1815		// written by dev-null�christophe*vg
1816		// taken from http://www.php.net/manual/en/function.array-merge-recursive.php
1817		if (is_array($arr1) && is_array($arr2)) {
json.php https://github.com/10gen/external.git | PHP | 794 lines
54* @license     http://www.opensource.org/licenses/bsd-license.php
55* @link        http://pear.php.net/pepr/pepr-proposal-show.php?id=198
56*/
505                    $utf8 = '';
506                    $strlen_chrs = strlen($chrs);
507                    
689
690                        } elseif ((($chrs{$c} == '"') || ($chrs{$c} == "'")) && ($top['what'] != SERVICES_JSON_IN_STR)) {
691                            // found a quote, and we are not inside a string
698                                 (($chrs{$c - 1} != '\\')  ||
699																 ($chrs{$c - 1} == '\\' && $chrs{$c - 2} == '\\'))) {*/
700												} elseif ($chrs{$c} == $top['delim'] &&
753                            for ($i = $top['where']; $i <= $c; ++$i)
754                                $chrs = substr_replace($chrs, ' ', $i, 1);
755                            
functions.php https://github.com/patrickod/City-Blogger.git | PHP | 1,115 lines
337				<ul>
338					<li<?php if ($page == 'essentials') echo ' class="isactive"'; ?>><a href="profile.php?section=essentials&amp;id=<?php echo $id ?>"><?php echo $lang_profile['Section essentials'] ?></a></li>
339					<li<?php if ($page == 'personal') echo ' class="isactive"'; ?>><a href="profile.php?section=personal&amp;id=<?php echo $id ?>"><?php echo $lang_profile['Section personal'] ?></a></li>
340					<li<?php if ($page == 'messaging') echo ' class="isactive"'; ?>><a href="profile.php?section=messaging&amp;id=<?php echo $id ?>"><?php echo $lang_profile['Section messaging'] ?></a></li>
341					<li<?php if ($page == 'personality') echo ' class="isactive"'; ?>><a href="profile.php?section=personality&amp;id=<?php echo $id ?>"><?php echo $lang_profile['Section personality'] ?></a></li>
342					<li<?php if ($page == 'display') echo ' class="isactive"'; ?>><a href="profile.php?section=display&amp;id=<?php echo $id ?>"><?php echo $lang_profile['Section display'] ?></a></li>
343					<li<?php if ($page == 'privacy') echo ' class="isactive"'; ?>><a href="profile.php?section=privacy&amp;id=<?php echo $id ?>"><?php echo $lang_profile['Section privacy'] ?></a></li>
344<?php if ($pun_user['g_id'] == PUN_ADMIN || ($pun_user['g_id'] == PUN_MOD && $pun_config['p_mod_ban_users'] == '1')): ?>					<li<?php if ($page == 'admin') echo ' class="isactive"'; ?>><a href="profile.php?section=admin&amp;id=<?php echo $id ?>"><?php echo $lang_profile['Section admin'] ?></a></li>
345<?php endif; ?>				</ul>
759	{
760		$fishy_chars = array(chr(0x81), chr(0x8D), chr(0x8F), chr(0x90), chr(0x9D), chr(0xA0));
761		return trim(str_replace($fishy_chars, ' ', $str));
896?>
897<meta http-equiv="refresh" content="<?php echo $pun_config['o_redirect_delay'] ?>;URL=<?php echo str_replace(array('<', '>', '"'), array('&lt;', '&gt;', '&quot;'), $destination_url) ?>" />
898<title><?php echo pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_common['Redirecting'] ?></title>
tests.php https://github.com/iwonnor/scribe.git | PHP | 366 lines
1<?php
2//  Copyright (c) 2007-2008 Facebook
19$GLOBALS['THRIFT_ROOT'] = '/usr/local/thrift/php/thrift';
20$GLOBALS['SCRIBE_ROOT'] = '/usr/local/thrift/php/thrift/packages';
21
21
22include_once $GLOBALS['SCRIBE_ROOT'].'/scribe.php';
23include_once $GLOBALS['THRIFT_ROOT'].'/protocol/TBinaryProtocol.php';
23include_once $GLOBALS['THRIFT_ROOT'].'/protocol/TBinaryProtocol.php';
24include_once $GLOBALS['THRIFT_ROOT'].'/transport/TFramedTransport.php';
25include_once $GLOBALS['THRIFT_ROOT'].'/transport/TSocketPool.php';
34  $msg2->category = 'scribe_test';
35  $msg2->message = "and a binary" . chr(0) . chr(1) . " message\n";
36  $messages []= $msg2;
64  $msg2->category = 'scribe_test';
65  $msg2->message = "and a binary" . chr(0) . chr(1) . " message\n";
66  $messages []= $msg2;
ManageMaintenance.php https://github.com/leftnode/nooges.com.git | PHP | 1,858 lines
1<?php
2/**********************************************************************************
2/**********************************************************************************
3* ManageMaintenance.php                                                           *
4***********************************************************************************
311
312	require_once($sourcedir . '/RepairBoards.php');
313	RepairBoards();
721
722	// Store it in Settings.php too because it's needed before db connection.
723	require_once($sourcedir . '/Subs-Admin.php');
726	// The conversion might have messed up some serialized strings. Fix them!
727	require_once($sourcedir . '/Subs-Charset.php');
728	fix_serialized_columns();
793		$num = substr($string, 0, 1) === \'x\' ? hexdec(substr($string, 1)) : (int) $string;
794		return $num < 0x20 || $num > 0x10FFFF || ($num >= 0xD800 && $num <= 0xDFFF) ? \'\' : ($num < 0x80 ? \'&#\' . $num . \';\' : ($num < 0x800 ? chr(192 | $num >> 6) . chr(128 | $num & 63) : ($num < 0x10000 ? chr(224 | $num >> 12) . chr(128 | $num >> 6 & 63) . chr(128 | $num & 63) : chr(240 | $num >> 18) . chr(128 | $num >> 12 & 63) . chr(128 | $num >> 6 & 63) . chr(128 | $num & 63))));');
795
JSimpleCryptTest.php https://github.com/cosmocommerce/joomla.git | PHP | 129 lines
9 */
10require_once 'PHPUnit/Framework.php';
11require_once JPATH_BASE. DS . 'libraries' . DS . 'joomla' . DS . 'utilities' . DS . 'simplecrypt.php';
14 * Test class for JSimpleCrypt.
15 * Generated by PHPUnit on 2009-10-26 at 22:30:43.
16 *
19 */
20class JSimpleCryptTest extends PHPUnit_Framework_TestCase
21{
76			"WildDef" => array(
77				chr(101).chr(23).chr(116).chr(3).chr(177).chr(99).chr(207).chr(249).chr(56).chr(107).chr(223).chr(49).chr(65).chr(119).chr(87).chr(189).chr(111).chr(133).chr(232).chr(48).chr(62).chr(201),
78				null,
81			"WildKey" => array(
82				chr(101).chr(23).chr(116).chr(3).chr(177).chr(99).chr(207).chr(249).chr(56).chr(107).chr(223).chr(49).chr(65).chr(119).chr(87).chr(189).chr(111).chr(133).chr(232).chr(48).chr(62).chr(201),
83				"This is a new key",
tests.php https://github.com/ksmythe/scribe.git | PHP | 365 lines
1<?php
2//  Copyright (c) 2007-2008 Facebook
19$GLOBALS['THRIFT_ROOT'] = '/usr/local/thrift/php/thrift';
20$GLOBALS['SCRIBE_ROOT'] = '/usr/local/thrift/php/thrift/packages';
21
21
22include_once $GLOBALS['SCRIBE_ROOT'].'/scribe.php';
23include_once $GLOBALS['THRIFT_ROOT'].'/protocol/TBinaryProtocol.php';
23include_once $GLOBALS['THRIFT_ROOT'].'/protocol/TBinaryProtocol.php';
24include_once $GLOBALS['THRIFT_ROOT'].'/transport/TFramedTransport.php';
25include_once $GLOBALS['THRIFT_ROOT'].'/transport/TSocketPool.php';
34  $msg2->category = 'scribe_test';
35  $msg2->message = "and a binary" . chr(0) . chr(1) . " message\n";
36  $messages []= $msg2;
64  $msg2->category = 'scribe_test';
65  $msg2->message = "and a binary" . chr(0) . chr(1) . " message\n";
66  $messages []= $msg2;
class.t3lib_div.php https://github.com/foxsoft/typo3v4core.git | PHP | 6,019 lines
2429			// The list of byte values which will trigger binary-safe storage. If any value has one of these char values in it, it will be encoded in base64
2430		$binaryChars = chr(0).chr(1).chr(2).chr(3).chr(4).chr(5).chr(6).chr(7).chr(8).
2431						chr(11).chr(12).chr(14).chr(15).chr(16).chr(17).chr(18).chr(19).
2431						chr(11).chr(12).chr(14).chr(15).chr(16).chr(17).chr(18).chr(19).
2432						chr(20).chr(21).chr(22).chr(23).chr(24).chr(25).chr(26).chr(27).chr(28).chr(29).
2433						chr(30).chr(31);
3364			// then this is the real limit in PHP
3365		$phpUploadLimit = ($phpPostLimit < $phpUploadLimit ? $phpPostLimit : $phpUploadLimit);
3366
3878				HTTP_HOST		=	[host][:[port]]		= 192.168.1.4:8080
3879				SCRIPT_NAME		=	[path_script]++		= /typo3/32/temp/phpcheck/index.php		// NOTICE THAT SCRIPT_NAME will return the php-script name ALSO. [path_script] may not do that (eg. '/somedir/' may result in SCRIPT_NAME '/somedir/index.php')!
3880				PATH_INFO		=	[path_info]			= /arg1/arg2/arg3/
3934			case 'SCRIPT_FILENAME':
3935				$retVal = str_replace('//','/', str_replace('\\','/', (PHP_SAPI=='cgi'||PHP_SAPI=='isapi' ||PHP_SAPI=='cgi-fcgi')&&($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED'])? ($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED']):($_SERVER['ORIG_SCRIPT_FILENAME']?$_SERVER['ORIG_SCRIPT_FILENAME']:$_SERVER['SCRIPT_FILENAME'])));
3936			break;
TXT.php https://github.com/ldath/Sblam.git | PHP | 113 lines
10*
11* PHP versions 4 and 5
12*
12*
13* LICENSE: This source file is subject to version 3.01 of the PHP license
14* that is available through the world-wide-web at the following URI:
14* that is available through the world-wide-web at the following URI:
15* http://www.php.net/license/3_01.txt.  If you did not receive a copy of
16* the PHP License and are unable to obtain it through the web, please
59            $data = str_replace('\\\\', chr(1) . chr(1), $data); /* disguise escaped backslash */
60            $data = str_replace('\\"', chr(2) . chr(2), $data); /* disguise \" */
61
63            $regs[1] = str_replace(chr(2) . chr(2), '\\"', $regs[1]);
64            $regs[1] = str_replace(chr(1) . chr(1), '\\\\', $regs[1]);
65            $regs[1] = stripslashes($regs[1]);
HINFO.php https://github.com/ldath/Sblam.git | PHP | 110 lines
10*
11* PHP versions 4 and 5
12*
12*
13* LICENSE: This source file is subject to version 3.01 of the PHP license
14* that is available through the world-wide-web at the following URI:
14* that is available through the world-wide-web at the following URI:
15* http://www.php.net/license/3_01.txt.  If you did not receive a copy of
16* the PHP License and are unable to obtain it through the web, please
61            $data = str_replace('\\\\', chr(1) . chr(1), $data); /* disguise escaped backslash */
62            $data = str_replace('\\"', chr(2) . chr(2), $data); /* disguise \" */
63
66                $value = str_replace(chr(2) . chr(2), '\\"', $value);
67                $value = str_replace(chr(1) . chr(1), '\\\\', $value);
68                $regs[$idx] = stripslashes($value);
PythonPickle.php https://github.com/blanketCMS/zf2.git | PHP | 1,494 lines
1<?php
2/**
206    /**
207     * Serialize PHP to PythonPickle format
208     *
270            throw new RuntimeException(
271                'PHP-Type "'.gettype($value).'" isn\'t serializable with '.get_class($this)
272            );
296            if ($id <= 0xff) {
297                // BINGET + chr(i)
298                $this->_pickle .= self::OP_BINGET . chr($id);
321            if ($id <= 0xff) {
322                // BINPUT + chr(i)
323                $this->_pickle .= self::OP_BINPUT . chr($id);
385                if ($value <= 0xff) {
386                    // self.write(BININT1 + chr(obj))
387                    $this->_pickle .= self::OP_BININT1 . chr($value);
utf_tools.php https://github.com/GreyTeardrop/socionicasys-forum.git | PHP | 2,018 lines
980		case 3:
981			return ((ord($chr[0]) & 0x0F) << 12) | ((ord($chr[1]) & 0x3F) << 6) | (ord($chr[2]) & 0x3F);
982		break;
984		case 4:
985			return ((ord($chr[0]) & 0x07) << 18) | ((ord($chr[1]) & 0x3F) << 12) | ((ord($chr[2]) & 0x3F) << 6) | (ord($chr[3]) & 0x3F);
986		break;
1002	{
1003		return chr(0xF0 | ($cp >> 18)) . chr(0x80 | (($cp >> 12) & 0x3F)) . chr(0x80 | (($cp >> 6) & 0x3F)) . chr(0x80 | ($cp & 0x3F));
1004	}
1006	{
1007		return chr(0xE0 | ($cp >> 12)) . chr(0x80 | (($cp >> 6) & 0x3F)) . chr(0x80 | ($cp & 0x3F));
1008	}
1770	);
1771	global $phpbb_root_path, $phpEx;
1772
Services_json.php https://github.com/w3bg/www.hsifin.com.git | PHP | 505 lines
60 * @license     http://www.opensource.org/licenses/bsd-license.php
61 * @link        http://pear.php.net/pepr/pepr-proposal-show.php?id=198
62 */
248                    $utf8 = '';
249                    $strlen_chrs = strlen($chrs);
250
380                        $top = end($stk);
381                        $substr_chrs_c_2 = substr($chrs, $c, 2);
382
431                                 ($top['what'] == SERVICES_JSON_IN_STR) &&
432                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
433                            // found a quote, we're in a string, and it's not escaped
473                            for ($i = $top['where']; $i <= $c; ++$i)
474                                $chrs = substr_replace($chrs, ' ', $i, 1);
475
module_newsletter.php https://github.com/tisoft/xtcmodified.git | PHP | 556 lines
21  require_once(DIR_FS_CATALOG.DIR_WS_CLASSES.'class.phpmailer.php');
22  require_once(DIR_FS_INC . 'xtc_php_mail.inc.php');
23  require_once(DIR_FS_INC . 'xtc_wysiwyg.inc.php');
203      // mail
204      $link1 = chr(13).chr(10).chr(13).chr(10).TEXT_NEWSLETTER_REMOVE.chr(13).chr(10).chr(13).chr(10).HTTP_CATALOG_SERVER.DIR_WS_CATALOG.FILENAME_CATALOG_NEWSLETTER.'?action=remove&email='.$email_data[$i-1]['email'].'&key='.$email_data[$i-1]['key'];
205      $link2 = $link2 = '<br /><br /><hr>'.TEXT_NEWSLETTER_REMOVE.'<br /><a href="'.HTTP_CATALOG_SERVER.DIR_WS_CATALOG.FILENAME_CATALOG_NEWSLETTER.'?action=remove&email='.$email_data[$i-1]['email'].'&key='.$email_data[$i-1]['key'].'">' . TEXT_REMOVE_LINK . '</a>';
264            <!-- left_navigation //-->
265            <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
266            <!-- left_navigation_eof //-->
379                                  <td class="dataTableContent" style="border-bottom: 1px solid; border-color: #f1f1f1;" align="left"><?php echo $news_data[$i]['date']; ?></td>
380                                  <td class="dataTableContent" style="border-bottom: 1px solid; border-color: #f1f1f1;" valign="middle" align="left"><?php echo xtc_image(DIR_WS_CATALOG.'images/icons/arrow.gif'); ?><a href="<?php echo xtc_href_link(FILENAME_MODULE_NEWSLETTER,'ID='.$news_data[$i]['id']); ?>"><b><?php echo $news_data[$i]['title']; ?></b></a></td>
381                                  <td class="dataTableContent" style="border-bottom: 1px solid; border-color: #f1f1f1;" align="left"></td>
395                                    <td class="dataTableContent" valign="top" style="border-bottom: 1px solid; border-color: #999999;" align="left">
396                                      <a class="button" href="<?php echo xtc_href_link(FILENAME_MODULE_NEWSLETTER,'action=delete&ID='.$news_data[$i]['id']); ?>" onclick="return confirm('<?php echo CONFIRM_DELETE; ?>')"><?php echo BUTTON_DELETE.'</a><br />'; ?>
397                                      <a class="button" href="<?php echo xtc_href_link(FILENAME_MODULE_NEWSLETTER,'action=edit&ID='.$news_data[$i]['id']); ?>"><?php echo BUTTON_EDIT.'</a>'; ?>
format.php https://github.com/borrown/moodle.git | PHP | 612 lines
9
10// Based on default.php, included by ../import.php
11/**
556function hotpot_charcode_to_utf8($charcode) {
557    // thanks to Miguel Perez: http://jp2.php.net/chr (19-Sep-2007)
558    if ($charcode <= 0x7F) {
563        // 2-byte char
564        return chr(($charcode >> 0x06) + 0xC0).chr(($charcode & 0x3F) + 0x80);
565    }
567        // 3-byte char
568        return chr(($charcode >> 0x0C) + 0xE0).chr((($charcode >> 0x06) & 0x3F) + 0x80).chr(($charcode & 0x3F) + 0x80);
569    }
571        // 4-byte char
572        return chr(($charcode >> 0x12) + 0xF0).chr((($charcode >> 0x0C) & 0x3F) + 0x80).chr((($charcode >> 0x06) & 0x3F) + 0x80).chr(($charcode & 0x3F) + 0x80);
573    }
TripleDES.php https://gitlab.com/intersango/witcoin.git | PHP | 690 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
12 * <code>
13 * <?php
14 *    include('Crypt/TripleDES.php');
46 * @package    Crypt_TripleDES
47 * @author     Jim Wigginton <terrafrost@php.net>
48 * @copyright  MMVII Jim Wigginton
49 * @license    http://www.gnu.org/licenses/lgpl.txt
50 * @version    $Id: TripleDES.php,v 1.13 2010/02/26 03:40:25 terrafrost Exp $
51 * @link       http://phpseclib.sourceforge.net
400
401        // we pad with chr(0) since that's what mcrypt_generic does.  to quote from http://php.net/function.mcrypt-generic :
402        // "The data is padded with "\0" to make sure the length of the data is n * blocksize."
463
464        // we pad with chr(0) since that's what mcrypt_generic does.  to quote from http://php.net/function.mcrypt-generic :
465        // "The data is padded with "\0" to make sure the length of the data is n * blocksize."
http-awstatstotals-exec.nse https://gitlab.com/g10h4ck/nmap-gsoc2015.git | Unknown | 137 lines
13This vulnerability can be exploited through the GET variable <code>sort</code>.
14The script queries the web server with the command payload encoded using PHP's
15chr() function:
16
17<code>?sort={%24{passthru%28chr(117).chr(110).chr(97).chr(109).chr(101).chr(32).chr(45).chr(97)%29}}{%24{exit%28%29}}</code>
18
20* <code>/awstats/index.php</code>
21* <code>/awstatstotals/index.php</code>
22* <code>/awstats/awstatstotals.php</code>
30-- @usage
31-- nmap -sV --script http-awstatstotals-exec.nse --script-args 'http-awstatstotals-exec.cmd="uname -a", http-awstatstotals-exec.uri=/awstats/index.php' <target>
32-- nmap -sV --script http-awstatstotals-exec.nse <target>
105
106  --Encode payload using PHP's chr()
107  local encoded_payload = {}
JSimpleCryptTest.php https://bitbucket.org/ian_maclennan/joomla-cms | PHP | 147 lines
2/**
3 * JSimpleCryptTest.php
4 *
9 */
10require_once 'PHPUnit/Framework.php';
11require_once JPATH_BASE. DS . 'libraries' . DS . 'joomla' . DS . 'utilities' . DS . 'simplecrypt.php';
14 * Test class for JSimpleCrypt.
15 * Generated by PHPUnit on 2009-10-26 at 22:30:43.
16 *
78			"WildDef" => array(
79				chr(101).chr(23).chr(116).chr(3).chr(177).chr(99).chr(207).chr(249).chr(56).chr(107).chr(223).chr(49).chr(65).chr(119).chr(87).chr(189).chr(111).chr(133).chr(232).chr(48).chr(62).chr(201),
80				null,
83			"WildKey" => array(
84				chr(101).chr(23).chr(116).chr(3).chr(177).chr(99).chr(207).chr(249).chr(56).chr(107).chr(223).chr(49).chr(65).chr(119).chr(87).chr(189).chr(111).chr(133).chr(232).chr(48).chr(62).chr(201),
85				"This is a new key",
functions.php https://bitbucket.org/Balancer/projects-balancer | PHP | 1,091 lines
297					<li<?php if ($page == 'essentials') echo ' class="isactive"'; ?>><a href="<?php echo $pun_config['root_uri'];?>/profile.php?section=essentials&amp;id=<?php echo $id;/*"*/?>"><?php echo $lang_profile['Section essentials'] ?></a></li>
298					<li<?php if ($page == 'personal') echo ' class="isactive"'; ?>><a href="<?php echo $pun_config['root_uri'];?>/profile.php?section=personal&amp;id=<?php echo $id;/*"*/?>"><?php echo $lang_profile['Section personal'] ?></a></li>
299					<li<?php if ($page == 'messaging') echo ' class="isactive"'; ?>><a href="<?php echo $pun_config['root_uri'];?>/profile.php?section=messaging&amp;id=<?php echo $id;/*"*/?>"><?php echo $lang_profile['Section messaging'] ?></a></li>
300					<li<?php if ($page == 'personality') echo ' class="isactive"'; ?>><a href="<?php echo $pun_config['root_uri'];?>/profile.php?section=personality&amp;id=<?php echo $id;/*"*/?>"><?php echo $lang_profile['Section personality'] ?></a></li>
301					<li<?php if ($page == 'display') echo ' class="isactive"'; ?>><a href="<?php echo $pun_config['root_uri'];?>/profile.php?section=display&amp;id=<?php echo $id;/*"*/?>"><?php echo $lang_profile['Section display'] ?></a></li>
302					<li<?php if ($page == 'privacy') echo ' class="isactive"'; ?>><a href="<?php echo $pun_config['root_uri'];?>/profile.php?section=privacy&amp;id=<?php echo $id;/*"*/?>"><?php echo $lang_profile['Section privacy'] ?></a></li>
302					<li<?php if ($page == 'privacy') echo ' class="isactive"'; ?>><a href="<?php echo $pun_config['root_uri'];?>/profile.php?section=privacy&amp;id=<?php echo $id;/*"*/?>"><?php echo $lang_profile['Section privacy'] ?></a></li>
303<?php if ($pun_user['g_id'] == PUN_ADMIN || ($pun_user['g_id'] == PUN_MOD && $pun_config['p_mod_ban_users'] == '1')): ?>					<li<?php if ($page == 'admin') echo ' class="isactive"'; ?>><a href="<?php echo $pun_config['root_uri'];?>/profile.php?section=admin&amp;id=<?php echo $id ?>"><?php echo $lang_profile['Section admin'] ?></a></li>
304<?php endif;/*"*/?>				</ul>
741	{
742		$fishy_chars = array(chr(0x81), chr(0x8D), chr(0x8F), chr(0x90), chr(0x9D), chr(0xA0));
743		return trim(str_replace($fishy_chars, ' ', $str));
859<link rel="stylesheet" type="text/css" href="<?php echo $pun_config['root_uri'];?>/style/imports/fixes.css" />
860<link rel="stylesheet" type="text/css" href="<?php echo $pun_config['root_uri'];?>/style/<?php echo $pun_user['style'].'.css' ?>" />
861<?php /*"*/
JsHttpRequest.php https://bitbucket.org/boamaod/frontaccounting | PHP | 549 lines
1<?php
2/**
60     * where <id> is a request ID, <loader> is a loader name, <sid> - a session ID (if present), 
61     * PHPSESSID - session parameter name (by default = "PHPSESSID").
62     * 
109            $file = $line = null;
110            $headersSent = version_compare(PHP_VERSION, "4.3.0") < 0? headers_sent() : headers_sent($file, $line);
111            if ($headersSent) {
194    /**
195     * Convert a PHP scalar, array or hash to JS scalar/array/hash. This function is 
196     * an analog of json_encode(), but it can work with a non-UTF8 input and does not 
212            // All scalars are converted to strings to avoid indeterminism.
213            // PHP's "1" and 1 are equal for all PHP operators, but 
214            // JS's "1" and 1 are not. So if we pass "1" or 1 from the PHP backend,
237            foreach ($a as $k => $v) {
238                $result[] = $this->php2js($k) . ': ' . $this->php2js($v);
239            }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21