Ejemplo n.º 1
0
"  name="mobfox_uid" id="mobfox_uid" size="28" class="" />									<label for="mobfox_uid">MobFox Username/E-Mail</label>
								</div>
							</div> <!-- .field-group -->
                            
                            <div class="field-group">
			
								<div class="field">
<input type="password" value=""  placeholder="Enter your MobFox Password..." name="mobfox_password" id="mobfox_password" size="28" class="" />									<label for="mobfox_password">MobFox Password</label>
								</div>
							</div> <!-- .field-group -->
                            
                            <div class="field-group">
			
								<div class="field">
									<?php 
if (mfconcheck(getconfig_var('mobfox_uid'), getconfig_var('mobfox_password'), 1)) {
    echo '<span style="margin-left:4px; color:#090;">Active</span>';
} else {
    echo '<span style="margin-left:4px; color:#900;">Failed</span>';
}
?>
									<label for="db_v">Connection Status</label>
								</div>
							</div> <!-- .field-group -->
                            
                           
                            
                             
                             
                            
                            <div class="actions">						
Ejemplo n.º 2
0
function resendpassword($username)
{
    $time_stamp = time();
    require_once MAD_PATH . '/modules/validation/validate.class.php';
    $validate = new Validate();
    if ($username == "" or $validate->isEmail($username) != true) {
        return false;
    }
    global $maindb;
    $code_p = uniqid("{$time_stamp}{$username}", true);
    // GENERATE SESSION ID
    $request_hash = md5($code_p);
    $resultuserselect = mysql_query("select * from md_uaccounts where email_address='{$username}'", $maindb);
    $requser_detail = mysql_fetch_array($resultuserselect);
    if ($requser_detail['email_address'] != $username) {
        return false;
    }
    $mad_bsrurl = str_ireplace('/www/cp/do_resetpassword.php', '', $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
    require_once MAD_PATH . '/www/cp/admin_functions.php';
    $mad_r_adservername = getconfig_var('adserver_name');
    $mad_r_adserveremail = getconfig_var('server_email');
    mysql_query("UPDATE md_passwordresets set reset_status='0' where reset_accountid='{$requser_detail['user_id']}'", $maindb);
    mysql_query("INSERT INTO `md_passwordresets` VALUES('', '1', '{$request_hash}', '{$requser_detail['user_id']}', '', '{$time_stamp}')", $maindb);
    require_once MAD_PATH . '/modules/phpmailer/class.phpmailer.php';
    $mail = new PHPMailer();
    // defaults to using php "mail()"
    $body = "mAdserve Password Recovery<br>----------------------<br>\nUsername: {$requser_detail['email_address']}<br>\nPassword Reset Link: http://{$mad_bsrurl}/www/cp/pw_update.php?hash={$request_hash}";
    $mail->AddReplyTo("" . $mad_r_adserveremail . "", "" . $mad_r_adservername . "");
    $mail->SetFrom('' . $mad_r_adserveremail . '', '' . $mad_r_adservername . '');
    $address = "{$requser_detail['email_address']}";
    $mail->AddAddress($address, "{$requser_detail['first_name']} {$requser_detail['last_name']}");
    $mail->Subject = "mAdserve Password Recovery";
    //$mail->AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
    $mail->MsgHTML($body);
    if (!$mail->Send()) {
        return false;
    }
    return true;
}
Ejemplo n.º 3
0
                        <div class="widget-header">
                            <span class="icon-article"></span>

                            <h3>Update Settings</h3>
                        </div>
                        <!-- .widget-header -->

                        <div class="widget-content">


                            <div class="field-group">

                                <div class="field">
                                    <input id="update_check" name="update_check"
                                           <?php 
if (getconfig_var('update_check') == 1) {
    ?>
checked="checked"<?php 
}
?>
                                           type="checkbox" value="1"/>
                                    <label for="update_check">Check for new versions of mAdserve and inform me on the
                                        Administrator Dashboard when a new version is available</label>
                                </div>
                            </div>
                            <!-- .field-group -->


                            <div class="actions">
                                <button type="submit" class="btn btn-quaternary btn-large">Save Changes</button>
                            </div>
Ejemplo n.º 4
0
    <![endif]-->

    <!--[if gte IE 8]>
    <link rel="stylesheet" href="assets/stylesheets/ie8.css" type="text/css"/>
    <![endif]-->


</head>

<body>

<div id="wrapper">

    <div id="header">
        <h1><a href="dashboard.php"><?php 
echo getconfig_var('adserver_name');
?>
</a></h1>

        <a href="javascript:;" id="reveal-nav">
            <span class="reveal-bar"></span>
            <span class="reveal-bar"></span>
            <span class="reveal-bar"></span>
        </a>
    </div>
    <!-- #header -->

    <div id="search">
        <!--<form>
            <input type="text" name="search" placeholder="Search..." id="searchField" />
        </form>	 -->
Ejemplo n.º 5
0
                                    <span
                                        style="margin-left:4px;"><?php 
echo getconfig_var('installation_id');
?>
</span>
                                    <label for="allow_statistical_info">mAdserve Installation ID</label>
                                </div>
                            </div>
                            <!-- .field-group -->

                            <div class="field-group">

                                <div class="field">
                                    <span
                                        style="margin-left:4px;"><?php 
echo getconfig_var('db_install_version');
?>
</span>
                                    <label for="db_v">mAdserve Database Version</label>
                                </div>
                            </div>
                            <!-- .field-group -->

                            <div class="field-group">

                                <div class="field">
                                    <span style="margin-left:4px;"><?php 
echo MAD_VERSION;
?>
</span>
                                    <label for="db_v">mAdserve Code Version</label>
Ejemplo n.º 6
0
function campaign_limit_update()
{
    global $maindb;
    $last_limit_update = getconfig_var('last_limit_update');
    $diff = time() - $last_limit_update;
    if ($diff < 86300 && is_numeric($last_limit_update)) {
        return false;
    }
    global $maindb;
    mysql_query("UPDATE md_campaign_limit SET total_amount_left=total_amount WHERE total_amount>0 AND cap_type='1'", $maindb);
    update_configvar('last_limit_update', time());
    add_syslog('campaign_limit_update', '');
}
Ejemplo n.º 7
0
style="text-decoration:line-through;"<?php 
    }
    ?>
 href="create_campaign.php">Add a Campaign</a></li>
					</ul>
				</div>
                <?php 
}
?>
				
                <?php 
