Jump to content

SMTP panel help?


Recommended Posts

Acum 24 minute, VLM a spus:

Vezi daca merge luand de la asta: http://www.girlshare.ro/3490034109.1

nu detine changemail

eu am asta

<title>Schimba-ti adresa de email - <?php echo Config::$_SITE_NAME; ?></title>
if(!isset($_SESSION['user'])) { echo '<meta http-equiv="refresh" content="0;URL=\''.Config::$_PAGE_URL.'\'/>'; } else {

	<div class="main-content">
			<div class="breadcrumbs" id="breadcrumbs">
				<script type="text/javascript">
					try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}

				<ul class="breadcrumb">
						<i class="ace-icon fa fa-home home-icon"></i>
						<a href="<?php echo Config::$_PAGE_URL; ?>">Home</a>
					<li class="active">Schimba-ti adresa de email</li>
				</ul><!-- /.breadcrumb -->

				<div class="nav-search" id="nav-search">
					<form method="POST" action="<?php echo Config::$_PAGE_URL; ?>search">
						<span class="input-icon">
							<input type="text" placeholder="Search ..." name="sname" id="username" type="submit" class="nav-search-input" autocomplete="on"> 
							<i class="ace-icon fa fa-search nav-search-icon"></i>
				</div> <!-- /.nav-search -->
<div class="page-content">
<div class="row-fluid">
<div class="span12">
if(isset($_POST['submit'])) {
	if(!$_POST['email'] || !$_POST['password']) {
		echo '<div class="alert alert-block alert-danger">Invalid email / Email invalid.</div>';
	} else {
		$q = Config::$g_con->prepare('SELECT * FROM `users` WHERE `name` = ? AND `password` = ?');
		while($row = $q->fetch(PDO::FETCH_OBJ))
		if($q->rowCount()) {
			$d = Config::$g_con->prepare('SELECT * FROM `changemail` WHERE `name` = ?');
			if($d->rowCount()) {
				echo '<div class="alert alert-block alert-danger">Ai mai f&#259;cut deja o cerere de schimbare a emailului.</div>';
			else {
				if($row->Email == "[email protected]") {					
					$email = htmlspecialchars($_POST['email']);
				} else {
					$email = $row->Email;
				$user = $row->name;

				$first = md5(uniqid());
				$final_key = $first . md5($first);
				$s = Config::$g_con->prepare("INSERT INTO changemail (ChangeMailKey, name, Email) VALUES (?, ?, ?)");
				$s->execute(array($final_key, $user, $_POST['email']));

require 'inc/PHPMailerAutoload.php';
$mail = new PHPMailer;
$mail->Host = ' ';
$mail->SMTPAuth = false;
$mail->Username = '';
$mail->Password = '';
$mail->SMTPSecure = 'tls';
$mail->Port = 587;
$mail->setFrom('[email protected]', 'roplayers.ro');
$mail->Subject = 'roplayers.ro - confirmare email / validate your email';
$mail->Body    = "Salutare $user,
[RO] Ai primit acest email pentru ca ai solicitat confirmarea emailului pe serverul pe serverul rpg.roplayers.ro
Pentru a avea emailul ". $_POST['email'] ." asociat cu contul tau, da click pe link-ul de mai jos:

[EN] You have received this email because you have requested to confirm your email on the server rpg.roplayers.ro
To have the email ". $_POST['email'] ." associated with your account, please click the link above.

Cu stima,
Echipa roplayers.ro
Contact: [email protected]";
if(!$mail->send()) {
    echo 'Email could not be sent.';
} else {
	$err = "<br />Un email a fost trimis catre ". $email ." pentru confirmarea emailului.<br />
	In acel email vei gasi un link pe care va trebui sa dai click pentru a confirma schimbarea adresei de email asociata cu contul tau.<br /><br />
	Emailul va ajunge la tine in cateva minute in casuta ta de email.<br />
	Daca nu ai primit emailul, verifica si folderul de spam sau foloseste optiunea de search din yahoo/gmail pentru a cauta roplayers.ro.";
		else echo '<div class="alert alert-block alert-danger"><button type="button" class="close" data-dismiss="alert">Invalid email / Email invalid.</div>';
} ?>
<div class="page-header">
<h1>Schimba-ti adresa de email</h1>
<b>Atentie!</b><br>E interzis sa vinzi contul sau sa-l dai la schimb.<br>O data ce ai schimbat emailul, nu vei mai putea recupera contul daca nu ai acces la noul email.<br>Nu seta emailul altcuiva daca nu vrei sa ramai fara cont.
<?php if(isset($err)): ?>
<?php echo $err ?>
<?php else: ?>
<form method="POST" action="" accept-charset="UTF-8">
New email:<br />
<input placeholder="Scrie noua adresa de email aici..." name="email" type="email"><br />
SA:MP Password:<br />
<input name="password" type="password"><br/><br />
<input class="btn btn-inverse" type="submit" name="submit" value="Modifica!">
 <?php endif;
} ?>


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.