0

ok guys
i have a litle peace of script
that needs some modefying

the page was original that you must ad you admin pass to accept a new fusker upload!
but becouse i intregrate it in a new system it can be done after you see the images
so only a post button without the admin pass:

the new membersystem is already there see first lines
so who can figer out what i need to chance so i can delete that pass part and only have a post button


thanks

<?php 
//------------------------------------------------------------
// RESTRICT ACCESS TO PAGE
//------------------------------------------------------------
require_once('../web.config.php'); require_once(ROOT_PATH.'global.php');
$auth_roles = array('owner','superadmin','administrator','member','user');// << add roles here
require_once(ROOT_PATH.'user/controls/authorization/auth.php');
include_once('../config.php');
include_once('../includes/functions.php');

$url=trim(htmlspecialchars($_POST['url']));
$added_by=trim(htmlspecialchars($_POST['name']));
$tags=trim(htmlspecialchars($_POST['tags']));
$comfirm=$_POST['comfirm'];
$comfirm_admin=trim($_POST['comfirm_admin']);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Adding Fusker |<?php print"$siteTitle"; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="imagetoolbar" content="no">

<link rel="stylesheet" type="text/css" href="<?php print"$common_path/style.css"; ?>">
</head>
<body style="margin:0px; padding:0px;" bgcolor="#235FB5">
<table width="980" border="0" cellpadding="0" cellspacing="0">
<tr>
	<td><?php
	include ('../includes/header.php');
	?></td>
</tr>
<tr>
	<td align="center">
		<table width="940" bgcolor="#eeeeee" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td style="padding:10px 10px 10px 20px; background:url('<?php print"$common_path/images/side_bg.jpg"; ?>'); background-repeat:repeat-y;">
				<div style="font-family:'Trebuchet MS'; font-size:14pt; color:rgb(18,93,169);">Adding Fusker</div>
				<div style="font-family:'Trebuchet MS'; font-size:9pt; color:rgb(76,85,95); padding:20px;">
					<?php
					$check_exist="select * from fusker_links where link='$url'";
					$check_exist_result=mysql_query($check_exist);
					if (mysql_num_rows($check_exist_result)>=1) {
						print "The FUSKER URL Already Exist.<br>Try with new one.<br>Thanks";
					} else if(($url=="") || (!eregi("^(http|ftp)+:(//)?", $url))) {
						print "The FUSKER URL is Missing.<br>Please Enter the URL to FUSKER.<br>Thanks";
					} else {
						
						google_ads($default_google_ad_client, "728", "90", "728x90_as", "text", $default_ad_channel, "eeeeee", "eeeeee", "ff0000", "4c555f", "4c555f");
						
						print "<br>";
						print"<B>Fusker URL:</B> $url<hr>";

						if ($comfirm=="1") {
							$today_date=date('F j, Y');
							
							//set admin direct confirmation
							if($comfirm_admin==$adminComfirmPass){
								$approved=1;
							} else {
								$approved=0;
							}

							//set addedby
							if($added_by==""){
								$added_by="anonymous";
							}

							$add_query=mysql_query("insert into fusker_links (link, added_date, added_by, tags, approved, viewed) values ('$url', '$today_date', '$added_by', '$tags', '$approved', '1')");
							
							if ($add_query==true) {
								//mail('info@fashionsansar.com','Fusker Link Added','URL:'.$url);
								print" [ <font color=\"#ff0000\">Link Added</font> ]";
							} else {
								print" [ <font color=\"#ff0000\">Error Adding Link</font> ]";
							}
						} else {
					?>
							<form name="confirm_add" method="POST" action="do_add_fusker.php" style="margin:0px;" onSubmit="post">
							<table style="font-family:Trebuchet MS; font-size:9pt; color:#4c555f;" border="0" cellpadding="2" cellspacing="0">
							</table>
							</form>
					<?php
						}

						print"<hr>";
						print"<div style=\"color:#ff0000; padding-bottom:10px;\"><U><B>FUSKER PREVIEW BELOW</B></U></div>";

						echo show_fusker_gallery_images($url, $max_fusker_images, $common_path);
					}
					?>
				</div>
			</td>
		</tr>
		</table>
	</td>
</tr>
<tr>
	<td><?php
	include ('../includes/footer.php');
	?></td>
</tr>
</table>
</body>
</html>
2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by cobrax
0

its not realy a error but i want to post with this page right without filling in a pass

0

no one else? i need to chance this page so i can further........please help

Edited by cobrax: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.