if (getconfig_var('update_check') == 1) {
    $box_url = 'http://network.madserve.org/newsbox.php?dv=' . urlencode(getconfig_var('db_install_version')) . '&cv=' . urlencode(MAD_VERSION) . '';
    if (getconfig_var('allow_statistical_info') == 1) {
        $data_yesterday = get_reporting_data("publisher", date('d', mktime(0, 0, 0, date("m"), date("d") - 1, date("Y"))), date('m', mktime(0, 0, 0, date("m"), date("d") - 1, date("Y"))), date('Y', mktime(0, 0, 0, date("m"), date("d") - 1, date("Y"))), '');
        $box_url = $box_url . '&u=' . urlencode(getconfig_var('installation_id')) . '&d=' . urlencode(date('dmy', time() - 86400)) . '&re=' . urlencode($data_yesterday['total_requests']) . '&im=' . urlencode($data_yesterday['total_impressions']) . '&cl=' . urlencode($data_yesterday['total_clicks']) . '';
    }
    ?>
			  <div class="box">
                <iframe width="100%" height="350" allowtransparency="1" scrolling="no" frameborder="0" src="<?php 
    echo $box_url;
    ?>
"></iframe>
				<!--<ul class="bullet secondary">
						<li><a href="<?php 
    echo "../../sdk/ios_latest.zip";
    ?>
">mAdserve iOS SDK</a></li>
						<li><a href="<?php 
    echo "../../sdk/android_latest.zip";
    ?>