wpisalem ten odnosnik to pokazuje mi sie co:
<?
include("functions.php");
include("forum_template.php");
mysql_connect($db_Hostname, $db_UserName, $db_Password) || die("Can't Connect to Database: ".mysql_error());
mysql_select_db($db_Database);
$fSettings = GetSettings();
$gStats = GlobalStats();
$template = ReadTemplate("index");
$pos_start = strpos($template,"<!--%LoopStart%-->")+strlen("<!--%LoopStart%-->");
$pos_end = strpos($template,"<!--%LoopEnd%-->",strpos($template,"<!--%LoopEnd%-->")+strlen("<!--%LoopEnd%-->"));
$pos_end_cat = strpos($template,"<!--%LoopStart%-->",$pos_start);
$cat_loop = substr($template,$pos_start,$pos_end_cat-$pos_start);
$first_loop = substr($template,$pos_start,$pos_end-$pos_start);
$first_part = substr($template,0,$pos_start-strlen("<!--%LoopStart%-->"));
$last_part = substr($template,$pos_end,strlen($template)-$pos_end);
$LastVisit = fHeader();
if (!CheckViewAccess(9999))
UhOh($txt['errBanned']);
$ActiveUsers = GrabActiveList();
$ent["gtTopics"] = $gStats["TotalTopics"];
$ent["fTitleBGColor"] = $fSettings["title_backcolor"];
$ent["fTitleTColor"] = $fSettings["title_textcolor"];
$ent["fCatBGColor"] = $fSettings["cat_backcolor"];
$ent["fCatTColor"] = $fSettings["cat_textcolor"];
$ent["fMsgBGColor1"] = $fSettings["msg_backcolor"];
$ent["fMsgBGColor2"] = $fSettings["msg_backcolor2"];
$ent["fBorderColor"] = $fSettings["bordercolor"];
$ent["CurrentTime"] = FormatDate(time())." at ".FormatTime(time());
$ent["gtPosts"] = $gStats["TotalPosts"];
$ent["gtMembers"] = $gStats["TotalUsers"];
$gStats[NewestMem2] = rawurlencode($gStats[NewestMem]);
$ent["NewestMember"] = "<a href=member.php?Action=viewprofile&username=".rawurlencode($gStats[NewestMem2]).">$gStats[NewestMem]</a>";
$ent["TodayPost"] = $fSettings["ScriptURL"]."/search.php?action=viewtoday";
$ent["LastVisit"] = FormatTime($LastVisit);
$ent["AnnouncementMSG"] = GrabAnnouncement($BoardID);
$ent["NavPath"] = $fSettings["ForumName"];
$ent["UsersActive"] = $ActiveUsers['Users'];
$ent["GuestsActive"] = $ActiveUsers['Guests'];
$ent["LoginBox"] = GrabLoginBox("$fSettings[ScriptURL]/index.php");
print ParseTemp($first_part,$ent);
$query = "SELECT * FROM t_categories Order By cOrder ASC";
$result = mysql_query($query);
if ($row = mysql_fetch_array($result))
{
do
{
$ent["CatName"] = $row["CatName"];
print ParseTemp($cat_loop,$ent);
$query = "select * from t_boards where CatID = ".$row["ID"]." Order By bOrder ASC";
$result2 = mysql_query($query);
if ($row2 = mysql_fetch_array($result2))
{
$pos_start2 = strpos($first_loop,"<!--%LoopStart%-->")+strlen("<!--%LoopStart%-->");
$pos_end2 = strpos($first_loop,"<!--%LoopEnd%-->",$pos_start2);
$second_loop = substr($first_loop,$pos_start2,$pos_end2-$pos_start2);
do
{
$bInfo = $row2;
$query = "select count(*) from t_messages where BoardID = ". $bInfo["ID"] ." AND FirstMessage='yes'";
$result3 = mysql_query($query);
$row3 = mysql_fetch_row($result3);
$row3 ? $bInfo["NumTopics"] = $row3[0] : $bInfo["NumTopics"] = 0;
$query = "select count(*) from t_messages where BoardID = ". $bInfo["ID"];
$result3 = mysql_query($query);
$row3 = mysql_fetch_row($result3);
$row3 ? $bInfo["NumPosts"] = $row3[0] : $bInfo["NumPosts"] = 0;
$query = "select DatePosted,Poster from t_messages where BoardID = ". $bInfo["ID"] ." Order By DatePosted DESC LIMIT 1";
$result3 = mysql_query($query);
$row3 = mysql_fetch_row($result3);
if ($row3)
{
$bInfo["LatestPost"] = FormatDate($row3[0]);
$bInfo["LatestPostTime"] = FormatTime($row3[0]);
$bInfo["LatestPoster"] = $row3[1];
}
else
{
$bInfo["LatestPost"] = "n/a";
$bInfo["LatestPostTime"] = "n/a";
$bInfo["LatestPoster"] = "n/a";
}
$ent["BoardName"] = "<a href=$fSettings[ScriptURL]/viewboard.php?BoardID=$bInfo[ID]>$bInfo[bName]</a>";
//if (!is_read_board($bInfo["ID"],$LastVisit)) {$ent["BoardName"] .= "<img border=0 alt=new src=$fSettings[ImageURL]/new.gif>";}
$ent["BoardDesc"] = $bInfo["bDesc"];
$ent["bNumTopics"] = $bInfo["NumTopics"];
$ent["bNumPosts"] = $bInfo["NumPosts"];
$ent["Moderator"] = GrabModerators($bInfo["ID"]);
$ent["LatestMSGDate"] = $bInfo["LatestPost"];
$ent["LatestMSGTime"] = $bInfo["LatestPostTime"];
$ent["LatestMSGPoster"] = "<a href=$fSettings[ScriptURL]/member.php?Action=viewprofile&username=".rawurlencode($bInfo[LatestPoster]).">$bInfo[LatestPoster]</a>";
if (!is_read_board($bInfo["ID"],$LastVisit))
$ent['FolderIcon'] = "<img border=0 alt="New Reply" src="".$fSettings["ImageURL"]."/newfolder.gif">";
else
$ent['FolderIcon'] = "<img border=0 alt="Topic" src="".$fSettings["ImageURL"]."/folder.gif">";
print ParseTemp($second_loop,$ent);
} while ($row2 = mysql_fetch_array($result2));
}
} while ($row = mysql_fetch_array($result));
}
print ParseTemp($last_part,$ent);
fFooter();
?>
nic nie wiem z Tego a bardzo bym chcial to zrobic bo bylo by to przydatne na stronce a srona jest na serverze Republika wiec chyba to obsluguje . jest tych plikow po rozpakowaniu dos duzo i moze tam cos trzeba po ustawiac :
admin.php
adminfunctions.php
changeme.php
createdb.php
dropdb.php
english_lg.php
footer_header.php
forum_template.php
functions.php
help.php
index.php
member.php
message.php
search.php
template_parser.php
tforum - a w nim A { text-decoration: none } A:Hover { text-decoration:
underline overline } body { text-align: left; left: 0px; top: 0px; clip: rect(
);}
upgrade.php
viewboard.php
viewtopic.php
readme i tu chyba jest opis jak to zrobic ale ja nie znam jezyka i nic z tego Welcome to tForum version b0.915
This is a beta version so you should expect bugs to pop up.
A few new lines have been added to the english_lg.php file. If you're using a translated
version, please make sure to add and translate the new lines as well.
INSTALLATION INSTRUCTIONS:
1. Open up changeme.php
Change $db_Database to the correct database name
Change $db_UserName to the correct username for your database
Change $db_Password to the correct password for your database
$db_Hostname is usually 'localhost' so you shouldn't touch it.
Save it.
2. Rename changeme.php to some other filename.
Don't change the extension. (e.g. newfile.php)
3. Open functions.php, the first line that you see should be: include("changeme.php");
Change changeme.php to whatever your new filename is.
4. Upload all the files as ASCII except for the images and emoticons folder. Upload
those as binary. Do NOT upload dropdb.php, this script is only used to drop all
of the tables created by tForum. So you only need to use it if you mess up with
the installation and too lazy to drop the tables by hand.
5. Run createdb.php from your favorite browser (IE!!

)
6. Run admin.php from your favorite browser and start configuring your forum
(use admin/admin for username and password).
7. Delete createdb.php and dropdb.php (if you uploaded it) from your server.
8. Change the admin password, either using modify profile when you browse the forum,
or using the user management feature.
9. If you're going to use a foreign language on your forum then you need to open up
english_lg.php and edit the Charset and the Basefont variables to whatever needed
for the language you're going to use.
10. READ THE IMPORTANT NOTES!!!
The first thing that you should do is edit your forum settings. The script should be
be able to detect the two most important settings. The Script URL (i.e. where you put
your forum) and the Image URL (where the images are stored).
If you want to add more post icons or usercat icons, just simply put them in the images folder,
and use the admin.php script to add them (just type in the filename). You can also do the same
with the emoticons; they go in the emoticons folder.
You may also want to change the logo.gif in the images folder to your logo.
------------------------------------------------------------
IMPORTANT NOTES:
You should check to make sure that the user who you're assigning moderator status
to actually exist. If the user doesn't exist, anyone can register with the moderator
name listed to gain moderator access to the board.
Do NOT delete ALL of the admins otherwise no one will be able to modify your forum, including yourself!
Only assign admins to VERY VERY trusted people, or he/she could take your admin away. Giving admin
is like giving root access to a unix/linux system, so be very careful!
Don't give moderator status to people using the user management feature unless you want them to have
moderator status for every board that you created (i.e. giving them super moderator status).
When you add a new User Category make sure to edit the board(s) permission to include this new category.
MISC NOTES:
- You should create a category first before creating the boards.
- Seperate multiple normal moderators with a comma.
---------------------------------------------------------------
UPGRADE INSTRUCTIONS - IMPORTANT FOR WEBMASTERS UPGRADING...
This is for upgrading from 0.91p3 to 0.915 ONLY!
Overwrite the old files with the new ones. Your settings should not be changed.
Remember to change the line: include("changeme.php"). Then run upgrade.php from your browser to update the database.
After upgrading, make sure to re-edit all of the boards' read/post/reply permissions.
This permission system has been changed, therefore you MUST re-edit the permission, or
your board will not function properly.
Remember to also check your board settings to change the new settings that have been added.
=======================================================
BUG FIXES and NEW FEATURES for version b0.915
- Unlimited User Levels
- User Level Color Code
- User Level Icon
- Mass Message Deletetion by username
- Guests Active
- Ability to change board/category display order
- Experimental Template System
- Many more minor features
- Fixed Netscape username bug
- Fixed Moderator permission bug
- Fixed Words Filtering problem
- Fixed IP Banning Problem
- Many more minor bug fixes
BUG FIXES for version b0.91p3
- Spelling Errors (How embarassing

)
- More minor bug fixes.
- Welcome to our newest member feature.
- Added $txt['NewestMem'] = "Wecome to our newest member" in english_lg.php.
- Added $txt['selecttime'] = "Time Zone" in english_lg.php.
- Mass Message Lock for archive (CAREFUL!)
- Mass Message Deletion (DOUBLE CAREFUL!)
- Mass User Deletion (TRIPLE CAREFUL!)
- Possible fix for admin-loop problem
BUG FIXES for version b0.91p2
- HUGE SPEED DIFFERENCE!
- Quotation Problems fixed.
- A lot of minor bug fixes.
- Numer of views.
- Special characters for username.
- Added $txt['Views'] = "Views" in english_lg.php.
- Improved coding for the search engine.
BUG FIXES for version b0.91p1
- Lots of BoardID not found solved.
- Bug where a slash in inserted when you use special characters is fixed.
- Bug where cookie is not set properly is fixed (I think)
- All fixes released day by day since 0.91 is included.
BUG FIXES for version b0.91
- Single backslash does not get displayed is fixed (Thanks to Dustfire for pointing this out).
- TopicID not specified after SendEmail error is fixed (Thanks to Pyro for this).
- Not really a bug... Moved the header/footer functions to a seperate file for easy
customization.
BUG FIXES for version b0.9p3
- Removed crypt function call since it doesn't behave the same on every system.
- Fixed bug causing some missing argument messages (again, again!).
- Fixed bug where you cannot change the title background color
BUG FIXES for version b0.9p2
- Removed calls to PHP4 only functions, and replaced them with PHP3+ equivalent.
- Fixed bug causing some missing argument messages (again!).
- Fixed registration date problem.
BUG FIXES for version b0.9p1
- The password was not encrypted after you changed your password via modify
profile.
- Fixed bug causing some missing argument messages.
-------------------------------------------------------------
Copyright © 2000 Toan Huynh
You are not allowed to sell or rent tForum to third parties.nie rozumiem :