Пример #1
0
<?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");
}
Пример #2
0
<?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");
Пример #3
0
<?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');
Пример #4
0
<?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");
Пример #5
0
<?php

_assign("arrContentPages", $arrContentPages);
_assign("arrPageSizes", $arrPageSizes);
_assign("arrPages", $oPaging->getPages());
_display("admin/dspContentPages.tpl");
Пример #6
0
<?php

_warning("WAccessDenied", "Access to this page is denied. Please (re-)login or contact administrator.");
_display("home/dspAccessDenied.tpl");
Пример #7
0
<?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");
Пример #8
0
<?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");
Пример #9
0
<?

if($arrFuseactions = $oFuseManager->getFuseactions()){
        _assign("arrFuseactions", $arrFuseactions);
    }else{
        _error("ECannotGetFuseactions", "Cannot retrieve fuseactions from DB");
    }
    
    _display("admin/dspSpecification.tpl");

?>
Пример #10
0
<?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");
Пример #11
0
<?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");
Пример #12
0
}
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");
Пример #13
0
                        $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");
}
Пример #14
0
<?php

_display("home/dspRecoverPasswordForm.tpl");
Пример #15
0
<?php

_display("home/dspResetPasswordForm.tpl");
<?php

_display("home/dspRegistrationConfirmation.tpl");
Пример #17
0
<?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");
Пример #18
0
<?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");
Пример #19
0
<?php

$arrGalleries = $ogGalleryManager->getGalleries();
_assign("arrGalleries", $arrGalleries);
_display("admin/dspGalleries.tpl");
Пример #20
0
<?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');
Пример #21
0
<?php

//_assign("arrCountries", $oPropertyManager->getDictionary("fCountry"));
//_assign("tmpUser", $tmpUser);
_display("home/dspContactForm.tpl");
Пример #22
0
<?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");
}
Пример #23
0
<?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");
}
Пример #24
0
<?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");
Пример #25
0
<?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");
Пример #26
0
<?

	_display("util/dspContentUploadForm.tpl");

?>
Пример #27
0
<?

	if(isset($imageFileName)){
		_assign("imageFileName", $imageFileName);
	}else{
		_error("ENoImageFileName", "No image file name given");
	}
	
	_display("util/dspUploadContentResult.tpl");

?>
Пример #28
0
<?php

$arrArticleComments = $ogArticleManager->getComments($attributes['token']);
_assign('arrArticleComments', $arrArticleComments);
_display("admin/dspArticlesComments.tpl");
Пример #29
0
<?php

$arrRootNode = $ogArticleTree->getRootNodeInfo();
$arrArticlesTree = $ogArticleTree->select($arrRootNode['id'], array('token'), NSTREE_AXIS_DESCENDANT_OR_SELF);
_assign("arrArticlesTree", $arrArticlesTree);
_display("admin/dspArticlesTree.tpl");
Пример #30
0
<?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");