close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

wa_auth_rule error

Thread began 8/24/2009 5:12 pm by 4egidio363291 | Last modified 8/25/2009 5:00 pm by Jason Byrnes | 2732 views | 5 replies |

4egidio363291

wa_auth_rule error

I am getting the following error, can someone help. I'll attach the page. Thanks

Fatal error: Call to undefined function: wa_auth_rulepasses() in /homepages/44/d232789399/htdocs/buyorsellvideos/buy/games/NintendoDS/buynintendodsgames.php on line 147

Attached Files
buynintendodsgames.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

You page is missing the code to attach the security assist files.

Add the following at line 2:
<?php require_once( "../../../WA_SecurityAssist/Helper_PHP.php" ); ?>

Sign in to reply to this post

4egidio363291

New error

I did what you said now I am getting a new error:

Parse error: syntax error, unexpected ')', expecting T_VARIABLE or '$' in /homepages/44/d232789399/htdocs/buyorsellvideos/buy/games/NintendoDS/buynintendodsgames.php on line 40

I attached the page again.

Attached Files
buynintendodsgames.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

Line 40 is:
if (isset()) {

Line 39 - 47:
colname_welcome = "-1";
if (isset()) {
$colname_welcome = (get_magic_quotes_gpc()) ? : addslashes();
}
mysql_select_db($database_connDB, $connDB);
$query_welcome = sprintf("SELECT * FROM Users WHERE UserID = %s", GetSQLValueString($colname_welcome, "int"));
$welcome = mysql_query($query_welcome, $connDB) or die(mysql_error());
$row_welcome = mysql_fetch_assoc($welcome);
$totalRows_welcome = mysql_num_rows($welcome);

is the code for the welcome recordset. The problem is that there no run time bvalue given to the variable you have created in the recordset.

Double click the recordset to edit it and fix the variable

Sign in to reply to this post

4egidio363291

update

I changed this:
colname_welcome = "-1";
if (isset()) {
$colname_welcome = (get_magic_quotes_gpc()) ? : addslashes();
}

To this:
$colname_welcome = "-1";
if (isset($_SESSION['UID']) || $_SESSION['UID'] != '') {
$colname_welcome = (get_magic_quotes_gpc()) ? $_SESSION['UID'] : addslashes($_SESSION['UID']);

I had this working on a another page and just copied it and pasted it. It is working now. Is this ok?

Sign in to reply to this post

Jason ByrnesWebAssist

Sure, looks like it should work.

Sign in to reply to this post

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...