Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
- *
- * @ Version : 1.1.6.0
- * @ Author : DeZender
- * @ Release on : 02.06.2013
- * @ Official site : http://DeZender.Net
- *
- */
- define( 'BROWSE', 2 );
- define( 'SEARCHOPTIONS', 4 );
- define( 'SEARCHRESULTS', 8 );
- define( 'IMAGEINFO', 16 );
- define( 'IMAGEORDER', 32 );
- define( 'SHOWBASKET', 64 );
- define( 'MVIEW', 128 );
- define( 'MSPREADS', 256 );
- define( 'MTOOLBAR', 512 );
- define( 'MLINKS', 1024 );
- define( 'FILEMANAGER', 2048 );
- define( 'BATCHAPPLY', 4096 );
- define( 'PREVIEW', 8192 );
- define( 'GETIMAGE', 16384 );
- define( 'WEBICON', 32768 );
- define( 'GETASCRIPT', 65536 );
- define( 'APPROVALMANAGER', 131072 );
- define( 'TOPLEVEL', 262144 );
- define( 'APPROVALTRACKING', 524288 );
- define( 'REPORT', 1048576 );
- define( 'BASKETPLUGIN', 2097152 );
- define( 'BASKETBUTTONS', 4194304 );
- define( 'ATREQUEST', 8388608 );
- define( 'CROPIMAGE', 16777216 );
- define( 'UPLOAD', 33554432 );
- define( 'ARCHIVECNTL', 67108864 );
- define( 'PASSWORDCNTL', 67108864 );
- define( 'BATCHREPORT', 134217728 );
- define( 'REPORTPDF', 268435456 );
- define( 'CONTACTSHEET', 536870912 );
- define( 'PUSHTODAM', 1073741824 );
- define( 'SEARCH', -2147483648 );
- define( 'COMMENTS', 1 );
- define( 'WMV', 2 );
- define( 'QT', 4 );
- define( 'FLASH', 8 );
- define( 'THEORA', 16 );
- require_once( 'PORTAL/libs/SECURITY.obj.php' );
- class portal extends security {
- 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/' );
- 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' );
- 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' );
- public $__LANGUAGEENCODING__ = 'UTF-8';
- public $__ERRORSTRING__ = 'Error: An error has occurred preventing further processing of the requested URL.
- Use the back button to continue using the system.
- Alert the system administrator if problems persist.';
- protected $__LANGUAGESTYLE__ = null;
- protected $__LANGUAGEPATH__ = null;
- protected $__LANGUAGECHARSET__ = null;
- protected $__CONVERTSYMBOLS__ = false;
- protected $__HOSTTYPE__ = null;
- protected $__CHANGEPASSWORD__ = null;
- protected $__MAILTO__ = null;
- protected $__ACL__ = null;
- protected $__VIEWTYPE__ = 'short';
- protected $__PRIMARYGROUP__ = null;
- protected $__USERID__ = null;
- protected $__DEFAULTARCHFRMT__ = null;
- protected $__BASKETNAME__ = null;
- protected $__BASKETPLUGINS__ = array( );
- protected $__BASKET_PLUGINS__ = array( );
- protected $__GROUPS__ = array( );
- protected $__CANEDITANNOTATIONS__ = true;
- protected $__SHOWBASKET__ = null;
- protected $__TIMEFORMAT__ = null;
- protected $__ICONBASKET__ = false;
- protected $__SHORTBASKET__ = false;
- protected $__LONGBASKET__ = false;
- protected $__SERVERINFO__ = null;
- protected $__WNSERVERS__ = array( );
- protected $__WNHOST__ = null;
- protected $__WNPORT__ = null;
- protected $__WNSOCKET__ = null;
- protected $__SCRIPT__ = null;
- protected $__SCRIPTNAME__ = null;
- 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' );
- protected $__USERINFO__ = array( );
- protected $__NAVCRUMBS__ = null;
- protected $__VOLUMES__ = null;
- protected $__LOCALE__ = null;
- protected $__PORT__ = null;
- protected $__SEARCHALLVOLS__ = null;
- protected $__KEYWORDS__ = null;
- protected $__TYPEGROUPS__ = null;
- protected $__WNBASKET__ = null;
- protected $__USMPROFILES__ = null;
- protected $__ICCDIRECTORY__ = null;
- protected $__ICCPROFILES__ = null;
- protected $__SOCKET__ = null;
- protected $__APPROVAL__ = false;
- protected $__SEARCHSORT__ = array( );
- protected $__DECIMALMARK__ = ',';
- protected $errtype = E_USER_NOTICE;
- protected $usedb = false;
- public $__BASKETFILE__ = null;
- public $__ISVENTUREVOL__ = false;
- public $__SELECTEDVOL__ = null;
- public $__ALLVENTUREVOLS__ = false;
- public $__SOLRSTATUS__ = array( );
- public $__BUSINESSRULES__ = 0;
- public $__ISMULTISERVER__ = false;
- public $skipassettimer = false;
- public $errno = null;
- public $errstr = null;
- public $SERVIDX = 0;
- public $user_lang = null;
- public $user_wnhost = null;
- public $user_wnport = null;
- public $user_socket = null;
- public $user_navcrumbs = null;
- public $searchid_request = null;
- public $resultsetid = null;
- public $USERINFO = array( );
- public $showkywds = false;
- public $SERVERINFO = array( );
- public $volume_info = array( );
- public $nav_info = array( );
- public $files_info = array( );
- public $keywords_info = array( );
- public $directory_info = array( );
- public $basket_info = array( );
- public $basket_plugins = array( );
- public $numfiles = 0;
- public $links_columns = 1;
- public $doFileInfo = false;
- public $pathid_query = null;
- public $limit_searchengine = 0;
- public $template = null;
- public $ismarquee = false;
- private $smallpreview = 112;
- private $largepreview = 0;
- private $do_chk_list = false;
- public $template_version = 0;
- public $json_proxy = false;
- private $navigator = false;
- public $pdb = null;
- 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' ) );
- 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' ) );
- 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' ) );
- 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' ) );
- public function init_portal() {
- mb_internal_encoding( 'UTF-8' );
- mb_http_output( 'UTF-8' );
- mb_regex_encoding( 'UTF-8' );
- if (0 < $this->SERVERINFO = $this->load_cache_file( $this->server_info_cache )) {
- if (isset( $this->SERVERINFO[$this->__WNHOST__] )) {
- $this->__SERVERINFO__ = $this->SERVERINFO[$this->__WNHOST__];
- } else {
- $this->__SERVERINFO__ = current( &$this->SERVERINFO );
- }
- foreach ($this->__SERVERINFO__ as $data) {
- $key = ;
- $name = '__' . strtoupper( $key ) . '__';
- $this->$name = $data;
- }
- $this->__USERINFO__ = $this->__SERVERINFO__['VOLUMES'][0]['USERINFO'];
- $this->__BASKETPLUGINS__ = $this->__BASKET_PLUGINS__;
- $this->__CONVERTSYMBOLS__ = $this->__SERVERINFO__['CONVERTSYMBOLS'];
- }
- $this->get_script( );
- if (isset( $this->__SERVERINFO__['VOLUMES'] )) {
- if (is_array( $this->__SERVERINFO__['VOLUMES'] )) {
- $vols = $this->__SERVERINFO__['VOLUMES'];
- if (isset( $_REQUEST['path'] )) {
- $rpath = rawurldecode( $_REQUEST['path'] );
- $matchlen = 0;
- $i = 0;
- for ($c = count( $vols ); $i < $c; ++$i) {
- $path = rawurldecode( $vols[$i]['FILE_PATH'] );
- if (strcasecmp( $rpath, $path ) == 0) {
- $this->__USERINFO__ = $vols[$i]['USERINFO'];
- $this->__ISVENTUREVOL__ = $vols[$i]['ISVENTUREVOL'];
- $this->__SELECTEDVOL__ = $path;
- break;
- }
- $len = strlen( $path );
- if ($matchlen < $len) {
- $checklen = $len;
- if ($path[$len - 1] != '/') {
- ++$checklen;
- }
- if (strncasecmp( $rpath, $path . '/', $checklen ) == 0) {
- $this->__USERINFO__ = $vols[$i]['USERINFO'];
- $this->__ISVENTUREVOL__ = $vols[$i]['ISVENTUREVOL'];
- $this->__SELECTEDVOL__ = $path;
- $matchlen = $len;
- continue;
- }
- continue;
- }
- }
- } else {
- if ($this->__SCRIPT__ & ( TOPLEVEL | SHOWBASKET )) {
- $i = 0;
- for ($c = count( $vols ); $i < $c; ++$i) {
- if ($vols[$i]['ISVENTUREVOL']) {
- $this->__ISVENTUREVOL__ = true;
- }
- }
- }
- }
- unset( $vols );
- }
- }
- if (isset( $_SESSION['CONFIG']['SITE_TIME_FORMAT'] )) {
- if ($_SESSION['CONFIG']['SITE_TIME_FORMAT'] != null) {
- $this->__TIMEFORMAT__ = $_SESSION['CONFIG']['SITE_TIME_FORMAT'];
- }
- }
- if (isset( $_SESSION['CONFIG']['THEME'] )) {
- if (stristr( $_SESSION['CONFIG']['THEME'], 'marquee' )) {
- $this->ismarquee = true;
- }
- }
- $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'] );
- $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'] );
- if (function_exists( 'date_default_timezone_set' )) {
- if (function_exists( 'date_default_timezone_get' )) {
- date_default_timezone_set( @date_default_timezone_get( ) );
- }
- }
- if (isset( $_REQUEST['smallpreview'] )) {
- $_SESSION['CONFIG']['SMALL_PREVIEW_MAX'] = $_REQUEST['smallpreview'];
- $this->smallpreview = ;
- } else {
- if (isset( $_SESSION['CONFIG']['SMALL_PREVIEW_MAX'] )) {
- $this->smallpreview = $_SESSION['CONFIG']['SMALL_PREVIEW_MAX'];
- }
- }
- if (isset( $_REQUEST['largepreview'] )) {
- $_SESSION['CONFIG']['LARGE_PREVIEW_MAX'] = $_REQUEST['largepreview'];
- $this->largepreview = ;
- } else {
- if (isset( $_SESSION['CONFIG']['LARGE_PREVIEW_MAX'] )) {
- $this->largepreview = $_SESSION['CONFIG']['LARGE_PREVIEW_MAX'];
- }
- }
- if (isset( $_REQUEST['file'] )) {
- $_REQUEST['path'] = &$_REQUEST['file'];
- }
- if (isset( $_REQUEST['id'] )) {
- if ($_REQUEST['id'] != '') {
- $this->pathid_query = 'fileid=' . $_REQUEST['id'];
- }
- } else {
- if (isset( $_REQUEST['path'] )) {
- if ($_REQUEST['path'] != '') {
- $this->pathid_query = 'path=' . $_REQUEST['path'];
- }
- }
- }
- if (isset( $_REQUEST['triggeraction'] )) {
- if (!( ( !( $_REQUEST['triggeraction'] == 'pushtodam' ) && !( $_REQUEST['triggeraction'] == 'pullfromdam' ) ))) {
- $eventname = '';
- switch ($_REQUEST['triggeraction']) {
- case 'pushtodam': {
- $eventname = 'PUSHTODAM';
- break;
- }
- case 'pullfromdam': {
- $eventname = 'PULLFROMDAM';
- }
- }
- if (isset( $_REQUEST['basketfile'] )) {
- $this->pop_basket_cache( );
- $ba_request = $this->kywd_ba_request( );
- $request = 'action=2&' . $ba_request . '&order=0';
- $request .= '&basket=' . urlencode( $this->__BASKETFILE__ );
- if ($this->__SERVERINFO__['HOSTTYPE'] == 'UNIX') {
- $query = 'POST /webnative/plugins/batchapply.dir/batchapply HTTP/1.0
- ';
- } else {
- $query = 'POST /webnative/plugins/batchapply.dir/batchapply.exe HTTP/1.0
- ';
- }
- $this->query_wncgi( $query, $request );
- sleep( 2 );
- foreach ($this->basket_info as $value) {
- $key = ;
- $this->pathid_query = 'path=' . $value['FILE_PATH'];
- $this->setevent( $eventname );
- }
- exit( );
- }
- if (isset( $_REQUEST['updatemetadata'] )) {
- if ($_REQUEST['updatemetadata'] == 'true') {
- $this->set_metafields( );
- sleep( 2 );
- }
- }
- $this->setevent( $eventname );
- exit( );
- }
- }
- if (!( isset( $_SESSION['VIEW'] ))) {
- $v = null;
- } else {
- $v = $_SESSION['VIEW'];
- if ($v == 'gallery') {
- if (!( ( !$_SESSION['CONFIG']['GALLERY_VIEW_DISPLAY'] && !$this->__USERINFO__['GALLERYVIEW'] ))) {
- $this->__VIEWTYPE__ = $v;
- } else {
- $v = null;
- }
- } else {
- if ($v == 'list') {
- $chk = 'LIST_VIEW_DISPLAY';
- } else {
- if ($v == 'long') {
- $chk = 'LONGVIEW';
- } else {
- if ($v == 'short') {
- $chk = 'SHORTVIEW';
- } else {
- if ($v == 'icon') {
- $chk = 'ICONVIEW';
- } else {
- $v = null;
- }
- }
- }
- }
- if ($v != null) {
- if (isset( $this->__USERINFO__[$chk] )) {
- if ($this->__USERINFO__[$chk]) {
- $this->__VIEWTYPE__ = $v;
- }
- } else {
- $v = null;
- }
- }
- }
- }
- if ($v == null) {
- if (isset( $this->__USERINFO__['DEFAULTVIEW'] )) {
- $this->__VIEWTYPE__ = $this->__USERINFO__['DEFAULTVIEW'];
- }
- }
- if (0 < count( $this->__SERVERINFO__['KEYWORDS'] )) {
- $this->showkywds = true;
- }
- $this->user_lang = &$this->__LANGUAGE__;
- $this->user_wnhost = &$this->__WNHOST__;
- $this->user_wnport = &$this->__WNPORT__;
- $this->user_socket = &$this->__WNSOCKET__;
- $this->user_navcrumbs = &$this->__NAVCRUMBS__;
- $this->languagestyle = &$this->__LANGUAGESTYLE__;
- $this->USERINFO = &$this->__USERINFO__;
- }
- public function init_databases() {
- if ($this->ismarquee) {
- if ($this->__SCRIPT__ & TOPLEVEL) {
- if (isset( $_SESSION['CONFIG']['NAVIGATOR_TOPFACETS'] )) {
- if ($_SESSION['CONFIG']['NAVIGATOR_TOPFACETS']) {
- $dbpath = '/var/tmp';
- if (isset( $_SESSION['SITE_PATH'] )) {
- $dbpath = $_SESSION['SITE_PATH'];
- } else {
- if (isset( $_SESSION['SITE_URL'] )) {
- $dbpath = base64_decode( $_SESSION['SITE_URL'] );
- }
- }
- $this->pdb = new StackPreviewsDB( $dbpath, $this->user_wnhost );
- $this->pdb->import_override_csv_to_stackpreviewcustom( );
- }
- }
- }
- }
- }
- public function getPortalVersion() {
- if (empty( $_SESSION['PORTAL_VERSION'] )) {
- ob_start( );
- @include( 'PORTAL/libs/version.php' );
- $_SESSION['PORTAL_VERSION'] = ob_get_contents( );
- ob_end_clean( );
- }
- return $_SESSION['PORTAL_VERSION'];
- }
- public function load_cache_file($file) {
- if (file_exists( $file )) {
- $fp = fopen( $file, 'r' );
- $json = stream_get_contents( $fp, -1 );
- return json_decode( $json, true );
- }
- return 0;
- }
- public function setdate($fieldid) {
- if (!( ( isset( $fieldid['3'] ) && !( $fieldid['3'] == null ) ))) {
- $fieldid['3'] = '00';
- .........................................................................
- .............................................
- ...............
Add Comment
Please, Sign In to add comment