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

PHP ew_ScriptName函数代码示例

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

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



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

示例1: WriteAuditTrailOnEdit

 function WriteAuditTrailOnEdit(&$rsold, &$rsnew)
 {
     if (!$this->AuditTrailOnEdit) {
         return;
     }
     $table = 'socios';
     // Get key value
     $key = "";
     if ($key != "") {
         $key .= $GLOBALS["EW_COMPOSITE_KEY_SEPARATOR"];
     }
     $key .= $rsold['socio_nro'];
     // Write Audit Trail
     $dt = ew_StdCurrentDateTime();
     $id = ew_ScriptName();
     $usr = CurrentUserID();
     foreach (array_keys($rsnew) as $fldname) {
         if ($this->fields[$fldname]->FldDataType != EW_DATATYPE_BLOB) {
             // Ignore BLOB fields
             if ($this->fields[$fldname]->FldDataType == EW_DATATYPE_DATE) {
                 // DateTime field
                 $modified = ew_FormatDateTime($rsold[$fldname], 0) != ew_FormatDateTime($rsnew[$fldname], 0);
             } else {
                 $modified = !ew_CompareValue($rsold[$fldname], $rsnew[$fldname]);
             }
             if ($modified) {
                 if ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) {
                     // Memo field
                     if (EW_AUDIT_TRAIL_TO_DATABASE) {
                         $oldvalue = $rsold[$fldname];
                         $newvalue = $rsnew[$fldname];
                     } else {
                         $oldvalue = "[MEMO]";
                         $newvalue = "[MEMO]";
                     }
                 } elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) {
                     // XML field
                     $oldvalue = "[XML]";
                     $newvalue = "[XML]";
                 } else {
                     $oldvalue = $rsold[$fldname];
                     $newvalue = $rsnew[$fldname];
                 }
                 ew_WriteAuditTrail("log", $dt, $id, $usr, "U", $table, $fldname, $key, $oldvalue, $newvalue);
             }
         }
     }
 }
开发者ID:scintes,项目名称:sistemas,代码行数:48,代码来源:cciagsociosedit.php


示例2: elseif

<div data-role="page">
	<div data-role="header">
		<a href="mobilemenu.php"><?php 
    echo $Language->Phrase("MobileMenu");
    ?>
</a>
		<h1 id="ewPageTitle"></h1>
	<?php 
    if (IsLoggedIn()) {
        ?>
		<a href="logout.php"><?php 
        echo $Language->Phrase("Logout");
        ?>
</a>
	<?php 
    } elseif (substr(ew_ScriptName(), 0 - strlen("login.php")) != "login.php") {
        ?>
		<a href="login.php"><?php 
        echo $Language->Phrase("Login");
        ?>
</a>
	<?php 
    }
    ?>
	</div>
<?php 
}
if (@(!$gbSkipHeaderFooter)) {
    ?>
<div class="ewLayout">
<?php 
开发者ID:ahmarmahmood,项目名称:top,代码行数:31,代码来源:header.php


示例3: WriteAuditTrailOnLogout

 function WriteAuditTrailOnLogout($usr)
 {
     global $Language;
     ew_WriteAuditTrail("log", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $Language->Phrase("AuditTrailLogout"), ew_CurrentUserIP(), "", "", "", "");
 }
开发者ID:scintes,项目名称:sistemas,代码行数:5,代码来源:logout.php


示例4: WriteAuditTrailDummy

 function WriteAuditTrailDummy($typ)
 {
     $table = 'deudas';
     $usr = CurrentUserID();
     ew_WriteAuditTrail("log", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, "", "", "", "");
 }
开发者ID:scintes,项目名称:sistemas,代码行数:6,代码来源:cciagdeudaslist.php


示例5: WriteAuditTrailOnAdd

 function WriteAuditTrailOnAdd(&$rs)
 {
     if (!$this->AuditTrailOnAdd) {
         return;
     }
     $table = 'montos';
     // Get key value
     $key = "";
     if ($key != "") {
         $key .= $GLOBALS["EW_COMPOSITE_KEY_SEPARATOR"];
     }
     $key .= $rs['id'];
     // Write Audit Trail
     $dt = ew_StdCurrentDateTime();
     $id = ew_ScriptName();
     $usr = CurrentUserID();
     foreach (array_keys($rs) as $fldname) {
         if ($this->fields[$fldname]->FldDataType != EW_DATATYPE_BLOB) {
             // Ignore BLOB fields
             if ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) {
                 if (EW_AUDIT_TRAIL_TO_DATABASE) {
                     $newvalue = $rs[$fldname];
                 } else {
                     $newvalue = "[MEMO]";
                 }
                 // Memo Field
             } elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) {
                 $newvalue = "[XML]";
                 // XML Field
             } else {
                 $newvalue = $rs[$fldname];
             }
             ew_WriteAuditTrail("log", $dt, $id, $usr, "A", $table, $fldname, $key, "", $newvalue);
         }
     }
 }
开发者ID:scintes,项目名称:sistemas,代码行数:36,代码来源:cciag_montosadd.php


示例6: pathinfo

<?php

$pathinfo = pathinfo(ew_ScriptName());
$script_name = $pathinfo['basename'];
?>
<table width="100%" border="0" cellspacing="0" cellpadding="2" class="menutable">
	<tr>
