• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

nowy rec key w gesior acc

Indenpedens

Banned User
Joined
Nov 6, 2010
Messages
584
Reaction score
39
Location
Poland
Witam
mam pytanie otoz jak zrobic w geisor acc makerze zeby wyrabianie nowego rec keya wymagalo np. 3 dni tak jak jest to do ustawienia w zmianie emaila
bo tylko za premium points jest opcja zmiany rec keya a chce zeby trzebabylo czekac pare dni :P
 
PHP:
$a = $SQL->query("SELECT `data` FROM `b`;")->fetch();  
$c = strtotime("+3 days", $a['data']);
if(time() >= $c)
..
 
o a dalbym wam tu wycinek z mojego accountmanagent.php i jak to wsadzic bo jakos mi nie wychodzi
Code:
if($action == "newreckey")
	{
		$reg_password = password_ency(trim($_POST['reg_password']));
		$reckey = $account_logged->getCustomField("key");
		if((!$config['site']['generate_new_reckey'] || !$config['site']['send_emails']) || empty($reckey))
			$main_content .= 'You cant get new rec key';
		else
		{
			$points = $account_logged->getCustomField('premium_points');
			if($_POST['registeraccountsave'] == "1")
			{
				if($reg_password == $account_logged->getPassword())
				{
					if($points >= $config['site']['generate_new_reckey_price'])
					{
							$dontshowtableagain = 1;
							$acceptedChars = 'ABCDEFGHIJKLMNPQRSTUVWXYZ123456789';
							$max = strlen($acceptedChars)-1;
							$new_rec_key = NULL;
 
Code:
ALTER TABLE `accounts` ADD `reckey_created` INT NOT NULL
Code:
	if($action == "newreckey")
	{
		$reg_password = password_ency(trim($_POST['reg_password']));
		$reckey = $account_logged->getRecoveryKey();
if((!$config['site']['generate_new_reckey'] || !$config['site']['send_emails']) || empty($reckey))
			$main_content .= 'You cant get new rec key';
		else
		{
			$points = $account_logged->getPremiumPoints();
			if($_POST['registeraccountsave'] == "1")
			{
				if($reg_password == $account_logged->getPassword())
				{

$reckey_created=$account_logged->getCustomField("reckey_created"); 
$reckey_check = strtotime("+3 days", $reckey_created);
if(time() <= $reckey_check)
$reg_errors[]='You can recreate recover key once per 3 days.<br/>';

else
					if($points >= $config['site']['generate_new_reckey_price'])
					{
	$account_logged->setCustomField('reckey_created', time());
							$dontshowtableagain = 1;
							$acceptedChars = 'ABCDEFGHIJKLMNPQRSTUVWXYZ123456789';
							$max = strlen($acceptedChars)-1;
							$new_rec_key = NULL;
Nie sprawdzałem ale powinno działać.
 
blad
Fatal error: Call to undefined method OTS_Account::newreckey() in F:\xampp\htdocs\accountmanagement.php on line 346
$reckey = $account_logged->getRecoveryKey();
 
zmień
Code:
		$reckey = $account_logged->getRecoveryKey();
na
Code:
		$reckey = $account_logged->getCustomField("key");

i
Code:
$points = $account_logged->getPremiumPoints();
na
Code:
$points = $account_logged->getCustomField('premium_points');
używajcie nowego gesiora ;9
 
An error occorred while sending email ( [email protected] ) with recovery key! Recovery key not changed. Try again.
E-mail prawidłowy :D
 
Last edited:
Musisz w config/config.php ustawić chyba smtp z którego bedziesz wysyłał emaile.
 
może ktoś wie jak na g-maila ustawić?
PHP:
// E-MAIL config
$config['site']['send_emails'] = 1; // is acc. maker configured to send e-mails?
$config['site']['mail_address'] = "[email protected]"; // e-mail address
$config['site']['smtp_enabled'] = "yes"; // send by smtp or mail function (set 0 if use mail function)
$config['site']['smtp_host'] = "smtp.gmail.com"; // address
$config['site']['smtp_port'] = 465; // port
$config['site']['smtp_auth'] = "true"; // need authorization? (set 0 if not need auth)
$config['site']['smtp_user'] = "[email protected]"; // login
$config['site']['smtp_pass'] = "mojehaslo"; // password
 
Wszystko jest tam dobrze, jeżeli będziesz korzystał z gmaila, po prostu w

$config['site']['mail_address'] = "[email protected]"; // e-mail address
wpisz swój email
$config['site']['smtp_user'] = "[email protected]"; // login
to samo
$config['site']['smtp_pass'] = "mojehaslo"; // password
tu haslo i bedzie smigac
 
a na gmailu blokuja po paru emailach na jakis czas i chyba na vp blokuja
tylko jaki server jest do vp?
 
Ostatnio na xtibi wysłałem mailing z gmaila na 900 kont, i jakoś wszystko było w porządku, jeżeli nie chcesz mieć żadnych limitów to wystarczy najzwyklejszy vps, funkcja mail() i sendmail/postfix/itd, trochę z tym konfiguracji jest.

Co do Twojego pytania.
Vp to subdomena onetu, w tym przypadku porty, 587 lub 465 z SSLem a serwer poczty smtp: smtp.poczta.onet.pl


Prawdę mówiąc to na onecie będziesz miał większe limity niż na gmailu, więc z darmówek najlepszy gmail.
 
Back
Top