Guest User

Untitled

a guest
Dec 17th, 2021
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.84 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
  6. *
  7. * @ Version : 1.1.6.0
  8. * @ Author : DeZender
  9. * @ Release on : 02.06.2013
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. define( 'BROWSE', 2 );
  15. define( 'SEARCHOPTIONS', 4 );
  16. define( 'SEARCHRESULTS', 8 );
  17. define( 'IMAGEINFO', 16 );
  18. define( 'IMAGEORDER', 32 );
  19. define( 'SHOWBASKET', 64 );
  20. define( 'MVIEW', 128 );
  21. define( 'MSPREADS', 256 );
  22. define( 'MTOOLBAR', 512 );
  23. define( 'MLINKS', 1024 );
  24. define( 'FILEMANAGER', 2048 );
  25. define( 'BATCHAPPLY', 4096 );
  26. define( 'PREVIEW', 8192 );
  27. define( 'GETIMAGE', 16384 );
  28. define( 'WEBICON', 32768 );
  29. define( 'GETASCRIPT', 65536 );
  30. define( 'APPROVALMANAGER', 131072 );
  31. define( 'TOPLEVEL', 262144 );
  32. define( 'APPROVALTRACKING', 524288 );
  33. define( 'REPORT', 1048576 );
  34. define( 'BASKETPLUGIN', 2097152 );
  35. define( 'BASKETBUTTONS', 4194304 );
  36. define( 'ATREQUEST', 8388608 );
  37. define( 'CROPIMAGE', 16777216 );
  38. define( 'UPLOAD', 33554432 );
  39. define( 'ARCHIVECNTL', 67108864 );
  40. define( 'PASSWORDCNTL', 67108864 );
  41. define( 'BATCHREPORT', 134217728 );
  42. define( 'REPORTPDF', 268435456 );
  43. define( 'CONTACTSHEET', 536870912 );
  44. define( 'PUSHTODAM', 1073741824 );
  45. define( 'SEARCH', -2147483648 );
  46. define( 'COMMENTS', 1 );
  47. define( 'WMV', 2 );
  48. define( 'QT', 4 );
  49. define( 'FLASH', 8 );
  50. define( 'THEORA', 16 );
  51. require_once( 'PORTAL/libs/SECURITY.obj.php' );
  52. class portal extends security {
  53. private $fix_mysqldate_formats = array( 0 => '/%a/', 1 => '/%b/', 2 => '/%c/', 3 => '/%D/', 4 => '/%d/', 5 => '/%e/', 6 => '/%f/', 7 => '/%H/', 8 => '/%h/', 9 => '/%I/', 10 => '/%i/', 11 => '/%j/', 12 => '/%k/', 13 => '/%l/', 14 => '/%M/', 15 => '/%m/', 16 => '/%p/', 17 => '/%r/', 18 => '/%S/', 19 => '/%s/', 20 => '/%T/', 21 => '/%u/', 22 => '/%W/', 23 => '/%w/', 24 => '/%Y/', 25 => '/%y/' );
  54. private $fix_phpdate_formats = array( 0 => 'D', 1 => 'M', 2 => 'n', 3 => 'jS', 4 => 'd', 5 => 'j', 6 => 'u', 7 => 'H', 8 => 'h', 9 => 'h', 10 => 'i', 11 => 'z', 12 => 'H', 13 => 'g', 14 => 'F', 15 => 'm', 16 => 'A', 17 => 'h:i:s A', 18 => 's', 19 => 's', 20 => 'H:i:s', 21 => 'W', 22 => 'l', 23 => 'w', 24 => 'Y', 25 => 'y' );
  55. private $fix_phpdatetime_formats = array( 0 => '%a', 1 => '%b', 2 => '%m', 3 => '%e', 4 => '%d', 5 => '%e', 6 => '', 7 => '%H', 8 => '%I', 9 => '%I', 10 => '%M', 11 => '%j', 12 => '%H', 13 => '%l', 14 => '%B', 15 => '%m', 16 => '%p', 17 => '%r', 18 => '%S', 19 => '%S', 20 => '%T', 21 => '%V', 22 => '%A', 23 => '%w', 24 => '%Y', 25 => '%y' );
  56. public $__LANGUAGEENCODING__ = 'UTF-8';
  57. public $__ERRORSTRING__ = 'Error: An error has occurred preventing further processing of the requested URL.
  58. Use the back button to continue using the system.
  59. Alert the system administrator if problems persist.';
  60. protected $__LANGUAGESTYLE__ = null;
  61. protected $__LANGUAGEPATH__ = null;
  62. protected $__LANGUAGECHARSET__ = null;
  63. protected $__CONVERTSYMBOLS__ = false;
  64. protected $__HOSTTYPE__ = null;
  65. protected $__CHANGEPASSWORD__ = null;
  66. protected $__MAILTO__ = null;
  67. protected $__ACL__ = null;
  68. protected $__VIEWTYPE__ = 'short';
  69. protected $__PRIMARYGROUP__ = null;
  70. protected $__USERID__ = null;
  71. protected $__DEFAULTARCHFRMT__ = null;
  72. protected $__BASKETNAME__ = null;
  73. protected $__BASKETPLUGINS__ = array( );
  74. protected $__BASKET_PLUGINS__ = array( );
  75. protected $__GROUPS__ = array( );
  76. protected $__CANEDITANNOTATIONS__ = true;
  77. protected $__SHOWBASKET__ = null;
  78. protected $__TIMEFORMAT__ = null;
  79. protected $__ICONBASKET__ = false;
  80. protected $__SHORTBASKET__ = false;
  81. protected $__LONGBASKET__ = false;
  82. protected $__SERVERINFO__ = null;
  83. protected $__WNSERVERS__ = array( );
  84. protected $__WNHOST__ = null;
  85. protected $__WNPORT__ = null;
  86. protected $__WNSOCKET__ = null;
  87. protected $__SCRIPT__ = null;
  88. protected $__SCRIPTNAME__ = null;
  89. protected $__LANGUAGE__ = array( 'LANG_DISABLED' => '', 'LANG_OPEN' => 'Open', 'LANG_TOPLEVEL' => 'Toplevel', 'LANG_LOGOUT' => 'Logout', 'LANG_PREFERENCES' => 'Preferences', 'LANG_JANUARY' => 'January', 'LANG_FEBRUARY' => 'February', 'LANG_MARCH' => 'March', 'LANG_APRIL' => 'April', 'LANG_MAY' => 'May', 'LANG_JUNE' => 'June', 'LANG_JULY' => 'July', 'LANG_AUGUST' => 'August', 'LANG_SEPTEMBER' => 'September', 'LANG_OCTOBER' => 'October', 'LANG_NOVEMBER' => 'November', 'LANG_DECEMBER' => 'December', 'LANG_JAN' => 'Jan', 'LANG_FEB' => 'Feb', 'LANG_MAR' => 'Mar', 'LANG_APR' => 'Apr', 'LANG_JUN' => 'Jun', 'LANG_JUL' => 'Jul', 'LANG_AUG' => 'Aug', 'LANG_SEP' => 'Sep', 'LANG_OCT' => 'Oct', 'LANG_NOV' => 'Nov', 'LANG_DEC' => 'Dec' );
  90. protected $__USERINFO__ = array( );
  91. protected $__NAVCRUMBS__ = null;
  92. protected $__VOLUMES__ = null;
  93. protected $__LOCALE__ = null;
  94. protected $__PORT__ = null;
  95. protected $__SEARCHALLVOLS__ = null;
  96. protected $__KEYWORDS__ = null;
  97. protected $__TYPEGROUPS__ = null;
  98. protected $__WNBASKET__ = null;
  99. protected $__USMPROFILES__ = null;
  100. protected $__ICCDIRECTORY__ = null;
  101. protected $__ICCPROFILES__ = null;
  102. protected $__SOCKET__ = null;
  103. protected $__APPROVAL__ = false;
  104. protected $__SEARCHSORT__ = array( );
  105. protected $__DECIMALMARK__ = ',';
  106. protected $errtype = E_USER_NOTICE;
  107. protected $usedb = false;
  108. public $__BASKETFILE__ = null;
  109. public $__ISVENTUREVOL__ = false;
  110. public $__SELECTEDVOL__ = null;
  111. public $__ALLVENTUREVOLS__ = false;
  112. public $__SOLRSTATUS__ = array( );
  113. public $__BUSINESSRULES__ = 0;
  114. public $__ISMULTISERVER__ = false;
  115. public $skipassettimer = false;
  116. public $errno = null;
  117. public $errstr = null;
  118. public $SERVIDX = 0;
  119. public $user_lang = null;
  120. public $user_wnhost = null;
  121. public $user_wnport = null;
  122. public $user_socket = null;
  123. public $user_navcrumbs = null;
  124. public $searchid_request = null;
  125. public $resultsetid = null;
  126. public $USERINFO = array( );
  127. public $showkywds = false;
  128. public $SERVERINFO = array( );
  129. public $volume_info = array( );
  130. public $nav_info = array( );
  131. public $files_info = array( );
  132. public $keywords_info = array( );
  133. public $directory_info = array( );
  134. public $basket_info = array( );
  135. public $basket_plugins = array( );
  136. public $numfiles = 0;
  137. public $links_columns = 1;
  138. public $doFileInfo = false;
  139. public $pathid_query = null;
  140. public $limit_searchengine = 0;
  141. public $template = null;
  142. public $ismarquee = false;
  143. private $smallpreview = 112;
  144. private $largepreview = 0;
  145. private $do_chk_list = false;
  146. public $template_version = 0;
  147. public $json_proxy = false;
  148. private $navigator = false;
  149. public $pdb = null;
  150. public $imageinfo_techlist = array( 0 => array( 'LANG' => 'LANG_ITYPE', 'KEY' => 'HIT' ), 1 => array( 'LANG' => 'LANG_WDP', 'KEY' => 'HIW' ), 2 => array( 'LANG' => 'LANG_HTP', 'KEY' => 'HIH' ), 3 => array( 'LANG' => 'LANG_FSIZE', 'KEY' => 'HIL' ), 4 => array( 'LANG' => 'LANG_CSPC', 'KEY' => 'HIC' ) );
  151. public $hir_techlist = array( 0 => array( 'LANG' => 'LANG_RESI', 'KEY' => 'HIR' ), 1 => array( 'LANG' => 'LANG_SIZEI', 'KEY' => 'HIS' ), 2 => array( 'LANG' => 'LANG_RESCM', 'KEY' => 'HIRM' ), 3 => array( 'LANG' => 'LANG_SIZECM', 'KEY' => 'HISM' ) );
  152. public $video_techlist = array( 0 => array( 'LANG' => 'LANG_FMT', 'KEY' => 'VIDEO_FORMAT' ), 1 => array( 'LANG' => 'LANG_DESCRIPTION', 'KEY' => 'VIDEO_USERDESCRIPTION' ), 2 => array( 'LANG' => 'LANG_DURATION', 'KEY' => 'VIDEO_DURATIONTXT' ), 3 => array( 'LANG' => 'LANG_BITRATE', 'KEY' => 'VIDEO_BITRATE' ), 4 => array( 'LANG' => 'LANG_VCODEC', 'KEY' => 'VIDEO_CODEC' ), 5 => array( 'LANG' => 'LANG_VPIXEL', 'KEY' => 'VIDEO_PIXEL' ), 6 => array( 'LANG' => 'LANG_FPS', 'KEY' => 'VIDEO_FRAMERATE' ) );
  153. public $audio_techlist = array( 0 => array( 'LANG' => 'LANG_ALANGUAGE', 'KEY' => 'AUDIO_LANGUAGE' ), 1 => array( 'LANG' => 'LANG_ACHANNELS', 'KEY' => 'AUDIO_CHANNELS' ), 2 => array( 'LANG' => 'LANG_ASAMPLERATE', 'KEY' => 'AUDIO_SAMPLERATE' ), 3 => array( 'LANG' => 'LANG_ACODEC', 'KEY' => 'AUDIO_CODEC' ) );
  154.  
  155. public function init_portal() {
  156. mb_internal_encoding( 'UTF-8' );
  157. mb_http_output( 'UTF-8' );
  158. mb_regex_encoding( 'UTF-8' );
  159.  
  160. if (0 < $this->SERVERINFO = $this->load_cache_file( $this->server_info_cache )) {
  161. if (isset( $this->SERVERINFO[$this->__WNHOST__] )) {
  162. $this->__SERVERINFO__ = $this->SERVERINFO[$this->__WNHOST__];
  163. } else {
  164. $this->__SERVERINFO__ = current( &$this->SERVERINFO );
  165. }
  166.  
  167. foreach ($this->__SERVERINFO__ as $data) {
  168. $key = ;
  169. $name = '__' . strtoupper( $key ) . '__';
  170. $this->$name = $data;
  171. }
  172.  
  173. $this->__USERINFO__ = $this->__SERVERINFO__['VOLUMES'][0]['USERINFO'];
  174. $this->__BASKETPLUGINS__ = $this->__BASKET_PLUGINS__;
  175. $this->__CONVERTSYMBOLS__ = $this->__SERVERINFO__['CONVERTSYMBOLS'];
  176. }
  177.  
  178. $this->get_script( );
  179.  
  180. if (isset( $this->__SERVERINFO__['VOLUMES'] )) {
  181. if (is_array( $this->__SERVERINFO__['VOLUMES'] )) {
  182. $vols = $this->__SERVERINFO__['VOLUMES'];
  183.  
  184. if (isset( $_REQUEST['path'] )) {
  185. $rpath = rawurldecode( $_REQUEST['path'] );
  186. $matchlen = 0;
  187. $i = 0;
  188. for ($c = count( $vols ); $i < $c; ++$i) {
  189. $path = rawurldecode( $vols[$i]['FILE_PATH'] );
  190.  
  191. if (strcasecmp( $rpath, $path ) == 0) {
  192. $this->__USERINFO__ = $vols[$i]['USERINFO'];
  193. $this->__ISVENTUREVOL__ = $vols[$i]['ISVENTUREVOL'];
  194. $this->__SELECTEDVOL__ = $path;
  195. break;
  196. }
  197.  
  198. $len = strlen( $path );
  199.  
  200. if ($matchlen < $len) {
  201. $checklen = $len;
  202.  
  203. if ($path[$len - 1] != '/') {
  204. ++$checklen;
  205. }
  206.  
  207.  
  208. if (strncasecmp( $rpath, $path . '/', $checklen ) == 0) {
  209. $this->__USERINFO__ = $vols[$i]['USERINFO'];
  210. $this->__ISVENTUREVOL__ = $vols[$i]['ISVENTUREVOL'];
  211. $this->__SELECTEDVOL__ = $path;
  212. $matchlen = $len;
  213. continue;
  214. }
  215.  
  216. continue;
  217. }
  218. }
  219. } else {
  220. if ($this->__SCRIPT__ & ( TOPLEVEL | SHOWBASKET )) {
  221. $i = 0;
  222. for ($c = count( $vols ); $i < $c; ++$i) {
  223. if ($vols[$i]['ISVENTUREVOL']) {
  224. $this->__ISVENTUREVOL__ = true;
  225. }
  226. }
  227. }
  228. }
  229.  
  230. unset( $vols );
  231. }
  232. }
  233.  
  234.  
  235. if (isset( $_SESSION['CONFIG']['SITE_TIME_FORMAT'] )) {
  236. if ($_SESSION['CONFIG']['SITE_TIME_FORMAT'] != null) {
  237. $this->__TIMEFORMAT__ = $_SESSION['CONFIG']['SITE_TIME_FORMAT'];
  238. }
  239. }
  240.  
  241.  
  242. if (isset( $_SESSION['CONFIG']['THEME'] )) {
  243. if (stristr( $_SESSION['CONFIG']['THEME'], 'marquee' )) {
  244. $this->ismarquee = true;
  245. }
  246. }
  247.  
  248. $this->month = array( 'month', $this->__LANGUAGE__['LANG_JANUARY'], $this->__LANGUAGE__['LANG_FEBRUARY'], $this->__LANGUAGE__['LANG_MARCH'], $this->__LANGUAGE__['LANG_APRIL'], $this->__LANGUAGE__['LANG_MAY'], $this->__LANGUAGE__['LANG_JUNE'], $this->__LANGUAGE__['LANG_JULY'], $this->__LANGUAGE__['LANG_AUGUST'], $this->__LANGUAGE__['LANG_SEPTEMBER'], $this->__LANGUAGE__['LANG_OCTOBER'], $this->__LANGUAGE__['LANG_NOVEMBER'], $this->__LANGUAGE__['LANG_DECEMBER'] );
  249. $this->mon = array( 'mon', $this->__LANGUAGE__['LANG_JAN'], $this->__LANGUAGE__['LANG_FEB'], $this->__LANGUAGE__['LANG_MAR'], $this->__LANGUAGE__['LANG_APR'], $this->__LANGUAGE__['LANG_MAY'], $this->__LANGUAGE__['LANG_JUN'], $this->__LANGUAGE__['LANG_JUL'], $this->__LANGUAGE__['LANG_AUG'], $this->__LANGUAGE__['LANG_SEP'], $this->__LANGUAGE__['LANG_OCT'], $this->__LANGUAGE__['LANG_NOV'], $this->__LANGUAGE__['LANG_DEC'] );
  250.  
  251. if (function_exists( 'date_default_timezone_set' )) {
  252. if (function_exists( 'date_default_timezone_get' )) {
  253. date_default_timezone_set( @date_default_timezone_get( ) );
  254. }
  255. }
  256.  
  257.  
  258. if (isset( $_REQUEST['smallpreview'] )) {
  259. $_SESSION['CONFIG']['SMALL_PREVIEW_MAX'] = $_REQUEST['smallpreview'];
  260. $this->smallpreview = ;
  261. } else {
  262. if (isset( $_SESSION['CONFIG']['SMALL_PREVIEW_MAX'] )) {
  263. $this->smallpreview = $_SESSION['CONFIG']['SMALL_PREVIEW_MAX'];
  264. }
  265. }
  266.  
  267.  
  268. if (isset( $_REQUEST['largepreview'] )) {
  269. $_SESSION['CONFIG']['LARGE_PREVIEW_MAX'] = $_REQUEST['largepreview'];
  270. $this->largepreview = ;
  271. } else {
  272. if (isset( $_SESSION['CONFIG']['LARGE_PREVIEW_MAX'] )) {
  273. $this->largepreview = $_SESSION['CONFIG']['LARGE_PREVIEW_MAX'];
  274. }
  275. }
  276.  
  277.  
  278. if (isset( $_REQUEST['file'] )) {
  279. $_REQUEST['path'] = &$_REQUEST['file'];
  280. }
  281.  
  282.  
  283. if (isset( $_REQUEST['id'] )) {
  284. if ($_REQUEST['id'] != '') {
  285. $this->pathid_query = 'fileid=' . $_REQUEST['id'];
  286. }
  287. } else {
  288. if (isset( $_REQUEST['path'] )) {
  289. if ($_REQUEST['path'] != '') {
  290. $this->pathid_query = 'path=' . $_REQUEST['path'];
  291. }
  292. }
  293. }
  294.  
  295.  
  296. if (isset( $_REQUEST['triggeraction'] )) {
  297. if (!( ( !( $_REQUEST['triggeraction'] == 'pushtodam' ) && !( $_REQUEST['triggeraction'] == 'pullfromdam' ) ))) {
  298. $eventname = '';
  299. switch ($_REQUEST['triggeraction']) {
  300. case 'pushtodam': {
  301. $eventname = 'PUSHTODAM';
  302. break;
  303. }
  304.  
  305. case 'pullfromdam': {
  306. $eventname = 'PULLFROMDAM';
  307. }
  308. }
  309.  
  310.  
  311. if (isset( $_REQUEST['basketfile'] )) {
  312. $this->pop_basket_cache( );
  313. $ba_request = $this->kywd_ba_request( );
  314. $request = 'action=2&' . $ba_request . '&order=0';
  315. $request .= '&basket=' . urlencode( $this->__BASKETFILE__ );
  316.  
  317. if ($this->__SERVERINFO__['HOSTTYPE'] == 'UNIX') {
  318. $query = 'POST /webnative/plugins/batchapply.dir/batchapply HTTP/1.0
  319. ';
  320. } else {
  321. $query = 'POST /webnative/plugins/batchapply.dir/batchapply.exe HTTP/1.0
  322. ';
  323. }
  324.  
  325. $this->query_wncgi( $query, $request );
  326. sleep( 2 );
  327. foreach ($this->basket_info as $value) {
  328. $key = ;
  329. $this->pathid_query = 'path=' . $value['FILE_PATH'];
  330. $this->setevent( $eventname );
  331. }
  332.  
  333. exit( );
  334. }
  335.  
  336.  
  337. if (isset( $_REQUEST['updatemetadata'] )) {
  338. if ($_REQUEST['updatemetadata'] == 'true') {
  339. $this->set_metafields( );
  340. sleep( 2 );
  341. }
  342. }
  343.  
  344. $this->setevent( $eventname );
  345. exit( );
  346. }
  347. }
  348.  
  349.  
  350. if (!( isset( $_SESSION['VIEW'] ))) {
  351. $v = null;
  352. } else {
  353. $v = $_SESSION['VIEW'];
  354.  
  355. if ($v == 'gallery') {
  356. if (!( ( !$_SESSION['CONFIG']['GALLERY_VIEW_DISPLAY'] && !$this->__USERINFO__['GALLERYVIEW'] ))) {
  357. $this->__VIEWTYPE__ = $v;
  358. } else {
  359. $v = null;
  360. }
  361. } else {
  362. if ($v == 'list') {
  363. $chk = 'LIST_VIEW_DISPLAY';
  364. } else {
  365. if ($v == 'long') {
  366. $chk = 'LONGVIEW';
  367. } else {
  368. if ($v == 'short') {
  369. $chk = 'SHORTVIEW';
  370. } else {
  371. if ($v == 'icon') {
  372. $chk = 'ICONVIEW';
  373. } else {
  374. $v = null;
  375. }
  376. }
  377. }
  378. }
  379.  
  380.  
  381. if ($v != null) {
  382. if (isset( $this->__USERINFO__[$chk] )) {
  383. if ($this->__USERINFO__[$chk]) {
  384. $this->__VIEWTYPE__ = $v;
  385. }
  386. } else {
  387. $v = null;
  388. }
  389. }
  390. }
  391. }
  392.  
  393.  
  394. if ($v == null) {
  395. if (isset( $this->__USERINFO__['DEFAULTVIEW'] )) {
  396. $this->__VIEWTYPE__ = $this->__USERINFO__['DEFAULTVIEW'];
  397. }
  398. }
  399.  
  400.  
  401. if (0 < count( $this->__SERVERINFO__['KEYWORDS'] )) {
  402. $this->showkywds = true;
  403. }
  404.  
  405. $this->user_lang = &$this->__LANGUAGE__;
  406. $this->user_wnhost = &$this->__WNHOST__;
  407. $this->user_wnport = &$this->__WNPORT__;
  408. $this->user_socket = &$this->__WNSOCKET__;
  409. $this->user_navcrumbs = &$this->__NAVCRUMBS__;
  410. $this->languagestyle = &$this->__LANGUAGESTYLE__;
  411. $this->USERINFO = &$this->__USERINFO__;
  412.  
  413. }
  414.  
  415. public function init_databases() {
  416. if ($this->ismarquee) {
  417. if ($this->__SCRIPT__ & TOPLEVEL) {
  418. if (isset( $_SESSION['CONFIG']['NAVIGATOR_TOPFACETS'] )) {
  419. if ($_SESSION['CONFIG']['NAVIGATOR_TOPFACETS']) {
  420. $dbpath = '/var/tmp';
  421.  
  422. if (isset( $_SESSION['SITE_PATH'] )) {
  423. $dbpath = $_SESSION['SITE_PATH'];
  424. } else {
  425. if (isset( $_SESSION['SITE_URL'] )) {
  426. $dbpath = base64_decode( $_SESSION['SITE_URL'] );
  427. }
  428. }
  429.  
  430. $this->pdb = new StackPreviewsDB( $dbpath, $this->user_wnhost );
  431. $this->pdb->import_override_csv_to_stackpreviewcustom( );
  432. }
  433. }
  434. }
  435. }
  436.  
  437. }
  438.  
  439. public function getPortalVersion() {
  440. if (empty( $_SESSION['PORTAL_VERSION'] )) {
  441. ob_start( );
  442. @include( 'PORTAL/libs/version.php' );
  443. $_SESSION['PORTAL_VERSION'] = ob_get_contents( );
  444. ob_end_clean( );
  445. }
  446.  
  447. return $_SESSION['PORTAL_VERSION'];
  448. }
  449.  
  450. public function load_cache_file($file) {
  451. if (file_exists( $file )) {
  452. $fp = fopen( $file, 'r' );
  453. $json = stream_get_contents( $fp, -1 );
  454. return json_decode( $json, true );
  455. }
  456.  
  457. return 0;
  458. }
  459.  
  460. public function setdate($fieldid) {
  461. if (!( ( isset( $fieldid['3'] ) && !( $fieldid['3'] == null ) ))) {
  462. $fieldid['3'] = '00';
  463. .........................................................................
  464. .............................................
  465. ...............
Add Comment
Please, Sign In to add comment