<?php 
if (IsLoggedIn()) {
    ?>
	<td><span class="phpmaker"><a href="categorieslist.php?cmd=resetall"<?php 
    echo $script_name == "categorieslist.php" || $script_name == "categoriesedit.php" ? ' class="selected"' : '';
    ?>
>敏感关键字</a></span></td>
<?php 
}
if (IsLoggedIn()) {
    ?>
	<td><span class="phpmaker"><a href="hoturlslist.php?cmd=resetall"<?php 
    echo $script_name == "hoturlslist.php" || $script_name == "hoturlsview.php" || $script_name == "hoturlsedit.php" ? ' class="selected"' : '';
    ?>
>命中数据</a></span></td>
<?php 
}
if (IsLoggedIn()) {
    ?>
	<td><span class="phpmaker"><a href="postslist.php?cmd=resetall"<?php 
    echo $script_name == "postslist.php" || $script_name == "postsview.php" || $script_name == "postsedit.php" ? ' class="selected"' : '';
    ?>
>泛控数据</a></span></td>
<?php 
开发者ID:BGCX261,项目名称:zhss-svn-to-git,代码行数:31,代码来源:ewmenu.php


示例7: ew_UploadPathEx

function ew_UploadPathEx($PhyPath, $DestPath)
{
    if ($PhyPath) {
        $Path = ew_PathCombine(ew_AppRoot(), str_replace("/", EW_PATH_DELIMITER, $DestPath), TRUE);
    } else {
        $Path = ew_ScriptName();
        $Path = substr($Path, 0, strrpos($Path, "/"));
        $Path = ew_PathCombine($Path, EW_ROOT_RELATIVE_PATH, FALSE);
        $Path = ew_PathCombine(ew_IncludeTrailingDelimiter($Path, FALSE), $DestPath, FALSE);
    }
    return ew_IncludeTrailingDelimiter($Path, $PhyPath);
}
开发者ID:Razinsky,项目名称:echaude-com,代码行数:12,代码来源:phpfn8.php


示例8: ew_FullUrl

function ew_FullUrl()
{
    $sUrl = "http";
    if (ew_ServerVar("HTTPS") != "" && ew_ServerVar("HTTPS") != "off") {
        $sUrl .= "s";
    }
    $sUrl .= "://";
    $sUrl .= ew_ServerVar("SERVER_NAME") . ew_ScriptName();
    return $sUrl;
}
开发者ID:BGCX261,项目名称:zhss-svn-to-git,代码行数:10,代码来源:phpfn50.php


示例9: ew_CurrentUrl

function ew_CurrentUrl()
{
    $s = ew_ScriptName();
    $q = ew_ServerVar("QUERY_STRING");
    if ($q != "") {
        $s .= "?" . $q;
    }
    return $s;
}
开发者ID:NoSympathy,项目名称:Dashboard,代码行数:9,代码来源:ewshared12.php


示例10: WriteAuditTrailOnDelete

 function WriteAuditTrailOnDelete(&$rs)
 {
     if (!$this->AuditTrailOnDelete) {
         return;
     }
     $table = 'usuario';
     // Get key value
     $key = "";
     if ($key != "") {
         $key .= $GLOBALS["EW_COMPOSITE_KEY_SEPARATOR"];
     }
     $key .= $rs['id'];
     // Write Audit Trail
     $dt = ew_StdCurrentDateTime();
     $id = ew_ScriptName();
     $curUser = CurrentUserID();
     foreach (array_keys($rs) as $fldname) {
         if (array_key_exists($fldname, $this->fields) && $this->fields[$fldname]->FldDataType != EW_DATATYPE_BLOB) {
             // Ignore BLOB fields
             if ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) {
                 if (EW_AUDIT_TRAIL_TO_DATABASE) {
                     $oldvalue = $rs[$fldname];
                 } else {
                     $oldvalue = "[MEMO]";
                 }
                 // Memo field
             } elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) {
                 $oldvalue = "[XML]";
                 // XML field
             } else {
                 $oldvalue = $rs[$fldname];
             }
             ew_WriteAuditTrail("log", $dt, $id, $curUser, "D", $table, $fldname, $key, $oldvalue, "");
         }
     }
 }
开发者ID:scintes,项目名称:sistemas,代码行数:36,代码来源:cciagusuariodelete.php


示例11: AutoLogin

 function AutoLogin()
 {
     if (@$_COOKIE[EW_PROJECT_NAME]['AutoLogin'] == "autologin") {
         $usr = ew_Decrypt(@$_COOKIE[EW_PROJECT_NAME]['Username']);
         $pwd = ew_Decrypt(@$_COOKIE[EW_PROJECT_NAME]['Password']);
         $AutoLogin = $this->ValidateUser($usr, $pwd, TRUE);
         if ($AutoLogin) {
             ew_WriteAuditTrail("log", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $GLOBALS["Language"]->Phrase("AuditTrailAutoLogin"), ew_CurrentUserIP(), "", "", "", "");
         }
     } else {
         $AutoLogin = FALSE;
     }
     return $AutoLogin;
 }
开发者ID:scintes,项目名称:sistemas,代码行数:14,代码来源:cciag_phpfn11.php


示例12: ew_FullUrl

function ew_FullUrl()
{
    $sUrl = "http";
    $bSSL = ew_ServerVar("HTTPS") != "" && ew_ServerVar("HTTPS") != "off";
    $sPort = strval(ew_ServerVar("SERVER_PORT"));
    $defPort = $bSSL ? "443" : "80";
    $sPort = $sPort == $defPort ? "" : ":{$sPort}";
    $sUrl .= $bSSL ? "s" : "";
    $sUrl .= "://";
    $sUrl .= ew_ServerVar("SERVER_NAME") . $sPort . ew_ScriptName();
    return $sUrl;
}
开发者ID:airfox7412,项目名称:ps01,代码行数:12,代码来源:phpfn6.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP ew_SearchString函数代码示例发布时间:2022-05-15
下一篇:
PHP ew_SameStr函数代码示例发布时间: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