Quote:
Originally Posted by ShadyB
I have been trying to use this hack on my site, but I dont know where to place the code...
This is the code for my site, so please help me!
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Designed by ShadyB!
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>ShadyB.co.uk | Members Area</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="../shadybauth.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
<div id="logo">
<h1>Welcome to the members area </h1>
<h2>SHADYB.CO.UK</h2>
</div>
<div id="menu">
<ul>
<li><a href="http://www.shadyb.co.uk/members/home.php" title="">Home</a></li>
<li><a href="http://www.shadyb.co.uk/members/forum.php" title="">Forums</a></li>
<li class="active"><a href="http://www.shadyb.co.uk/members/" title="">Members</a></li>
<li><a href="http://www.shadyb.co.uk/members/downloads/" title="">Downloads</a></li>
<li><a href="http://www.shadyb.co.uk/members/arcade/" title="">Arcade</a></li>
<li><a href="http://www.shadyb.co.uk/members/servers.php" title="">Servers</a></li>
<li><a href="#" title="">Server Sales </a></li>
</ul>
</div>
</div>
<div id="wrapper">
<div id="content">
<div id="sidebar">
<div id="support">
<h2>Status:</h2>
<h3>
You are logged in! </div>
<div id="login" class="boxed">
<h2 class="title">Links</h2>
<p class="title"><a href="userdetail.php">My Details</a><br />
My Files<br />
<a href="../chgpwd.php">Change Password </a><br />
</p>
<div class="content"></div>
</div>
<div id="updates" class="boxed">
<h2 class="title">Recent Updates</h2>
<div class="content">
<ul>
<li>
<h3>Updates</h3>
<p><a href="http://www.shadyb.co.uk/members/home.php">Update details are currently available on the home page! </a></p>
</li>
<li></li>
</ul>
</div>
</div>
</div>
<div id="main">
<div id="welcome" class="post">
<h2 class="title">Welcome To The Members Area!</h2>
<h3 class="date"><span class="month">Updated May 20th 2007 </span><span class="year"></span></h3>
<div class="meta">
<p>ShadyB<a href="#"></a></p>
</div>
<div class="story">
<p><strong>Welcome to the ShadyB.co.uk members area. Here there will soon be private chat rooms, a music player, and games room, and a few more cool features! </strong><em></em></p>
</div>
</div>
<div id="example" class="post">
<h2 class="title">Information</h2>
<h3 class="date"><span class="month">Updated May 20th 2007 </span><span class="year"></span></h3>
<div class="meta">
<p>ShadyB<a href="#"></a></p>
</div>
<div class="story">
<p>This section will be expanded on soon!</p>
<h3>Coming Soon! </h3>
<p>Some features coming soon to the members area!</p>
<ul>
<li>Private Games Room </li>
<li>Private Chat Rooms</li>
<li>Music Player</li>
<li>Some More Things When I Think Lol <br />
</li>
</ul>
</div>
</div>
</div>
</div>
<div style="clear: both;"> </div>
</div>
<div id="footer">
<p id="legal">Copyright © 2007 ShadyB.co.uk </p>
</div>
</body>
</html>
Please could you say where I need to place the code to restrtct the whole page to a certain usergroup? Thankyou in advance!
|
PHP Code:
<?php
$curdir = getcwd ();
chdir('/path/to/your/forums');
require_once('/path/to/your/forums/global.php');
chdir ($curdir);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Designed by ShadyB!
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>ShadyB.co.uk | Members Area</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="../shadybauth.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
<div id="logo">
<h1>Welcome to the members area </h1>
<h2>SHADYB.CO.UK</h2>
</div>
<div id="menu">
<ul>
<li><a href="http://www.shadyb.co.uk/members/home.php" title="">Home</a></li>
<li><a href="http://www.shadyb.co.uk/members/forum.php" title="">Forums</a></li>
<li class="active"><a href="http://www.shadyb.co.uk/members/" title="">Members</a></li>
<li><a href="http://www.shadyb.co.uk/members/downloads/" title="">Downloads</a></li>
<li><a href="http://www.shadyb.co.uk/members/arcade/" title="">Arcade</a></li>
<li><a href="http://www.shadyb.co.uk/members/servers.php" title="">Servers</a></li>
<li><a href="#" title="">Server Sales </a></li>
</ul>
</div>
</div>
<div id="wrapper">
<div id="content">
<div id="sidebar">
<div id="support">
<h2>Status:</h2>
<h3>
You are logged in!
</h3>
<p>
<!-- begin login code -->
<?php
require_once('/path/to/your/login_inc2.php');
?>
<!-- end login code -->
</p>
</div>
<div id="login" class="boxed">
<h2 class="title">Links</h2>
<p class="title"><a href="userdetail.php">My Details</a><br />
My Files<br />
<a href="../chgpwd.php">Change Password </a><br />
</p>
<div class="content"></div>
</div>
<div id="updates" class="boxed">
<h2 class="title">Recent Updates</h2>
<div class="content">
<ul>
<li>
<h3>Updates</h3>
<p><a href="http://www.shadyb.co.uk/members/home.php">Update details are currently available on the home page! </a></p>
</li>
<li></li>
</ul>
</div>
</div>
</div>
<div id="main">
<div id="welcome" class="post">
<h2 class="title">Welcome To The Members Area!</h2>
<h3 class="date"><span class="month">Updated May 20th 2007 </span><span class="year"></span></h3>
<div class="meta">
<p>ShadyB<a href="#"></a></p>
</div>
<div class="story">
<p><strong>Welcome to the ShadyB.co.uk members area. Here there will soon be private chat rooms, a music player, and games room, and a few more cool features! </strong><em></em></p>
</div>
</div>
<div id="example" class="post">
<h2 class="title">Information</h2>
<h3 class="date"><span class="month">Updated May 20th 2007 </span><span class="year"></span></h3>
<div class="meta">
<p>ShadyB<a href="#"></a></p>
</div>
<div class="story">
<p>This section will be expanded on soon!</p>
<h3>Coming Soon! </h3>
<p>Some features coming soon to the members area!</p>
<ul>
<li>Private Games Room </li>
<li>Private Chat Rooms</li>
<li>Music Player</li>
<li>Some More Things When I Think Lol <br />
</li>
</ul>
</div>
</div>
</div>
</div>
<div style="clear: both;"> </div>
</div>
<div id="footer">
<p id="legal">Copyright © 2007 ShadyB.co.uk </p>
</div>
</body>
</html>
Fill in your info where there is
RED.