php forum
php mysql forum
php mysql smarty
 
Topic Options
#315029 - 07/28/07 10:33 PM static pages using board security/content
swebs Offline
User

Registered: 10/13/04
Posts: 29
I use to use the below wrapper for 6.4. I upgraded to 7.2 and now a bunch of my static pages are broke. Is there a new wrapper that I need to use? I have some pages that I used the old wrapper to verify a user was in a specific group to be able to view:

Thanks in advance.

Code:
<?
$pagetitle = "Member List";
$threadspath = "/usr/www/users/boards";
require ("$threadspath/main.inc.php");
   $userob = new user;
       $user = $userob -> authenticate("U_Totalposts,U_Laston,U_Sort,U_Display,U_View,U_PostsPer,U_EReplies,U_TextCols,U_Text
Rows,U_Language,U_TempPass,U_TimeOffset,U_Groups,U_StartPage,U_Picture,U_Name,U_Title,U_Favorites,U_PicWidth,U_PicHeight,U_Ti
meOffset,U_FlatPosts,U_TempRead");
        list($totalposts,$laston,$sort,$display,$view,$postsper,$ereplies,$textcols,$textrows,$ubbt_language,$temppass,$offse
t,$groups,$startpage,$picture,$fullname,$title,$favorites,$picwidth,$picheight,$timeoffset,$flatposts,$read,$CheckUser,$pass,
$sessionid,$stylesheet,$status,$privates,$frontpage,$Uid) = $user;

   $html = new html;
   $html -> send_header($pagetitle,$Cat,0,$user);
// ---------------------
// Grab the tablewrapper
   list($tbopen,$tbclose) = $html -> table_wrapper();

// ***** YOU MAY NEED TO EDIT THE NAME OF THE TEMPLATE ******
        if (!$debug) {
        include("$thispath/templates/$tempstyle/_top.tmpl");
        }
echo "<center><font size=+1>Members</font>";
if ( (ereg ("-8-", $groups)) || (ereg ("-15-",$groups)) ) {
        echo "<br>(Member access)";
} else {
        echo "<br>Public access";
}
....



Top
#315031 - 07/29/07 02:25 AM Re: static pages using board security/content [Re: swebs]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Check the threads 7 forum for mods/addons. There's a 'generic page' mod post that's stickied to the top
_________________________
- Allen wavey
- What Drives You?

Top


Who's Online
0 registered (), 22 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks