- Stuff
- Friday, July 14th, 2006 at 5:06:33am MDT
- <?php
- );
- $valid = true;
- foreach ($files as $file) {
- //echo $filename;
- if ($file['perms'] != $required_perms)
- $valid = false;
- }
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>1Line Business Directory 1.1 | Step 2 - Configuration</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <script language="JavaScript" type="text/javascript" src="overlib.js"></script>
- <link href="style.css" rel="stylesheet" type="text/css" />
- </head>
- <body bgcolor="#FFFFFF" text="#000000">
- <?php
- function check_perms($path,$perm)
- {
- $pathlocation = "../";
- $trcss = (($configmod != $perm) ? "<img src=\"error.gif\">" : "<img src=\"checkbox_green.gif\">");
- echo "<table width=\"50%\" border=\"0\" cellspacing=\"5\" cellpadding=\"0\" align=\"center\">";
- echo "<tr valign=\"middle\">";
- echo "<td nowrap=\"nowrap\" width=\"170\"><div align=\"left\">";
- echo " <ul>";
- echo " <li class=\"popupCaption\"><b>$path</b></li>";
- echo " </ul>";
- echo "</div></td>";
- echo "<td nowrap=\"nowrap\" width=\"40\"><img src=\"i_01.jpg\" alt=\"Line\" width=\"40\" height=\"30\" /></td>";
- echo "<td width=\"100\"><div align=\"center\">$perm</div></td>";
- echo "<td width=\"100\"><div align=\"center\">$configmod</div></td>";
- echo "<td width=\"50\"><div align=\"center\">$trcss</div></td>";
- echo "</tr>";
- echo "</table>";
- }
- {
- if($configmod == $perm)
- {
- $errmsg = '<div align="center" class="error-message">File or Folder permissions not set correctly.</div>';
- }
- }
- ?>
- <div id="header">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="200" valign="top" ><div align="center"><img src="logo.jpg" alt="1Line Design" width="148" height="92" title="1Line Business Directory 1.1" /></div></td>
- </tr>
- </table>
- </div>
- <br /><table width="50%" border="0" cellspacing="5" cellpadding="0" align="center" class="stage-bg">
- <tr>
- <td width="48"><img src="database.gif" alt="Settings" width="48" height="48" title="Settings" /></td>
- <td width="100%" height="48" class="popupCaption"><table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td><div align="left" class="stage-text">
- Step 1 - Permissions
- </div></td>
- <td> </td>
- </tr>
- <tr>
- <td><div align="left" class="stage-text">Step 2 - Configuration</div></td>
- <td> </td>
- </tr>
- <tr>
- <td><div align="left" class="stage-text">Step 3 - Database Installation</div></td>
- <td> </td>
- </tr>
- </table> </td>
- </tr>
- </table>
- <table width="50%" border="0" align="center" cellpadding="0" cellspacing="5">
- <tr>
- <td><div align="center">
- <?=$errmsg;?></div></td>
- </tr>
- </table>
- <div class="oneline">
- <i><b>
- </b></i>
- <table width="50%" border="0" align="center" cellpadding="0" cellspacing="5">
- <tr>
- <td class="popupCaption"><div align="left">
- <h3>File Permissions: </h3>
- </div></td>
- </tr>
- <tr>
- <td><div align="justify">Please ensure that all of the file permissions are set correctly to the guidelines below, if you do not complete this step you won't be able to go to the next step. When you have set the file permissions please click on refresh to re-validate the permissions. [<a href="index.php"><span class="stage-text">refresh</span></a>] </div></td>
- </tr>
- </table>
- <br />
- <table width="50%" border="0" align="center" cellpadding="0" cellspacing="5" class="stage-bg">
- <tr valign="middle">
- <td nowrap="nowrap" width="170"><div align="left" class="stage-text">File / Folder </div></td>
- <td width="40" nowrap="nowrap"> </td>
- <td width="100"><div align="center" class="stage-text">Needed CHMOD </div></td>
- <td width="100"><div align="center" class="stage-text">Current CHMOD </div></td>
- <td width="50"><div align="center"></div></td>
- </tr>
- </table>
- <br />
- <?php
- check_perms("includes/config.php","0777");
- check_perms("uploadimages/","0777");
- check_perms("templates/","0755");
- check_perms("cache/","0755");
- ?>
- </t>
- <form action="<?php $_SERVER['REQUEST_URI']; ?>" method="post" id="form" name="form">
- <table width="50%" border="0" cellspacing="5" cellpadding="0" align="center">
- <tr>
- <td class="foot-bg" width="100%" height="29"> </td>
- <td height="29">
- <input type="submit" name="send" value="Next Step" title="Go To Step 2" /></td>
- </tr>
- </table>
- </form>
- </div>
- <div id="footer">
- <p align="right">Powered by:<a href="http://www.1LineDesign.com" target="_blank" style="color:#da2e2c" title="1Line Business Directory"><br />
- 1Line Business Directory 1.1</a></p></div>
- <?php
- if($errmsg =='' && $_POST['send'])
- {
- echo '<script language="javascript">
- document.form.action="install.php";
- document.form.submit();
- </script>';
- }
- ?>
- </body>
- </html>
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.