UBB.Dev
Posted By: swebs static pages using board security/content - 07/29/2007 5:33 AM
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";
}
....

Check the threads 7 forum for mods/addons. There's a 'generic page' mod post that's stickied to the top
© UBB.Developers