• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP tep_load函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中tep_load函数的典型用法代码示例。如果您正苦于以下问题:PHP tep_load函数的具体用法?PHP tep_load怎么用?PHP tep_load使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: get_help

 function get_help()
 {
     extract(tep_load('defs', 'database', 'sessions'));
     $result = false;
     $zone_script = '';
     if (isset($_GET['zID']) && tep_not_null($_GET['zID'])) {
         $zone_query = $db->query("select seo_types_class from " . TABLE_SEO_TYPES . " where seo_types_id = '" . (int) $_GET['zID'] . "'");
         if ($db->num_rows($zone_query)) {
             $zone_array = $db->fetch_array($zone_query);
             $zone_script = $zone_array['seo_types_class'];
         }
     }
     if (!empty($zone_script)) {
         $file = DIR_FS_STRINGS . 'help/' . $zone_script . '.php';
     } else {
         $file = DIR_FS_STRINGS . 'help/' . $cDefs->script;
     }
     $result = tep_read_contents($file, $contents);
     if (!$result) {
         return $result;
     }
     echo $contents;
     $cSessions->close();
     return true;
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:25,代码来源:admin_seo_zones.php


示例2: html_start_sub2

 function html_start_sub2()
 {
     extract(tep_load('defs', 'database', 'languages', 'sessions', 'plugins_admin', 'message_stack'));
     $selected_box =& $cSessions->register('selected_box');
     $html = '';
     if ($cDefs->ajax) {
         $html .= '  <div id="ajax">' . "\n";
         $html .= '    <div id="wrapper">' . "\n";
         echo $html;
         return;
     }
     tep_output_media();
     $html .= '</head>' . "\n";
     $html .= '<body>' . "\n";
     $html .= '  <div id="wrapper">' . "\n";
     echo $html;
     if ($cDefs->script != FILENAME_DEFAULT) {
         require DIR_FS_INCLUDES . 'header.php';
         echo '    <div class="cleaner"></div>' . "\n";
         echo '      <div id="leftpane">' . "\n";
         require DIR_FS_INCLUDES . 'column_left.php';
         echo '      </div>' . "\n";
         echo '      <div id="mainpane">' . "\n";
     } else {
         echo '    <div class="homepane main">' . "\n";
     }
     // Display Script specific notices
     $msg->output();
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:29,代码来源:html_start_sub2.php


示例3: get_entries

 function get_entries($zone, $tflag = true, $dflag = true, $raw = false)
 {
     extract(tep_load('database'));
     $this->entries_array = array();
     $zone_id = $this->get_zone($zone);
     if (!$zone_id) {
         return $this->entries_array;
     }
     $select_string = '';
     if ($tflag) {
         $select_string .= ', image_alt_title';
     }
     if ($dflag) {
         $select_string .= ', image_title';
     }
     $this->entries_string = "select image_file" . $select_string . " from " . TABLE_IMAGE_ZONES . " where abstract_zone_id = '" . (int) $zone_id . "' order by sequence_order";
     if ($raw) {
         return $this->entries_string;
     } else {
         $tmp_array = $db->query_to_array($this->entries_string);
         if (!count($tmp_array)) {
             return $this->entries_array;
         }
         $this->entries_array = $tmp_array;
         return $this->entries_array;
     }
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:27,代码来源:image_front.php


示例4: tep_update_whos_online

function tep_update_whos_online()
{
    extract(tep_load('http_validator', 'database', 'sessions'));
    if ($http->bot) {
        $wo_full_name = 'Bot: ' . $http->bot_name;
    } else {
        $wo_full_name = 'Visitor:' . $http->ua;
    }
    $wo_session_id = $cSessions->id;
    $wo_ip_address = $http->ip_string;
    $wo_last_page_url = getenv('REQUEST_URI');
    $current_time = time();
    $xx_mins_ago = $current_time - MAX_WHOS_ONLINE_TIME;
    // remove entries that have expired
    $db->query("delete from " . TABLE_WHOS_ONLINE . " where time_last_click < '" . $xx_mins_ago . "'");
    $stored_query = $db->query("select count(*) as count from " . TABLE_WHOS_ONLINE . " where ip_address = '" . $db->filter($wo_ip_address) . "'");
    $stored_array = $db->fetch_array($stored_query);
    if ($stored_array['count'] > 0) {
        $sql_data_array = array('full_name' => $db->prepare_input($wo_full_name), 'session_id' => $db->prepare_input($wo_session_id), 'time_last_click' => $db->prepare_input($current_time), 'last_page_url' => $db->prepare_input($wo_last_page_url), 'cookie_sent' => $cSessions->has_cookie() ? 1 : 0);
        $db->perform(TABLE_WHOS_ONLINE, $sql_data_array, 'update', "ip_address = '" . $db->filter($wo_ip_address) . "'");
    } else {
        $sql_data_array = array('full_name' => $db->prepare_input($wo_full_name), 'ip_address' => $db->prepare_input($wo_ip_address), 'time_entry' => $db->prepare_input($current_time), 'time_last_click' => $db->prepare_input($current_time), 'last_page_url' => $db->prepare_input($wo_last_page_url), 'session_id' => $db->prepare_input($wo_session_id), 'cookie_sent' => $cSessions->has_cookie() ? 1 : 0);
        $db->perform(TABLE_WHOS_ONLINE, $sql_data_array, 'insert');
    }
}
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:25,代码来源:whos_online.php


示例5: html_end

 function html_end()
 {
     extract(tep_load('defs', 'plugins_admin', 'sessions'));
     if ($cDefs->ajax) {
         $cPlug->invoke('ajax_end');
         echo '    </div>' . "\n";
         echo '  </div>' . "\n";
         require DIR_FS_INCLUDES . 'application_bottom.php';
         return;
     }
     if ($cDefs->script != FILENAME_DEFAULT) {
         echo '    </div>' . "\n";
         require DIR_FS_INCLUDES . 'footer.php';
     } else {
         echo '    </div>' . "\n";
         echo '    <div class="homepane main">' . "\n";
         require DIR_FS_INCLUDES . 'footer.php';
         echo '    </div>' . "\n";
     }
     echo '  </div>' . "\n";
     $cPlug->invoke('html_end');
     if ($cDefs->script != FILENAME_DEFAULT) {
         $cDefs->media[] = '<div><script language="javascript" type="text/javascript">' . "\n" . '  var jqWrap = general;' . "\n" . '  jqWrap.launch();' . "\n" . '</script></div>';
     }
     tep_output_media();
     echo '</body>' . "\n";
     echo '</html>' . "\n";
     require DIR_FS_INCLUDES . 'application_bottom.php';
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:29,代码来源:html_end.php


示例6: html_end

 function html_end()
 {
     extract(tep_load('defs', 'database'));
     // Setup help script - default js help is loaded by system_base
     $script_name = tep_get_script_name();
     $contents = '';
     $launcher = DIR_FS_PLUGINS . 'common_help.tpl';
     $result = tep_read_contents($launcher, $contents);
     if (!$result) {
         return false;
     }
     $postfix = 'list';
     switch ($cDefs->action) {
         case 'verify':
             $posfix = 'verify';
             break;
         default:
             break;
     }
     $title = $this->get_system_help_title($postfix);
     $contents_array = array('POPUP_TITLE' => $title, 'POPUP_SELECTOR' => 'div.help_page a.heading_help');
     // process js template
     $cDefs->media[] = tep_templates_replace_entities($contents, $contents_array);
     return true;
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:25,代码来源:admin_languages_sync.php


示例7: set_html

 function set_html()
 {
     extract(tep_load('defs', 'database', 'languages', 'sessions', 'plugins_front', 'message_stack', 'breadcrumb'));
     $html_start_sub2 = array(DIR_FS_TEMPLATE . 'html_start_sub2.tpl');
     $cPlug->invoke('html_start_sub2');
     for ($i = 0, $j = count($html_start_sub2); $i < $j; $i++) {
         require $html_start_sub2[$i];
     }
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:9,代码来源:html_start_sub2.php


示例8: set_html

 function set_html()
 {
     extract(tep_load('defs', 'plugins_front', 'sessions'));
     $html_start_sub1 = array(DIR_FS_TEMPLATE . 'html_start_sub1.tpl');
     $cPlug->invoke('html_start_sub1');
     for ($i = 0, $j = count($html_start_sub1); $i < $j; $i++) {
         require $html_start_sub1[$i];
     }
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:9,代码来源:html_start_sub1.php


示例9: set_html

 function set_html()
 {
     extract(tep_load('defs', 'database', 'languages', 'plugins_front', 'sessions', 'message_stack', 'breadcrumb'));
     $html_end = array(DIR_FS_TEMPLATE . 'html_end.tpl');
     for ($i = 0, $j = count($html_end); $i < $j; $i++) {
         require $html_end[$i];
     }
     require DIR_FS_INCLUDES . 'application_bottom.php';
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:9,代码来源:html_end.php


示例10: process_options

 function process_options()
 {
     extract(tep_load('defs', 'message_stack'));
     $cStrings =& $this->strings;
     // Prepare the options array for storage
     $options_array = array('max_cols' => isset($_POST['max_cols']) && $_POST['max_cols'] > 0 ? (int) $_POST['max_cols'] : $options_array['max_cols'], 'max_drop' => isset($_POST['max_drop']) && $_POST['max_drop'] > 0 ? (int) $_POST['max_drop'] : $options_array['max_drop'], 'max_width' => isset($_POST['max_width']) && $_POST['max_width'] > 0 ? (int) $_POST['max_width'] : $options_array['max_width'], 'border_width' => isset($_POST['border_width']) ? (int) $_POST['border_width'] : $options_array['border_width'], 'font_size' => isset($_POST['font_size']) && $_POST['font_size'] > 0 ? (int) $_POST['font_size'] : $options_array['font_size'], 'font_pad' => isset($_POST['font_pad']) ? (int) $_POST['font_pad'] : $options_array['font_pad']);
     // Store user options
     $this->save_options($options_array);
     $msg->add_session(sprintf($cStrings->SUCCESS_PLUGIN_RECONFIGURED, $this->title), 'success');
     tep_redirect(tep_href_link($cDefs->script, tep_get_all_get_params('action') . 'action=set_options'));
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:11,代码来源:install.php


示例11: display_links

 function display_links($max_page_links, $parameters = '', $style_class = 'pageResults')
 {
     extract(tep_load('defs'));
     $display_links_string = '';
     if (tep_not_null($parameters) && substr($parameters, -1) != '&') {
         $parameters .= '&';
     }
     // previous button - not displayed on first page
     if ($this->current_page_number == 2) {
         if ($this->current_page_number > 1) {
             $display_links_string .= '<a href="' . tep_href_link($cDefs->script, $parameters, $cDefs->request_type) . '" class="' . $style_class . '" title=" ' . PREVNEXT_TITLE_PREVIOUS_PAGE . ' ">' . PREVNEXT_BUTTON_PREV . '</a>';
         }
     } else {
         if ($this->current_page_number > 1) {
             $display_links_string .= '<a href="' . tep_href_link($cDefs->script, $parameters . $this->page_name . '=' . ($this->current_page_number - 1), $cDefs->request_type) . '" class="' . $style_class . '" title=" ' . PREVNEXT_TITLE_PREVIOUS_PAGE . ' ">' . PREVNEXT_BUTTON_PREV . '</a>';
         }
     }
     // check if number_of_pages > $max_page_links
     $cur_window_num = intval($this->current_page_number / $max_page_links);
     if ($this->current_page_number % $max_page_links) {
         $cur_window_num++;
     }
     $max_window_num = intval($this->number_of_pages / $max_page_links);
     if ($this->number_of_pages % $max_page_links) {
         $max_window_num++;
     }
     // previous window of pages
     if ($cur_window_num > 1) {
         $display_links_string .= '<a href="' . tep_href_link($cDefs->script, $parameters . $this->page_name . '=' . ($cur_window_num - 1) * $max_page_links, $cDefs->request_type) . '" class="' . $style_class . '" title=" ' . sprintf(PREVNEXT_TITLE_PREV_SET_OF_NO_PAGE, $max_page_links) . ' ">...</a>';
     }
     // page nn button
     for ($jump_to_page = 1 + ($cur_window_num - 1) * $max_page_links; $jump_to_page <= $cur_window_num * $max_page_links && $jump_to_page <= $this->number_of_pages; $jump_to_page++) {
         if ($jump_to_page == $this->current_page_number) {
             if ($this->number_of_pages > 1) {
                 $display_links_string .= '<b class="' . $style_class . '">' . $jump_to_page . '</b>';
             } else {
                 $display_links_string .= '<b>' . $jump_to_page . '</b>';
             }
         } elseif ($jump_to_page == 1) {
             $display_links_string .= '<a href="' . tep_href_link($cDefs->script, $parameters, $cDefs->request_type) . '" class="' . $style_class . '" title=" ' . sprintf(PREVNEXT_TITLE_PAGE_NO, $jump_to_page) . ' ">' . $jump_to_page . '</a>';
         } else {
             $display_links_string .= '<a href="' . tep_href_link($cDefs->script, $parameters . $this->page_name . '=' . $jump_to_page, $cDefs->request_type) . '" class="' . $style_class . '" title=" ' . sprintf(PREVNEXT_TITLE_PAGE_NO, $jump_to_page) . ' ">' . $jump_to_page . '</a>';
         }
     }
     // next window of pages
     if ($cur_window_num < $max_window_num) {
         $display_links_string .= '<a href="' . tep_href_link($cDefs->script, $parameters . $this->page_name . '=' . ($cur_window_num * $max_page_links + 1), $cDefs->request_type) . '" class="' . $style_class . '" title=" ' . sprintf(PREVNEXT_TITLE_NEXT_SET_OF_NO_PAGE, $max_page_links) . ' ">...</a>';
     }
     // next button
     if ($this->current_page_number < $this->number_of_pages && $this->number_of_pages != 1) {
         $display_links_string .= '<a href="' . tep_href_link($cDefs->script, $parameters . $this->page_name . '=' . ($this->current_page_number + 1), $cDefs->request_type) . '" class="' . $style_class . '" title=" ' . PREVNEXT_TITLE_NEXT_PAGE . ' ">' . PREVNEXT_BUTTON_NEXT . '</a>';
     }
     return $display_links_string;
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:54,代码来源:split_page_results.php


示例12: objectInfo

 function objectInfo($object_array, $strip = true)
 {
     extract(tep_load('database'));
     foreach ($object_array as $key => $value) {
         if ($strip) {
             $this->{$key} = $db->prepare_input($value);
         } else {
             $this->{$key} = $value;
         }
     }
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:11,代码来源:object_info.php


示例13: set_get_array

 function set_get_array()
 {
     extract(tep_load('defs'));
     $args = func_get_args();
     foreach ($args as $key) {
         if (!isset($_GET[$key])) {
             continue;
         }
         $cDefs->link_params[$key] = $_GET[$key];
     }
     $_GET = $cDefs->link_params;
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:12,代码来源:system_base.php


示例14: get

 function get($id = '')
 {
     extract(tep_load('database'));
     if (empty($id)) {
         return $this->data;
     }
     $check_query = $db->fly("select * from " . TABLE_CUSTOMERS . " where customers_id = '" . (int) $id . "'");
     if (!$db->num_rows($check_query)) {
         return array();
     }
     return $db->fetch_array($check_query);
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:12,代码来源:customers.php


示例15: get_gtext_ids

 function get_gtext_ids($zone)
 {
     extract(tep_load('database'));
     $this->text_ids_array = array();
     $zone_id = $this->get_zone($zone);
     if (!$zone_id) {
         return $this->text_ids_array;
     }
     $gtext_query_raw = "select gtext_id " . TABLE_GTEXT_TO_DISPLAY . " where abstract_zone_id = '" . (int) $zone_id . "' order by sequence_order";
     $this->text_ids_array = $db->query_to_array($gtext_query_raw);
     return $this->text_ids_array;
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:12,代码来源:gtext_front.php


示例16: get_parent_zones

 function get_parent_zones($subzone_id, $enabled_flag = true)
 {
     extract(tep_load('database'));
     $zones_array = $db->query_to_array("select abstract_zone_id from " . TABLE_SUPER_ZONES . " where subzone_id = '" . (int) $subzone_id . "' order by sequence_order");
     if ($enabled_flag) {
         $tmp_array = tep_array_invert_from_element($zones_array, 'abstract_zone_id', 'abstract_zone_id');
         if (!empty($tmp_array)) {
             $zones_array = $db->query_to_array("select abstract_zone_id from " . TABLE_ABSTRACT_ZONES . " where abstract_zone_id in (" . $db->filter(implode(',', $tmp_array)) . ") and status_id='1'");
         }
     }
     return $zones_array;
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:12,代码来源:super_front.php


示例17: set_urls

 function set_urls()
 {
     extract(tep_load('defs', 'database'));
     $seo_query = $db->query("select su.seo_url_get, su.seo_url_org, su.seo_url_priority, su.date_added, sgf.seo_frequency_name from " . TABLE_SEO_URL . " su, " . TABLE_SEO_FREQUENCY . " sgf where sgf.seo_frequency_id=su.seo_frequency_id order by su.seo_url_hits desc");
     while ($seo = $db->fetch_array($seo_query)) {
         $seo['seo_url_get'] = $cDefs->crelpath . $seo['seo_url_get'];
         $this->insert_entry('url');
         $this->insert_closed_entry('loc', htmlspecialchars(utf8_encode($seo['seo_url_get'])));
         $this->insert_closed_entry('lastmod', $seo['date_added']);
         $this->insert_closed_entry('priority', $seo['seo_url_priority']);
         $this->insert_closed_entry('changefreq', $seo['seo_frequency_name']);
         $this->insert_entry('url', true);
     }
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:14,代码来源:xml_google_sitemap.php


示例18: html_end

 function html_end()
 {
     extract(tep_load('defs'));
     $script_name = tep_get_script_name();
     $contents = '';
     $launcher = DIR_FS_PLUGINS . 'common_help.tpl';
     $result = tep_read_contents($launcher, $contents);
     if (!$result) {
         return false;
     }
     $contents_array = array('POPUP_TITLE' => '', 'POPUP_SELECTOR' => 'div.help_page a.heading_help');
     $cDefs->media[] = tep_templates_replace_entities($contents, $contents_array);
     return true;
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:14,代码来源:admin_plugins.php


示例19: html_end

 function html_end()
 {
     extract(tep_load('defs'));
     // Setup help script - default js help is loaded by system_base
     $contents = '';
     $launcher = DIR_FS_PLUGINS . 'common_help.tpl';
     $result = tep_read_contents($launcher, $contents);
     if (!$result) {
         return false;
     }
     $contents_array = array('POPUP_TITLE' => '', 'POPUP_SELECTOR' => 'div.help_page a.heading_help');
     // process js template
     $cDefs->media[] = tep_templates_replace_entities($contents, $contents_array);
     return true;
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:15,代码来源:admin_stub.php


示例20: html_end

 function html_end()
 {
     extract(tep_load('defs'));
     if (!$this->check_scripts()) {
         return false;
     }
     $contents = '';
     $launcher = $this->admin_path . 'back/launcher.tpl';
     $result = tep_read_contents($launcher, $contents);
     if (!$result) {
         return false;
     }
     $contents_array = array('POPUP_TITLE' => '', 'POPUP_SELECTOR' => 'div.help_page a.plugins_help');
     $cDefs->media[] = tep_templates_replace_entities($contents, $contents_array);
     return true;
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:16,代码来源:admin_right_column.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP tep_mail函数代码示例发布时间:2022-05-23
下一篇:
PHP tep_is_writable函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap