Location: PHPKode > projects > rapidshareBot > rapidsharebot/admin.php
<?php
include('functions.inc.php');
if ($conf['adm_user'] == '' || $conf['adm_password'] == '') {
header("Location: setup.php");
exit;
}

$ping_url = rtrim('http://' . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF'], 'admin.php');
session_start();

///// Include all functions /////



///// Login and Logout functions ///////

if (isset($_GET['logout']))logout('loginidadmin2121');

authorize('loginidadmin2121');

/////////////////////////////////
if(isset($_POST['submit_post'])){
$site_name = $_POST['site_name'];
if($site_name == '')die( "Site's name must not blank." );
$email_id = $_POST['email_id'];
if($email_id == '')die( "Email field must not blank.");
$sanitized = filter_var($email_id, FILTER_SANITIZE_EMAIL);
if (!filter_var($sanitized, FILTER_VALIDATE_EMAIL)) {
    die( "Invalid email id, please go back and put your current valid email id.") ;
}
$cpalead_meta_tag = $_POST['cpalead_meta_tag'];
$search_top_ad = $_POST['search_top_ad'];
$search_bottom_ad = $_POST['search_bottom_ad'];
$search_right_ad = $_POST['search_right_ad'];
$content_top_ad = $_POST['content_top_ad'];
$analytics_code = $_POST['analytics_code'];
$content_lock_code = $_POST['content_lock_code'];

$pingomatic_url = "http://pingomatic.com/ping/?title=" . $site_name . "&blogurl=" . $ping_url . "&rssurl=" . $ping_url . "feed.php&chk_weblogscom=on&chk_blogs=on&chk_technorati=on&chk_feedburner=on&chk_syndic8=on&chk_newsgator=on&chk_feedster=on&chk_myyahoo=on&chk_pubsubcom=on&chk_blogdigger=on&chk_blogrolling=on&chk_blogstreet=on&chk_moreover=on&chk_weblogalot=on&chk_icerocket=on&chk_audioweblogs=on&chk_rubhub=on&chk_geourl=on&chk_a2b=on&chk_blogshares=on";

$html = fetch_url($pingomatic_url, '');

$data = serialize( $_POST );
$fp = @fopen("config/config.db", 'w');
  if ($fp) {
    fwrite($fp, $data, strlen($data));
	//echo $ping_url;
	echo '<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />';
	echo "<span style=\"font-weight: bold;\" class='message'>Settings updated.</span> <span class=\"warn\">Pinged url - </span>$ping_url.  <a href='javascript:history.go(-1);' class='message'>Go Back.</a>";

    return true;
  } else {
    return false;
  }

exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Update settings.</title>
	<link href="style.css" rel="stylesheet">
	<link rel="shortcut icon" href="favicon.ico">
	
</head>
<body>
	  <A href="?logout=1" class='t' style="float:right;" title="Log out.">Log out.</A>

<h1 id="logo">
	<a href="./" target="_blank"><img src="img/logo.jpg" border="0" title="free download <?php echo $_SERVER['SERVER_NAME']; ?>"></a>
</h1>

<p style="text-align: center">Update your application's settings carefully.</p>

<h1>Update settings.</h1>
<p>
<form method="post">
<table id="reg_form">
<tr><th><label for="id_name">Site name:<b style="color:red;font-size:15px;">*</b>:</label></th><td><input type="text" name="site_name" id="site_name" value="<?php echo $site_name; ?>"></td></tr>


<tr style="" id="eml"><th><label for="id_name">Your Email Id<b style="color:red;font-size:15px;">*</b>:</label></th><td><input type="text" name="email_id" id="email" value="<?php echo $email_id; ?>">&nbsp;&nbsp;<i class="message"><b style="color:red;font-size:15px;">*</b>Will only use to reset your password if required (no spam).</i></td><br></tr>

<tr style="" id="cpalead_signup_link"><th><label for="id_name"></label></th><td>Now signup to a new cpalead publisher account <a href="http://www.cpalead.com/get-started.php?ref=147033" title="Otherwise user will be deleted." target="_blank">here <b style="color:red;font-size:13px;">(Must register with this link)</b></a>,</td></tr>

<tr style="" id="cpalead_signup_url"><th><label for="id_name"></label></th><td>using this url (if required)&nbsp;&nbsp;<input type="text" value="<?php echo $ping_url; ?>" id="your_url" size="80" onclick="select();" alt="Copy this url and paste on cpalead registration form." style="color:green;border-width:0px;background: #f3f3f3;"><br /><i style="color:red;">*Copy the above url and paste in the 'website' field on cpalead registration form (if required).</i></td></tr>
<tr style="" id="cpalead_info1"><th><label for="id_name"></label></th><td>then paste cpalead varification meta tag below (if required, some time they ask to do so.).</td></tr>
<tr style="" id="cpalead_meta_tag_box"><th><label for="id_name">Cpalead Meta Tag:</label></th><td><input type="text" name="cpalead_meta_tag" id="cpalead_meta_tag" size="80" value="<?php echo htmlspecialchars($cpalead_meta_tag); ?>"></td></tr>
<tr style="" id="set_cpalead_meta_tag_status_row"><th><label for="id_name"></label></th><td>Now complete the remaining installation process and then the remaning cpalead registration process.</td></tr>
<tr style="" id="set_cpalead_meta_tag_status_msg"><th><label for="id_name"></label></th><td>Login to your Cpalead dashboard (Or wait for 1-2 days to get accepted if not instantly accepted), 
 build and get your widget code using the below widget skin url as custom background url to match your site's theme.
&nbsp;&nbsp;<a href="<?php echo $ping_url . 'img/download-skin.png'; ?>" target="_blank"><img src="img/yellow.gif"/ border="0"> View skin</a>. <br/>
 <input type="text" value="<?php echo $ping_url . 'img/download-skin.png'; ?>" id="your_url" size="80" onclick="select();" alt="Copy this url." style="color:green;border-width:0px;background: #f3f3f3;" />
 <i style="color:red;">*Copy the above url and paste it on custom background url field in the design tab.</i><br/>
 <br />come back here and paste your widget code and update other informations.</td></tr>

 <tr style="" id="update_info_row1"><th><label for="id_name">Search top ad code:</label></th><td><textarea name="search_top_ad" rows="7" cols="45"><?php echo htmlspecialchars($search_top_ad); ?></textarea></td></tr>
 <tr style="" id="update_info_row1"><th><label for="id_name">Search bottom ad code:</label></th><td><textarea name="search_bottom_ad" rows="7" cols="45"><?php echo htmlspecialchars($search_bottom_ad); ?></textarea></td></tr>
 <tr style="" id="update_info_row1"><th><label for="id_name">Search right ad code:</label></th><td><textarea name="search_right_ad" rows="7" cols="45"><?php echo htmlspecialchars($search_right_ad); ?></textarea></td></tr>
 <tr style="" id="update_info_row1"><th><label for="id_name">Content top ad code:</label></th><td><textarea name="content_top_ad" rows="7" cols="45"><?php echo htmlspecialchars($content_top_ad); ?></textarea></td></tr>
 <tr style="" id="update_info_row1"><th><label for="id_name">Analytics code:</label></th><td><textarea name="analytics_code" rows="7" cols="45"><?php echo htmlspecialchars($analytics_code); ?></textarea></td></tr>
 <tr style="" id="update_info_row1"><th><label for="id_name">Content locker code:</label></th><td><textarea name="content_lock_code" rows="7" cols="45"><?php echo htmlspecialchars($content_lock_code); ?></textarea></td></tr>
 <tr style="" id="update_info_row1"><th><label for="id_name"></label></th><td><input type="submit" value="Update." style="width:380px;" name="submit_post"></td></tr>
</table>
</form>
<br/><br/>
Force <a href="?force_update=1">upate</a> the script, if you know a new update is available but the auto updater did't update it.
(By default the auto updater checks every day (24 hours) for new updates.) 
</p>
</body>
</html>
Return current item: rapidshareBot