rendered paste body<?php/*Define all of the custom messages and functions here. When using HTML, remember to escape the quotes. For example:CODE: <a href="http:www.link.com">link</a>SHOULD BE: <a href=\"http://www.link.com\">link</a>*/// %%%%%%%%%%%%%%% General %%%%%%%%%%%%%%% \\//Location to folder - Without trailing /$domain = "http://www.playsof.com/guides";//Type of article (Guide/tutorial/article)$type = "Guides";// %%%%%%%%%%%%%%% Functions %%%%%%%%%%%%%%% \\// 1 = On, 0 = Off//Search feature$search_on = 1;//Voting feature$voting_on = 1;//Category heirarchy feature$category_nav_on = 1;//Alternate colors when listing articles/* To use this function, you must set your <tr> to inheret $colExample: <tr class=\"$col\">$col will alternate between CSS classes alt1 and alt2Example of actual code as shown in browser:<tr class="alt2">Row1</tr><tr class="alt1">Row2</tr>If feature is turned off, default class will be alt1*/$list_alt_colors = 1;// %%%%%%%%%%%%%%% Messages %%%%%%%%%%%%%%% \\// ##### Common messages ##### \\//User went to page without proper referral$msg_noref = "How did you find this page?";// ##### Show article - index.php ##### \\//Article has no votes$art_novotes = "No votes have been cast yet";//Article body/*Definitions:$id = Article ID$title = Article title$body = Article body$desc = Article description$keywords = Article keywords$link = Article link$user = Article author$cat = Article category$rcount = Number of votes cast$rtotal = Total rating$views = Total views*/$art_body = "<div class=\"g-title\"> $title </div> <div class=\"g-body\"> $body </div> <div class=\"alt2\"> Author: $user </div> <div class=\"alt1\"> Link: <a href=\"$link\" target=\"_blank\">$link</a> </div> <div class=\"alt2\"> Rating: $rating based on $rcount votes </div> <div class=\"alt1\"> Views: $views </div>"; /*Voting code to add more voting numbers (out of 10) add <input type=\"radio\" value=\"6\" name=\"R1\">6<input type=\"radio\" value=\"7\" name=\"R1\">7 etc etc.*/$art_vote = "<div class=\"alt2\"> Vote: <form method=\"POST\" action=\"vote.php\"> <input type=\"radio\" value=\"1\" name=\"R1\">1 <input type=\"radio\" value=\"2\" name=\"R1\">2 <input type=\"radio\" value=\"3\" name=\"R1\">3 <input type=\"radio\" value=\"4\" name=\"R1\">4 <input type=\"radio\" value=\"5\" checked name=\"R1\">5 <input type=\"hidden\" name=\"id\" value=\"$id\"> <input type=\"submit\" value=\"Vote\" name=\"vote\"></form> </div>"; // ##### Display articles by category - index.php ##### \\/*Definitions:$id = Article ID$title = Article title$body = Article body$desc = Article description$keywords = Article keywords$link = Article link$user = Article author$cat = Article category$rcount = Number of votes cast$rtotal = Total rating$views = Total views*///Create the initial table$cat_init_table = "<table width=\"100%\" border=\"0\" cellspacing=\"0\"><tr class=\"alt1\"><td>Title</td><td>Author</td><td>Views</td><td>Category</td></tr>";//List of articles within the category$cat_art_list = " <tr class=\"$col\"> <td width=\"40%\"><a href=\"$domain/index.php?article=$id\" title=\"$title\">$title</a></td> <td width=\"20%\">$user</td> <td width=\"10%\">$views</td> <td width=\"30%\"><a href=\"$domain/index.php?cat=$cat\">$cat</a></td> </tr> ";// ##### Search page - index.php ##### \\/*Definitions:$id = Article ID$title = Article title$body = Article body$desc = Article description$keywords = Article keywords$link = Article link$user = Article author$cat = Article category$rcount = Number of votes cast$rtotal = Total rating$views = Total views*///Create the initial table$sea_init_table = "<table width=\"100%\" border=\"0\" cellspacing=\"0\"><tr class=\"alt1\"><td>Title</td><td>Author</td><td>Views</td><td>Category</td>";//Print out table$sea_art_list = " <tr class=\"$col\"> <td width=\"40%\"><a href=\"$domain/index.php?article=$id\" title=\"$title\">$title</a></td> <td width=\"20%\">$user</td> <td width=\"10%\">$views</td> <td width=\"30%\"><a href=\"$domain/index.php?cat=$cat\">$cat</a></td> </tr> "; // ##### Home page - index.php ##### \\/*Definitions:$id = Article ID$title = Article title$body = Article body$desc = Article description$keywords = Article keywords$link = Article link$user = Article author$cat = Article category$rcount = Number of votes cast$rtotal = Total rating$views = Total views*///Initial table$ini_main_table = "<table width=\"100%\" border=\"0\" cellspacing=\"0\"><tr class=\"alt1\"><td>Title</td><td>Author</td><td>Views</td><td>Category</td></tr>";//Print out main table$main_table = "<tr class=\"$col\"> <td width=\"40%\"><a href=\"$domain/index.php?article=$id\" title=\"$title\">$title</a></td> <td width=\"20%\">$user</td> <td width=\"10%\">$views</td> <td width=\"30%\"><a href=\"$domain/index.php?cat=$cat\">$cat</a></td> </tr>";// ##### Voting page - vote.php ##### \\//Vote successful message$vmsg_suc = "Submitted vote!<br> <a href=\"$domain/index.php?article=$id\">Back to article</a>";//User already voted$vmsg_fai = "You have already voted for this article!<br> <a href=\"$domain/index.php?article=$id\">Back to article</a>";?>