当前位置: 首页>>代码示例>>PHP>>正文


PHP Settings::getSkin方法代码示例

本文整理汇总了PHP中Settings::getSkin方法的典型用法代码示例。如果您正苦于以下问题:PHP Settings::getSkin方法的具体用法?PHP Settings::getSkin怎么用?PHP Settings::getSkin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Settings的用法示例。


在下文中一共展示了Settings::getSkin方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addItem_postInsertion

 function addItem_postInsertion()
 {
     /* controllare reload */
     $mail = new Template(Settings::getSkin() . "/user.mail");
     $mail->setContent("name", $_REQUEST['name']);
     $mail->setContent("username", $_REQUEST['username']);
     $mail->setContent("password", $_REQUEST['password']);
     $mail->setContent("message", $_REQUEST['message']);
     mail("{$_REQUEST['email']}", "{Config::getInstance()->getConfigurations()['website']['name']} Login data", $mail->get(), "From: {{Config::getInstance()->getConfigurations()['website']['email']}}");
 }
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:10,代码来源:password.php

示例2: resolve

 function resolve()
 {
     if (class_exists("Auth")) {
         if (isset($this->frame)) {
             $this->template_name = Settings::getSkin() . "/{$this->frame}.html";
         } else {
             $this->template_name = Settings::getSkin() . "/frame-private.html";
         }
         $this->private = true;
     } else {
         if (isset($this->frame)) {
             $this->template_name = Settings::getSkin() . "/{$this->frame}.html";
         } else {
             $this->template_name = Settings::getSkin() . "/frame-public.html";
         }
         $this->private = false;
     }
 }
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:18,代码来源:skin.inc.php

示例3: createTemplateSearch

 /**
  * Default building search template
  *
  * @param Entity $entity
  */
 static function createTemplateSearch($entity)
 {
     $searchTemplate = new Skinlet("autotemplate");
     $templateAsString = $searchTemplate->get();
     if (!is_dir(Settings::getSkin() . '/search/')) {
         mkdir(Settings::getSkin() . '/search/', 0777);
     }
     $filename = Settings::getSkin() . "/search/" . $entity->name . "_search.html";
     if (!file_exists($filename)) {
         $templateAsString = preg_replace("~\\[(?!entity_content\\d+_\\d+).+\\]~Us", "\n<!-- MODIFICA QUESTA LINEA-->" . self::searchFieldsEntity($entity) . "\n<!-- MODIFICA QUESTA LINEA-->\n", $templateAsString);
         $handleFile = fopen($filename, "w");
         fwrite($handleFile, $templateAsString);
         fclose($handleFile);
     }
 }
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:20,代码来源:createTemplate.php

示例4: mail

 function mail($to, $subject, $message, $from)
 {
     $signature = new Template(Settings::getSkin() . "/signature.mail");
     $message .= $signature->get();
     $mail = new zMailer();
     $mail->From = $from;
     $mail->FromName = $from;
     $mail->AddAddress($to);
     $mail->Subject = $subject;
     $mail->Body = eregi_replace("[\\]", '', $message);
     $mail->Send();
 }
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:12,代码来源:parser.inc.php

示例5: Skinlet

    case LOGIN_ERROR:
        $body = new Skinlet("error");
        $body->setContent("message", "Username or password unknown.");
        unset($_SESSION['user']);
        $_SESSION['HTTP_LOGIN'] = false;
        break;
    case PRIVILEDGE_ERROR:
        $body = new Skinlet("error");
        $body->setContent("message", "Warning: you are not permitted to use this service!");
        break;
    case DATAFILTERING_ERROR:
        $body = new Skinlet("error");
        $body->setContent("message", "Warning: you are not permitted to modify this item!");
        break;
    case "pageNotFound":
        $body = new Template(Settings::getSkin() . "/error.html");
        $body->setContent("message", "Warning: page not found!");
        break;
    case NOTIFICATION:
        $main = new Skin("orange");
        $body = new Skinlet("password_notification");
        break;
    case NOTIFICATION_ERROR:
        $main = new Skin("handling");
        $body = new Skinlet("password_notification_error");
        $body->setContent("ip", $_SERVER['REMOTE_ADDR']);
        break;
}
session_destroy();
$main->setContent("body", $body->get());
$main->close();
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:31,代码来源:error.php

示例6: displayItem

    }
    function displayItem($item)
    {
        if ($item['operation'] == 'DELETE') {
            $item['link'] = "";
        }
        beContentPager::displayItem($item);
    }
}
$pager = new myPager();
$pager->setQuery("\r\n\tSELECT logs.id,\r\n\t\t   logs.operation,\r\n\t\t   logs.entity,\r\n\t\t   logs.itemid,\r\n\t\t   logs.service,\r\n\t\t   logs.username,\r\n\t\t   logs.date,\r\n\t\t   logs.ip,\r\n\t\t   CONCAT(service,'?action=edit&page=1&value=',logs.itemid) as link\r\n      FROM logs");
$pager->setOrder("date DESC");
if ($_SESSION['user']['admin']) {
    $pager->setFilter("(logs.username LIKE '%[search]%' OR logs.operation LIKE '%[search]%' OR logs.entity LIKE '%[search]%')");
} else {
    $pager->setFilter("(logs.username LIKE '%[search]%' OR logs.operation LIKE '%[search]%' OR logs.entity LIKE '%[search]%') AND logs.username = '{$_SESSION['user']['username']}'");
    #$pager->setFilter("logs.username = '{$_SESSION['user']['username']}'");
}
$pager->setOrder("logs.date DESC");
$pager->setTemplate(Settings::getSkin() . "/report-logs.html");
$form->setPager($pager);
$_REQUEST['action'] = "edit";
$_REQUEST['page'] = "0";
switch ($_REQUEST['action']) {
    case "edit":
        $main->setContent("body", $form->editItem());
        break;
}
$main->close();
?>
 
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:30,代码来源:logs.php

示例7: livereport

 function livereport($name, $entityName, $pars)
 {
     $item = new Template(Settings::getSkin() . "/liveReport.html");
     $length = $pars['length'];
     $index = false;
     foreach ($_SESSION['user']['services'] as $k => $v) {
         if ($v['script'] == basename($_SERVER['SCRIPT_FILENAME'])) {
             $index = $k;
             break;
         }
     }
     if (!$index) {
         $item->setContent("title", "Report");
     } else {
         $item->setContent("title", $_SESSION['user']['services'][$index]['serviceName']);
     }
     $entity = DB::getInstance()->getEntityByName($entityName);
     /* echo "var dump di COUNT in report.inc <br>";
     		var_dump(COUNT); */
     $count = $entity->getReference(COUNT);
     #$data = Parser::getResult("SELECT COUNT(*) AS count FROM {$entityName}");
     $item->setContent("length", $length);
     #$item->setContent("total", $data[0]['count']);
     $item->setContent("total", $count);
     $item->setContent("entity", $entityName);
     $item->setContent("script", basename($_SERVER['SCRIPT_FILENAME']));
     $item->setContent("query", Parser::encrypt($GLOBALS['currentform']->reportQuery));
     return $item->get();
 }
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:29,代码来源:report.inc.php

示例8: get

 function get()
 {
     //$this->smarty->assign("sys",TagLibrariesFactory::getInstance());
     return $this->smarty->fetch(Settings::getSkin() . "/{$this->template_name}");
 }
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:5,代码来源:skinlet.inc.php


注:本文中的Settings::getSkin方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。