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

PHP ew_CloseConn函数代码示例

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

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



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

示例1: Page_Terminate

 function Page_Terminate($url = "")
 {
     global $gsExportFile, $gTmpImages;
     // Page Unload event
     $this->Page_Unload();
     // Global Page Unloaded event (in userfn*.php)
     Page_Unloaded();
     // Export
     global $EW_EXPORT, $sub_category;
     if ($this->CustomExport != "" && $this->CustomExport == $this->Export && array_key_exists($this->CustomExport, $EW_EXPORT)) {
         $sContent = ob_get_contents();
         if ($gsExportFile == "") {
             $gsExportFile = $this->TableVar;
         }
         $class = $EW_EXPORT[$this->CustomExport];
         if (class_exists($class)) {
             $doc = new $class($sub_category);
             $doc->Text = $sContent;
             if ($this->Export == "email") {
                 echo $this->ExportEmail($doc->Text);
             } else {
                 $doc->Export();
             }
             ew_DeleteTmpImages();
             // Delete temp images
             exit;
         }
     }
     $this->Page_Redirecting($url);
     // Close connection
     ew_CloseConn();
     // Go to URL if specified
     if ($url != "") {
         if (!EW_DEBUG_ENABLED && ob_get_length()) {
             ob_end_clean();
         }
         header("Location: " . $url);
     }
     exit;
 }
开发者ID:NaurozAhmad,项目名称:G-Axis,代码行数:40,代码来源:sub_categoryview.php


示例2: Page_Main

 function Page_Main()
 {
     global $conn;
     $GLOBALS["Page"] =& $this;
     $post = ew_StripSlashes($_POST);
     if (count($post) == 0) {
         die("Missing post data.");
     }
     //$sql = $qs->getValue("s");
     $sql = @$post["s"];
     $sql = ew_Decrypt($sql);
     if ($sql == "") {
         die("Missing SQL.");
     }
     $dbid = @$post["d"];
     $conn = ew_Connect($dbid);
     // Global Page Loading event (in userfn*.php)
     Page_Loading();
     if (ob_get_length()) {
         // Clear output
         ob_clean();
     }
     if (strpos($sql, "{filter}") > 0) {
         $filters = "";
         $ar = preg_grep('/^f\\d+$/', array_keys($post));
         foreach ($ar as $key) {
             // Get the filter values (for "IN")
             $filter = ew_Decrypt(@$post[$key]);
             if ($filter != "") {
                 $i = preg_replace('/^f/', '', $key);
                 $value = @$post["v" . $i];
                 if ($value == "") {
                     if ($i > 0) {
                         // Empty parent field
                         //continue; // Allow
                         ew_AddFilter($filters, "1=0");
                     }
                     // Disallow
                     continue;
                 }
                 $arValue = explode(",", $value);
                 $fldtype = intval(@$post["t" . $i]);
                 $flddatatype = ew_FieldDataType($fldtype);
                 $bValidData = TRUE;
                 for ($j = 0, $cnt = count($arValue); $j < $cnt; $j++) {
                     if ($flddatatype == EW_DATATYPE_NUMBER && !is_numeric($arValue[$j])) {
                         $bValidData = FALSE;
                         break;
                     } else {
                         $arValue[$j] = ew_QuotedValue($arValue[$j], $flddatatype, $dbid);
                     }
                 }
                 if ($bValidData) {
                     $filter = str_replace("{filter_value}", implode(",", $arValue), $filter);
                 } else {
                     $filter = "1=0";
                 }
                 $fn = @$post["fn" . $i];
                 if ($fn == "" || !function_exists($fn)) {
                     $fn = "ew_AddFilter";
                 }
                 $fn($filters, $filter);
             }
         }
         $sql = str_replace("{filter}", $filters != "" ? $filters : "1=1", $sql);
     }
     // Get the query value (for "LIKE" or "=")
     $value = ew_AdjustSql(@$_GET["q"], $dbid);
     // Get the query value from querystring
     if ($value == "") {
         $value = ew_AdjustSql(@$post["q"], $dbid);
     }
     // Get the value from post
     if ($value != "") {
         $sql = preg_replace('/LIKE \'(%)?\\{query_value\\}%\'/', ew_Like('\'$1{query_value}%\'', $dbid), $sql);
         $sql = str_replace("{query_value}", $value, $sql);
     }
     // Replace {query_value_n}
     preg_match_all('/\\{query_value_(\\d+)\\}/', $sql, $out);
     $cnt = count($out[0]);
     for ($i = 0; $i < $cnt; $i++) {
         $j = $out[1][$i];
         $v = ew_AdjustSql(@$post["q" . $j], $dbid);
         $sql = str_replace("{query_value_" . $j . "}", $v, $sql);
     }
     $this->GetLookupValues($sql, $dbid);
     $result = ob_get_contents();
     // Global Page Unloaded event (in userfn*.php)
     Page_Unloaded();
     if (ob_get_length()) {
         // Clear output
         ob_clean();
     }
     // Close connection
     ew_CloseConn();
     // Output
     echo $result;
 }
开发者ID:NoSympathy,项目名称:Dashboard,代码行数:98,代码来源:ewlookup12.php


示例3: Page_Terminate

 function Page_Terminate($url = "")
 {
     global $gsExportFile, $gTmpImages;
     // Page Unload event
     $this->Page_Unload();
     // Global Page Unloaded event (in userfn*.php)
     Page_Unloaded();
     // Export
     $this->Page_Redirecting($url);
     // Close connection
     ew_CloseConn();
     // Go to URL if specified
     if ($url != "") {
         if (!EW_DEBUG_ENABLED && ob_get_length()) {
             ob_end_clean();
         }
         header("Location: " . $url);
     }
     exit;
 }
开发者ID:NoSympathy,项目名称:Dashboard,代码行数:20,代码来源:logout.php


示例4: Page_Terminate

 function Page_Terminate($url = "")
 {
     global $gsExportFile, $gTmpImages;
     // Page Unload event
     $this->Page_Unload();
     // Global Page Unloaded event (in userfn*.php)
     Page_Unloaded();
     // Export
     global $EW_EXPORT_REPORT;
     if ($this->Export != "" && array_key_exists($this->Export, $EW_EXPORT_REPORT)) {
         $sContent = ob_get_contents();
         $fn = $EW_EXPORT_REPORT[$this->Export];
         $this->{$fn}($sContent);
     }
     $this->Page_Redirecting($url);
     // Close connection
     ew_CloseConn();
     // Go to URL if specified
     if ($url != "") {
         if (!EW_DEBUG_ENABLED && ob_get_length()) {
             ob_end_clean();
         }
         header("Location: " . $url);
     }
     exit;
 }
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:26,代码来源:ReportePruebareport.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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