close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


error when protecting page

Thread began 4/28/2010 6:39 pm by rbouie336810 | Last modified 4/29/2010 1:53 pm by Jason Byrnes | 1276 views | 3 replies |


error when protecting page

I get this error when I try to protect a php page from another program that writes the code and files.

I have a program called adobe lightroom that output a page with pictures.
Every thing works fine until i put lines 1 - 6 copied from the protected page.

I get the error:
Warning: require_once(WA_SecurityAssist/Helper_PHP.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\rvb APR 2010\patty engagement\iindex.php on line 1

Fatal error: require_once() [function.require]: Failed opening required 'WA_SecurityAssist/Helper_PHP.php' (include_path='.;C:\php5\pear') in C:\wamp\www\rvb APR 2010\patty engagement\iindex.php on line 1
Otherwise everything works ok

Thanks in advance


header( 'Location: index.html' );

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- saved from url=(0013)about:internet -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="generator" content="Adobe Lightroom"/>
<meta name="Keywords" CONTENT="FotoPlayer, Free Photo Album, Adobe Lightroom, Lightroom plugin, Lightroom template, FLASH, PHP, XML, flash based photo gallery" >
<meta name="description" CONTENT="Photo Album powered by FotoPlayer for Adobe Lightroom v3.1 free trial version plugin" >
<link rel="alternate" type="application/rss+xml" href="rss.php" title="FotoPlayer v3.1 RSS Feed" >

<!-- FotoPlayer code starts -->
<link href="res/styles.css" rel=stylesheet>
<script type="text/javascript" src="res/javascript.js"></script>
<script type="text/vbscript" language="vbscript"> Function CheckFlash(version) on error resume next
CheckFlash= IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & version)) End Function </script>
<!-- FotoPlayer code ends -->

<!-- FotoPlayer Code starts -->
#sitename {font-family:Arial;font-size:medium;text-decoration: none;font-weight:Bold;text-align: center;color:#cccccc;margin-left:10px;}
#headerlinks {color:#CCCCCC;font-size:12px;font-family:Arial;font-weight:normal;text-align:center;}

<!--[if lt IE 7]>
<script type="text/javascript" src="res/unitpngfix.js"></script>

<!-- FotoPlayer Code Ends -->

<body bgcolor="#333333">

<!-- FotoPlayer Menu starts -->
<script type="text/javascript" language="JavaScript">
var headerwidth;
if (false) {
if ("percent" == "pixels")
headerwidth = "100.00"+"px";
headerwidth = "100.00"+"%";
document.write('<table align="center" width="'+headerwidth+'" height="100px" bgcolor="#222222" style="border-bottom:5px solid #888888;" ID="table1">');
document.write('<tr> ');
document.write('<td align="left" width="110" >');
document.write(' <div id="sitename"><img src="res/sitelogo.png" border="0"></div>');
document.write(' <table align="center" ID="table2">');
document.write(' <tr> ');
document.write(' <td width="80"><a id="headerlinks" href="default.html" title="Home">Home</a></td>');
document.write(' <td width="80"><a id="headerlinks" href="index.html" title="Album">Album</a></td>');
document.write(' <td width="80"><a id="headerlinks" href="page3.html" title="Contact">Contact</a></td>');
document.write(' <td width="80"><a id="headerlinks" href="page4.html" title="Links">Links</a></td>');
document.write(' <td width="80"><a id="headerlinks" href="page5.html" title="About Us">About Us</a></td>');
document.write(' </tr>');
document.write(' </table>');
<!-- FotoPlayer Menu Ends -->

<!-- FotoPlayer code starts -->
<div id="flash" align="center">
<script type="text/javascript" language="JavaScript">
var protocol = document.location.protocol;
if (protocol != "file:" && false) window.location.href="index.php";
embedfotoplayer("fotoplayerlite.swf","percent","100.00","100.00","#333333","config.xml","folders.xml","shoppingcart.xml","Y","folder/","",""); </script>
<noscript><br><br><font color="#666666" size="3" face="Arial">Please Enable Javascript in your browser and visit again. <a href="html.php" target="_self"> Click here </a> to view the album in plain HTML version </font></noscript>
<script type="text/javascript" language="JavaScript"> if (!MM_FlashCanPlay) document.write('<br><br><font color="#666666" size="3" face="Arial">Flash plugin not detected. <a href="">Click here <\/a> to install the free Flash plugin and visit again. ');</script>
<script type="text/javascript" language="JavaScript"> if (false) document.write('<a href="html.php" target="_self"> Click here <\/a> to view the album in plain HTML version <\/font>');</script>
<script type="text/javascript" language="JavaScript"> if (checkflashdisabled() == true) document.write('<br><br><font color="#666666" size="3" face="Arial">Flash plugin disabled. Enable Flash plugin/add-ons in IE and visit again. <a href="html.php" target="_self"> Click here <\/a> to view the album in plain HTML version <\/font>');</script>
<!-- FotoPlayer code ends -->

<!-- FotoPlayer code starts -->
<div id="footer" align="center">
<!-- Note: Only licensed users are allowed to remove the below footer. -->
Album was generated using <a href="" target="_blank">FotoPlayer for Lightroom v1.0</a> free trial version.
<script type="text/javascript">
var writeRSS = false; if (writeRSS) document.write("&nbsp;&nbsp;&nbsp;&nbsp;<a href='plugins/rss.php' target='_blank'><img alt='Album RSS Feed' src='plugins/res/rss.gif' border='0'></a>");
<!-- FotoPlayer code ends -->

<!-- FotoPlayer code starts -->
<script type="text/javascript">
if (false) {
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='plugins/" + gaJsHost + "' type='text/javascript'%3E%3C/script%3E"));
<script type="text/javascript">
if (false) {
var pageTracker = _gat._getTracker("UA-000000-0");
<!-- FotoPlayer code ends -->

Sign in to reply to this post

Jason ByrnesWebAssist

are the protected page, and the C:\wamp\www\rvb APR 2010\patty engagement\iindex.php page you copied lines 1 - 6 to in the same directory?

If not the pathto the WA_SecurityAssist/Helper_PHP.php file in the line:
<?php require_once("WA_SecurityAssist/Helper_PHP.php"); ?>

will need to be adjusted so it will look for it in the correct location.

lets say for example that the protected page is at:

then the path to the security assist folder on the C:\wamp\www\rvb APR 2010\patty engagement\iindex.php page needs to move down 2 directory's, then look in UserReg\ for the WA_SecurityAssist/Helper_PHP.php:
<?php require_once("../../UserReg/WA_SecurityAssist/Helper_PHP.php"); ?>

Sign in to reply to this post


error protecting page

Thanks Jason for quick response
I only had to move down 1 level and it works fine

Thanks again

Sign in to reply to this post

Jason ByrnesWebAssist

excellent, glad to hear it is working.

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





Ease of use


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