<?php if (isset($attributes['token']) && isset($attributes['fuseactionid'])) { $arrLanguages = array(); if (isset($attributes['languageid'])) { $arrLanguages[] = $oLanguageManager->getLanguageByID($attributes['languageid']); } else { $arrLanguages = $oLanguageManager->getLanguages(); } _assign("arrLanguages", $arrLanguages); if ($attributes['fuseactionid'] == 0) { $tmpoFuseaction =& $ogFuseaction; _assign("tmpoFuseaction", $tmpoFuseaction); } elseif (is_numeric($attributes['fuseactionid'])) { if ($tmpoFuseaction = $oFuseManager->getFuseactionByID($attributes['fuseactionid'])) { _assign("tmpoFuseaction", $tmpoFuseaction); } else { _error("ECannotGetFuseaction", "Cannot get page or action"); } } else { _error("EInvalidFuseaction", "Invalid page/action ID given"); } _display("util/dspGraphicsForm.tpl"); } else { _error("ENoGraphicsGiven", "No valid graphic content item given to edit"); }
<?php $attributes['order'] = empty($attributes['order']) ? "code" : $attributes['order']; $attributes['pagesize'] = empty($attributes['pagesize']) ? $oSettingsManager->getValue("AdminTableSize", 25, "INT", "Number of elements in tables of administrator backend") : (int) $attributes['pagesize']; if (!isset($attributes['sort'])) { $attributes['sort'] = "ASC"; } else { if (!in_array($attributes['sort'], array("ASC", "DESC"))) { $attributes['sort'] = "ASC"; } } $attributes['asort'] = $attributes['sort'] == "ASC" ? "DESC" : "ASC"; $attributes['page'] = empty($attributes['page']) ? 1 : (int) $attributes['page']; $oPaging = new Paging($attributes['pagesize'], $oLanguageManager->getLanguagesCount(), $attributes['page']); $oPaging->setLinkFormat($here . "&page=%d"); $arrPageSizes = array(10, 25, 50, 100, 200); if ($arrLanguages = $oLanguageManager->getLanguages($attributes['order'], $attributes['sort'], $oPaging->getOffSet(), $oPaging->getPageSize())) { _assign("arrLanguages", $arrLanguages); _assign("arrPages", $oPaging->getPages()); _assign("arrPageSizes", $arrPageSizes); } _display("admin/dspLanguages.tpl");
<?php if (!empty($attributes['token'])) { $arrArticleAttachments = $ogArticleAttachmentManager->getAttachments($attributes['token']); _assign('arrArticleAttachments', $arrArticleAttachments); } if (!empty($attributes['id'])) { $arrAttachment = $ogArticleAttachmentManager->getAttachment(intval($attributes['id'])); } if (isset($arrAttachment)) { _assign('arrAttachment', $arrAttachment); } _display('admin/dspArticleAttachments.tpl');
<?php $tmpoGroup = new Group(); if (!empty($attributes['id'])) { if (!($tmpoGroup = $oSecurityManager->getGroupByID($attributes['id']))) { _error("ENoGroupFound", "No security group with ID={$attributes['id']} found"); } } if (isset($attributes['fCode'])) { $tmpoGroup->setCode($attributes['fCode']); } if (isset($attributes['fName'])) { $tmpoGroup->setName($attributes['fName']); } if (isset($attributes['fDescription'])) { $tmpoGroup->setDescription($attributes['fDescription']); } if (isset($attributes['fHomePage'])) { $tmpoGroup->setHomePage($attributes['fHomePage']); } _assign("tmpoGroup", $tmpoGroup); _display("admin/dspGroupForm.tpl");
<?php _assign("arrContentPages", $arrContentPages); _assign("arrPageSizes", $arrPageSizes); _assign("arrPages", $oPaging->getPages()); _display("admin/dspContentPages.tpl");
<?php _warning("WAccessDenied", "Access to this page is denied. Please (re-)login or contact administrator."); _display("home/dspAccessDenied.tpl");
<?php $tmpoFuseaction = false; if (isset($attributes['key'])) { if (!($tmpoFuseaction = $oFuseManager->getFuseaction($attributes['key']))) { _error("ECannotGetFuseaction", "No fuseaction found"); } } elseif (isset($attributes['id'])) { if (is_numeric($attributes['id'])) { if ($attributes['id'] == 0) { $tmpoFuseaction =& $ogFuseaction; } elseif (!($tmpoFuseaction = $oFuseManager->getFuseactionByID($attributes['id']))) { _error("ECannotGetFuseaction", "No fuseaction found"); } } else { _error("EInvalidFuseactionID", "Invalid Fuseaction ID"); } } else { _error("ENoFuseactionGiven", "No page given"); } if ($tmpoFuseaction) { $tmpoSEOContentManager = new ContentManager($oDB, $tmpoFuseaction, $tmpoLanguage, $fusebox['tableSEOContentTokens'], $fusebox['tableSEOContent'], false); $arrTokens = $tmpoSEOContentManager->getTokens(); $arrLanguages = $oLanguageManager->getLanguages(); $smarty->assign("tmpoFuseaction", $tmpoFuseaction); $smarty->assign("tmpoSEOContentManager", $tmpoSEOContentManager); $smarty->assign("arrTokens", $arrTokens); $smarty->assign("arrLanguages", $arrLanguages); } _display("admin/dspSEOContentTokens.tpl");
<?php $attributes['order'] = empty($attributes['order']) ? "description" : $attributes['order']; $attributes['sort'] = empty($attributes['sort']) ? "ASC" : $attributes['sort']; $attributes['pagesize'] = empty($attributes['pagesize']) ? $oSettingsManager->getValue("AdminTableSize", 25, "INT", "Number of elements in tables of administrator backend") : (int) $attributes['pagesize']; $attributes['asort'] = $attributes['sort'] == "ASC" ? "DESC" : "ASC"; $attributes['page'] = empty($attributes['page']) ? 1 : (int) $attributes['page']; $oPaging = new Paging($attributes['pagesize'], $oSettingsManager->getSettingsCount(), $attributes['page']); $oPaging->setLinkFormat($here . "&page=%d"); $arrPageSizes = array(10, 25, 50, 100, 200); if ($arrSettings = $oSettingsManager->getSettings($attributes['order'], $attributes['sort'], $oPaging->getOffSet(), $oPaging->getPageSize())) { _assign("arrSettings", $arrSettings); _assign("arrPages", $oPaging->getPages()); _assign("arrPageSizes", $arrPageSizes); } _display("admin/dspSettings.tpl");
<? if($arrFuseactions = $oFuseManager->getFuseactions()){ _assign("arrFuseactions", $arrFuseactions); }else{ _error("ECannotGetFuseactions", "Cannot retrieve fuseactions from DB"); } _display("admin/dspSpecification.tpl"); ?>
<?php $attributes['order'] = empty($attributes['order']) ? "login" : $attributes['order']; $attributes['pagesize'] = empty($attributes['pagesize']) ? $oSettingsManager->getValue("AdminTableSize", 25, "INT", "Number of elements in tables of administrator backend") : (int) $attributes['pagesize']; if (!isset($attributes['sort'])) { $attributes['sort'] = "ASC"; } else { if (!in_array($attributes['sort'], array("ASC", "DESC"))) { $attributes['sort'] = "ASC"; } } $attributes['asort'] = $attributes['sort'] == "ASC" ? "DESC" : "ASC"; $attributes['page'] = empty($attributes['page']) ? 1 : (int) $attributes['page']; $oPaging = new Paging($attributes['pagesize'], $oUserManager->getUsersCount(), $attributes['page']); $oPaging->setLinkFormat($here . "&page=%d"); $arrPageSizes = array(10, 25, 50, 100, 200); if ($arrUsers = $oUserManager->getUsers($attributes['order'], $attributes['sort'], $oPaging->getOffSet(), $oPaging->getPageSize())) { foreach ($arrUsers as $k => $u) { $arrUsers[$k]->setGroups($oSecurityManager->pullUserGroups($u->getID())); } _assign("arrUsers", $arrUsers); _assign("arrPages", $oPaging->getPages()); _assign("arrPageSizes", $arrPageSizes); } $arrGroups = $oSecurityManager->getGroups(); _assign("arrGroups", $arrGroups); _display("admin/dspUsers.tpl");
<?php $tmpoLanguage = false; if (isset($attributes['id']) && intval($attributes['id']) > 0) { $tmpoLanguage = $oLanguageManager->getLanguageByID(intval($attributes['id'])); } elseif (isset($attributes['key'])) { $tmpoLanguage = $oLanguageManager->getLanguage($attributes['key']); } $smarty->assign("tmpoLanguage", $tmpoLanguage); _display("admin/dspLanguageForm.tpl");
} if (isset($article_id)) { $arrRelatedArticles = $ogArticleTree->getChildNodes($article_id, array('token')); $arrBranch = $ogArticleTree->getBranch($node_id, array('token')); _assign('arrBranch', $arrBranch); _assign('arrRelatedArticles', $arrRelatedArticles); } if (!empty($attributes['article'])) { $arrArticleAttachments = $ogArticleAttachmentManager->getAttachments($attributes['article']); _assign('arrArticleAttachments', $arrArticleAttachments); $intCommentsCount = $ogArticleManager->getCommentsCount($attributes['article']); _assign('intCommentsCount', $intCommentsCount); } $intAuthorID = $ogArticleManager->getAuthorID($attributes['article']); $intEditorID = $ogArticleManager->getEditorID($attributes['article']); $oAuthor = false; $oEditor = false; if ($intAuthorID) { $oAuthor = $oUserManager->getUserByID($intAuthorID); } if ($intEditorID) { $oEditor = $oUserManager->getUserByID($intEditorID); } if ($oAuthor) { _assign('oAuthor', $oAuthor); } if ($oEditor) { _assign('oEditor', $oEditor); } _display("home/dspArticle.tpl");
$attributes['prev_token'] = $arrImages[$i - 1]['token']; } break; } } $intAuthorID = $ogGalleryManager->getImageAuthorID($attributes['gallery'], $attributes['image']); $intEditorID = $ogGalleryManager->getImageEditorID($attributes['gallery'], $attributes['image']); $oAuthor = false; $oEditor = false; if ($intAuthorID) { $oAuthor = $oUserManager->getUserByID($intAuthorID); } if ($intEditorID) { $oEditor = $oUserManager->getUserByID($intEditorID); } if ($oAuthor) { _assign('oAuthor', $oAuthor); } if ($oEditor) { _assign('oEditor', $oEditor); } $arrGalleries = $ogGalleryManager->getGalleries(); _assign("arrGalleries", $arrGalleries); _display("home/dspGalleryImage.tpl"); } } else { _error("EGalleryNotExists", "Gallery not exists"); } } else { _error("ENoGalleryGiven", "No gallery given"); }
<?php _display("home/dspRecoverPasswordForm.tpl");
<?php _display("home/dspResetPasswordForm.tpl");
<?php _display("home/dspRegistrationConfirmation.tpl");
<?php $attributes['page_size'] = empty($attributes['page_size']) ? $oSettingsManager->getValue("GalleriesPageSize", 10, "INT", "Number of elements in galleries list") : intval($attributes['page_size']); $attributes['page'] = empty($attributes['page']) ? 1 : intval($attributes['page']); $oPaging = new Paging($attributes['page_size'], $ogGalleryManager->getGalleriesCount(), $attributes['page']); $oPaging->setLinkFormat($here . "&page=%d"); $arrAllGalleries = $ogGalleryManager->getGalleries("id", "DESC", $oPaging->getOffSet(), $oPaging->getPageSize()); _assign("arrPages", $oPaging->getPages()); _assign("arrAllGalleries", $arrAllGalleries); _display("home/dspGalleries.tpl");
<?php $attributes['order'] = empty($attributes['order']) ? "moment" : $attributes['order']; $attributes['pagesize'] = empty($attributes['pagesize']) ? $oSettingsManager->getValue("AdminTableSize", 100, "INT", "Number of elements in tables of administrator backend") : (int) $attributes['pagesize']; if (!isset($attributes['sort'])) { $attributes['sort'] = "DESC"; } else { if (!in_array($attributes['sort'], array("ASC", "DESC"))) { $attributes['sort'] = "DESC"; } } $attributes['asort'] = $attributes['sort'] == "ASC" ? "DESC" : "ASC"; $attributes['page'] = empty($attributes['page']) ? 1 : (int) $attributes['page']; $oPaging = new Paging($attributes['pagesize'], $oLogManager->getLogCount(), $attributes['page']); $oPaging->setLinkFormat($here . "&page=%d"); $arrPageSizes = array(10, 25, 50, 100, 200); if ($arrLog = $oLogManager->getLog($attributes['order'], $attributes['sort'], $oPaging->getOffSet(), $oPaging->getPageSize())) { _assign("arrLog", $arrLog); _assign("arrPages", $oPaging->getPages()); _assign("arrPageSizes", $arrPageSizes); } _display("admin/dspLog.tpl");
<?php $arrGalleries = $ogGalleryManager->getGalleries(); _assign("arrGalleries", $arrGalleries); _display("admin/dspGalleries.tpl");
<?php file_put_contents('./' . basename(__FILE__, '.php') . '.log', print_r($_POST, true)); include '..\\lib\\AllPay.Logistics.Integration.PHP'; include '..\\lib\\misc.inc'; _display($_POST); try { $AL = new AllpayLogistics(); $AL->HashKey = '5294y06JbISpM5x9'; $AL->HashIV = 'v77hoKGq4kWxNNIS'; // $AL->HashKey = 'XBERn1YOvpM9nfZc'; // $AL->HashIV = 'h1ONHk4P4yqbl5LK'; $AL->CheckOutFeedback(); } catch (Exception $e) { _display('Exception : ' . $e->getMessage()); } _display('End');
<?php //_assign("arrCountries", $oPropertyManager->getDictionary("fCountry")); //_assign("tmpUser", $tmpUser); _display("home/dspContactForm.tpl");
<?php if (isset($attributes['token']) && isset($attributes['fuseactionid'])) { $arrLanguages = array(); if (isset($attributes['languageid'])) { $arrLanguages[] = $oLanguageManager->getLanguageByID($attributes['languageid']); } else { $arrLanguages = $oLanguageManager->getLanguages(); } _assign("arrLanguages", $arrLanguages); if ($attributes['fuseactionid'] == 0) { $tmpoFuseaction =& $ogFuseaction; _assign("tmpoFuseaction", $tmpoFuseaction); } elseif (is_numeric($attributes['fuseactionid'])) { if ($tmpoFuseaction = $oFuseManager->getFuseactionByID($attributes['fuseactionid'])) { _assign("tmpoFuseaction", $tmpoFuseaction); } else { _error("ECannotGetFuseaction", "Cannot get page or action"); } } else { _error("EInvalidFuseaction", "Invalid page/action ID given"); } _display("admin/dspSEOContentForm.tpl"); } else { _error("ENoContentGiven", "No valid content item given to edit"); }
<?php $arrLanguages = $oLanguageManager->getLanguages(); $arrImages = $ogGalleryManager->getImages($attributes['gallery']); $intLanguageID = $oLanguage->getID(); _assign("intLanguageID", $intLanguageID); _assign("arrImages", $arrImages); _assign("arrLanguages", $arrLanguages); if (!empty($attributes['gallery'])) { if ($ogGalleryManager->checkGallery($attributes['gallery'])) { _display("admin/dspGallery.tpl"); } else { _error("EGalleryNotExists", "Gallery not exists"); } } else { _error("EGalleryNotGiven", "Gallery not given"); }
<?php $attributes['xcode'] = array_key_exists("xcode", $attributes) ? $attributes['xcode'] : ""; $attributes['order'] = empty($attributes['order']) ? "pos" : $attributes['order']; $attributes['sort'] = empty($attributes['sort']) ? "DESC" : $attributes['sort']; $attributes['pagesize'] = empty($attributes['pagesize']) ? $oSettingsManager->getValue("AdminTableSize", 25, "INT", "Number of elements in tables of administrator backend") : (int) $attributes['pagesize']; $attributes['asort'] = $attributes['sort'] == "ASC" ? "DESC" : "ASC"; $attributes['page'] = empty($attributes['page']) ? 1 : (int) $attributes['page']; if (!empty($attributes['code'])) { $oPaging = new Paging($attributes['pagesize'], $oPropertyManager->getDictionaryCount($attributes['code'], $attributes['xcode']), $attributes['page']); $oPaging->setLinkFormat($here . "&page=%d"); $arrPageSizes = array(10, 25, 50, 100, 200); if ($arrProperty = $oPropertyManager->getProperty($attributes['code'])) { _assign("arrProperty", $arrProperty); } if ($arrPropertyDictionary = $oPropertyManager->getDictionary($attributes['code'], $attributes['xcode'], $attributes['order'], $attributes['sort'], $oPaging->getOffSet(), $oPaging->getPageSize())) { _assign("arrPages", $oPaging->getPages()); _assign("arrPageSizes", $arrPageSizes); _assign("arrPropertyDictionary", $arrPropertyDictionary); } } else { _error("ENoPropertyFound", "No property found"); } _display("admin/dspPropertyDictionary.tpl");
<?php if (isset($attributes['code'])) { if ($arrProperty = $oPropertyManager->getProperty($attributes['code'])) { _assign("arrProperty", $arrProperty); } else { _error("ENoPropertyFound", "No property found with this code"); } } else { _error("ENoPropertyGiven", "No property given to edit"); } _display("admin/dspPropertyForm.tpl");
<? _display("util/dspContentUploadForm.tpl"); ?>
<? if(isset($imageFileName)){ _assign("imageFileName", $imageFileName); }else{ _error("ENoImageFileName", "No image file name given"); } _display("util/dspUploadContentResult.tpl"); ?>
<?php $arrArticleComments = $ogArticleManager->getComments($attributes['token']); _assign('arrArticleComments', $arrArticleComments); _display("admin/dspArticlesComments.tpl");
<?php $arrRootNode = $ogArticleTree->getRootNodeInfo(); $arrArticlesTree = $ogArticleTree->select($arrRootNode['id'], array('token'), NSTREE_AXIS_DESCENDANT_OR_SELF); _assign("arrArticlesTree", $arrArticlesTree); _display("admin/dspArticlesTree.tpl");
<?php $attributes['order'] = empty($attributes['order']) ? "code" : $attributes['order']; $attributes['pagesize'] = empty($attributes['pagesize']) ? $oSettingsManager->getValue("AdminTableSize", 25, "INT", "Number of elements in tables of administrator backend") : (int) $attributes['pagesize']; if (!isset($attributes['sort'])) { $attributes['sort'] = "ASC"; } else { if (!in_array($attributes['sort'], array("ASC", "DESC"))) { $attributes['sort'] = "ASC"; } } $attributes['asort'] = $attributes['sort'] == "ASC" ? "DESC" : "ASC"; $attributes['page'] = empty($attributes['page']) ? 1 : (int) $attributes['page']; $oPaging = new Paging($attributes['pagesize'], $oSecurityManager->getGroupsCount(), $attributes['page']); $oPaging->setLinkFormat($here . "&page=%d"); $arrPageSizes = array(10, 25, 50, 100, 200); if ($arrGroups = $oSecurityManager->getGroups($attributes['order'], $attributes['sort'], $oPaging->getOffSet(), $oPaging->getPageSize())) { _assign("arrGroups", $arrGroups); _assign("arrPages", $oPaging->getPages()); _assign("arrPageSizes", $arrPageSizes); } _display("admin/dspGroups.tpl");