<?php ################################################################################################# # # project : Logix Classifieds # filename : members_ads.php # last modified by : # e-mail : support@phplogix.com # purpose : show ads of a member # ################################################################################################# if (!strpos($_SERVER['PHP_SELF'], 'members_ads.php') === false) { die("YOU MAY NOT ACCESS THIS FILE DIRECTLY"); } if (function_exists("sales_checkuser")) { $is_sales_user = sales_checkuser($userid); } if ($uid && $uname && $show_members_ads && !($sales_option && $sales_members && !$is_sales_user)) { echo "<table align=\"center\" cellspacing=\"0\" cellpadding=\"3\" width=\"100%\" border=\"0\">\n"; echo "<tr><td><div class=\"smallleft\">\n"; echo "{$admy_member}{$uname}\n"; echo "</div></td>\n"; echo "</tr></table>\n"; $result = mysql_query("SELECT * FROM " . $prefix . "ads WHERE userid={$uid} {$approval} ORDER by {$ad_sort}") or died(mysql_error()); echo "<table align=\"center\" cellspacing=\"1\" cellpadding=\"3\" width=\"100%\" border=\"0\">\n"; while ($db = mysql_fetch_array($result)) { $result2 = mysql_query("SELECT * FROM " . $prefix . "userdata WHERE id={$db['userid']}") or died("Record NOT Found"); $dbu = mysql_fetch_array($result2); $result3 = mysql_query("SELECT * FROM " . $prefix . "adcat WHERE id={$db['catid']}") or died("Record NOT Found"); $dbc = mysql_fetch_array($result3); include "classified_ads.inc.php";
# This program is distributed in the hope that it will be useful, but # # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. # # # # You should have received a copy of the GNU General Public License along with this # # program; if not, write to: # # # # Free Software Foundation, Inc., # # 59 Temple Place, Suite 330, # # Boston, MA 02111-1307 USA # ############################################################################################## # Include Configs & Variables ################################################################################################# require "library.php"; if (function_exists("sales_checkuser")) { $is_sales_user = sales_checkuser($_SESSION[suserid]); } # The Head-Section ################################################################################################# include $HEADER; # The Menu-Section ################################################################################################# include "menu.php"; # The Left-Side-Section ################################################################################################# $tmp_width = $table_width + 2 * $table_width_side + 10; echo "<table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"{$tmp_width}\">\n"; echo "<tr>\n"; echo "<td valign=\"top\" align=\"right\">\n"; include "left.inc.php"; echo "</td>\n";