close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Fatal Error: undefeined function WA_Auth_RulePasses

Thread began 8/06/2010 10:30 am by elevy388997 | Last modified 1/08/2011 9:42 pm by elevy388997 | 2292 views | 5 replies

elevy388997Beta Tester

You guys tell me this almost everytime... i should know by now to include this stuff :)

I am testing the site on my local testing server and the error ISN'T there on my sitesculptor_template php page, but when I go to any page that uses it, the error is there instead of the login area.

<?php require_once("WA_ValidationToolkit/WAVT_Scripts_PHP.php"); ?>
<?php require_once("WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php"); ?>
<?php
if (isset($_POST["Simplelogin_submit"])) {
$WAFV_Redirect = "sitesculptor_template.dwt.php?invalid=true";
$_SESSION['WAVT_sitesculptortemplatedwt_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateEM((isset($_POST["fieldset_group_Email_address"])?$_POST["fieldset_group_Email_address"]:"") . "",true,1);
$WAFV_Errors .= WAValidateRQ((isset($_POST["fieldset_group_Password"])?$_POST["fieldset_group_Password"]:"") . "",true,2);

if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"sitesculptortemplatedwt");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/sitesculptor_template.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>About</title>
<!-- InstanceEndEditable -->
<style type="text/css" media="all">
<!--
@import url("sitesculptor_assets/content/css/screen.css");
-->
</style>
<style type="text/css" media="print">
<!--
@import url("sitesculptor_assets/content/css/print.css");
-->
</style>
<!-- InstanceBeginEditable name="head" --><style type="text/css">
</style>
<!-- InstanceEndEditable -->
<style type="text/css" media="all">
<!--
@import url("CSSMenuWriter/cssmw_content/menu.css");
-->
</style>
<!-- InstanceBeginEditable name="menu_ie" -->
<!--[if lte IE 6]>
<style type="text/css" media="all">
@import url("../CSSMenuWriter/cssmw_content/menu_ie.css");
</style>
<![endif]-->
<!-- InstanceEndEditable -->
<script type="text/javascript" src="CSSMenuWriter/cssmw_content/menu.js"></script>
<style type="text/css" media="all">
<!--
@import url("sitesculptor_css/mystyles.css");
-->
</style>

</head>

<body>

<div id="outerWrapper">
<div id="header">
<table width="100%" border="0">
<tr>
<td width="31%"><img src="sitesculptor_assets/content/images/Logo2.png" width="275" height="95" alt="Logo" /></td>
<td width="30%">&nbsp;</td>
<td width="39%" valign="bottom">&nbsp;
<?php if(WA_Auth_RulePasses("Logged in to users")){ // Begin Show Region ?>
<table width="100%" border="0">
<tr>
<td width="62%"><h2>Welcome <?php echo $_SESSION['UserID']; ?> (<a href="users_LogOut.php">Logout</a>)</h2></td>
<td width="14%"><h2><a href="users_Profile.php">Profile</a></h2></td>
<td width="24%"><h2>Order History</h2></td>
</tr>
</table>
<br />
<?php } // End Show Region ?>
<?php if(!WA_Auth_RulePasses("Logged in to users")){ // Begin Show Region ?>
<form class="Levy4u_DottedSimpleLogin" id="Simplelogin_Levy_u_DottedSimpleLogin" name="Simplelogin_Levy_u_DottedSimpleLogin" method="post" action="users_LogIn.php">
<!--
WebAssist CSS Form Builder - Form v1
CC: Log in
CP: Simple log in
TC: Levy4u
TP: Dotted Simple Login
-->
<ul class="Levy4u_DottedSimpleLogin">
<li>
<fieldset class="Levy4u_DottedSimpleLogin" id="Log_in">
<legend class="groupHeader">Log in</legend>
<ul class="formList">
<li class="formItem"></li>
<li class="formItem">
<div class="formGroup">
<div class="lineGroup">
<div class="columnGroup">
<label for="Log_in_group_Email_address" class="sublabel" > Email address<span class="requiredIndicator">&nbsp;*</span></label>
<div class="errorGroup">
<div class="fieldPair">
<div class="fieldGroup"> <span id="Log_in_group_Email_address_Spry">
<input id="Log_in_group_Email_address" name="Log_in_group_Email_address" type="text" value="<?php echo((isset($_GET["invalid"])?ValidatedField("","Log_in_group_Email_address"):"")); ?>" class="formTextfield_Small" tabindex="1" onblur="hideServerError('Log_in_group_Email_address_ServerError');"/>
<span class="textfieldInvalidFormatMsg">Invalid format.</span><span class="textfieldRequiredMsg">Please enter your email address.</span> </span>
<?php
if (ValidatedField('usersLogIn','usersLogIn')) {
if ((strpos((",".ValidatedField("usersLogIn","usersLogIn").","), "," . "1" . ",") !== false || "1" == "")) {
if (!(false)) {
?>
<span class="serverInvalidState" id="Log_in_group_Email_address_ServerError">Please enter your email address.</span>
<?php //WAFV_Conditional ../users_LogIn.php usersLogIn(1:)
}
}
}?>
</div>
</div>
</div>
</div>
<div class="wideColumnGroup">
<label for="Log_in_group_Password" class="sublabel" > Password<span class="requiredIndicator">&nbsp;*</span></label>
<div class="errorGroup">
<div class="fieldPair">
<div class="fieldGroup"> <span id="Log_in_group_Password_Spry">
<input id="Log_in_group_Password" name="Log_in_group_Password" type="password" value="<?php echo((isset($_GET["invalid"])?ValidatedField("","Log_in_group_Password"):"")); ?>" class="formPasswordfield_Small" tabindex="2" onblur="hideServerError('Log_in_group_Password_ServerError');"/>
<span class="passwordRequiredMsg"> </span> </span>
<?php
if (ValidatedField('usersLogIn','usersLogIn')) {
if ((strpos((",".ValidatedField("usersLogIn","usersLogIn").","), "," . "2" . ",") !== false || "2" == "")) {
if (!(false)) {
?>
<span class="serverInvalidState" id="Log_in_group_Password_ServerError"> </span>
<?php //WAFV_Conditional ../users_LogIn.php usersLogIn(2:)
}
}
}?>
</div>
</div>
</div>
</div>
</div>
</div>
</li>
<li class="formItem">
<h2><span class="buttonFieldGroup" >
<input class="formButton" name="Simplelogin_submit" type="submit" id="Simplelogin_submit" value="Log in" onclick="clearAllServerErrors('Simplelogin_Levy4u_DottedSimpleLogin')" tabindex="2" />
</span><a href="users_Registration.php">Register</a></h2>
</li>
</ul>
</fieldset>
</li>
</ul>
</form>
<?php } // End Show Region ?></td>
</tr>
</table>
</div>
<div id="topImage"><!-- InstanceBeginEditable name="TopImage" -->TopImage<!-- InstanceEndEditable --></div>
<div id="topNavigation"><?php require_once("CSSMenuWriter/cssmw_content/menu.php"); ?></div>
<div id="contentWrapper">
<div id="content"><!-- InstanceBeginEditable name="content" -->&nbsp;<!-- InstanceEndEditable --></div>
</div>
<div id="footer"><!-- InstanceBeginEditable name="Footer" -->
<table width="100%" border="0">
<tr>
<td>Levy4u &copy; 2010 - <a href="#">Store</a></td>
<td>&nbsp;</td>
<td align="right"><a href="#">Contact</a></td>
</tr>
</table>
<!-- InstanceEndEditable --></div>
</div>
<script type="text/javascript">
<!--
var Log_in_group_Email_address_Spry = new Spry.Widget.ValidationTextField("Log_in_group_Email_address_Spry", "email",{validateOn:["blur"]});
var Log_in_group_Password_Spry = new Spry.Widget.ValidationPassword("Log_in_group_Password_Spry", { isRequired:true , validateOn:["blur"]});
//-->
</script>
</body>
<!-- InstanceEnd --></html>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...