[Release & Support] Sapphire FlyFF

02/27/2014 11:46 SAUdrache.#'#16
Ka des was halt drinnen war xD
Also schätz ich mal mit mail ;)
02/27/2014 11:48 Chyukαsame#17
Da ich mit direktem Register arbeite, muss ich es mir nacher mal selber angucken.
Ich bin von 17-23uhr in skype dann zu erreichen.
02/27/2014 11:49 SAUdrache.#'#18
Wie kann ich eigtl des dierekte benutzen?
02/27/2014 11:57 Chyukαsame#19
Ersetzte in der regist.php deine php funktion durch diese

PHP Code:
<?php
    
if(isset($_POST['registSubmit'])) {
        
$account cleanSqlInput($_POST['registAccountID']);
        
$pass1 cleanSqlInput($_POST['registPassword']);
        
$pass2 cleanSqlInput($_POST['registPasswordRepeat']);
        
$email cleanSqlInput($_POST['registMail']);
        
$email2 cleanSqlInput($_POST['registMailRepeat']);
        
$provider preg_replace("^(.*?)@(.*?)^""$2"$email);
        
$gefra cleanSqlInput($_POST['registSecretQuestion']);
        
$geant cleanSqlInput($_POST['registSecretAnswer']);
        
$birthday cleanSqlInput($_POST['registBirthday']);
        
$md5pw md5($_CONFIG['allg_svr_salt'].$pass1);
        
$strOutputErrorArray = array();
        
$accountcheck1 = @odbc_num_rows(@odbc_exec($odbc_connect'SELECT [account] FROM [' $_CONFIG['db_databases']['acc'] . '].[dbo].[ACCOUNT_TBL] WHERE account = \''.$account.'\''));
        
$accountcheck2 = @odbc_num_rows(@odbc_exec($odbc_connect'SELECT [account] FROM [' $_CONFIG['db_databases']['web'] . '].[dbo].[VALIDATE] WHERE [type] = 0 AND [account] = \''.$account.'\''));



        if(!
$_CONFIG['registration_enabled']) {
            
$strOutputErrorArray[] = $_LANG['error_registration_disabled'];
        }
        if(
isSpamming($_POST['inputCheckTimestamp'], $_POST['inputCheckKey'], $_SESSION['inputCheckKey'])) {
            
$strOutputErrorArray[] = $_LANG['error_spam'];
        }
        if(empty(
$account) or empty($pass1) or empty($pass2) or empty($email) or empty($email2) or empty($gefra) or empty($geant) or empty($birthday)) {
            
$strOutputErrorArray[] = $_LANG['error_fill_in_all_fields'];
        }
        if(!isset(
$_POST['registCheckbox'])) {
            
$strOutputErrorArray[] = $_LANG['error_confirm_reading_rules'];
        }
        if(
$accountcheck1 OR $accountcheck2 0) {
            
$strOutputErrorArray[] = $_LANG['error_accountname_is_taken'];
        }
        if((
strlen($account) > 16) || (strlen($account) < 3)) {
            
$strOutputErrorArray[] = $_LANG['error_account_length'];
        }
        if (
$account != preg_replace ("/[^A-Za-z0-9]/"""$account)) {
            
$strOutputErrorArray[] = $_LANG['error_no_special_characters_account'];
        }
        if((
strlen($pass1) > 16) || (strlen($pass1) < 6)) {
            
$strOutputErrorArray[] = $_LANG['error_password_length'];
        }
        if(
$pass1 != $pass2) {
            
$strOutputErrorArray[] = $_LANG['error_passwords_indistinguishable'];
        }
        if(
$geant != preg_replace('/[^A-Za-z0-9 ]/'''$geant)) {
            
$strOutputErrorArray[] = $_LANG['error_no_special_characters_secret_answer'];
        }
        if(
strtolower($email) != strtolower($email2)) {
            
$strOutputErrorArray[] = $_LANG['error_mails_indistinguishable'];
        }
        if(!
preg_match('/^[a-zA-Z0-9-_.]+@[a-zA-Z0-9-_.]+\.[a-zA-Z]{2,4}$/'$email)) {
            
$strOutputErrorArray[] = $_LANG['error_mail_must_be_valid'];
        }
        if(
in_array($provider$_CONFIG['web_mail_provider'])) {
            
$strOutputErrorArray[] = $_LANG['error_spam_provider'];
        }
        if(!
strtotime($birthday)) {
            
$strOutputErrorArray[] = $_LANG['error_valid_birthday'];
        }
        if(
count($strOutputErrorArray) > 0) {
            echo 
createMessage($strOutputErrorArray'fail');
        }
        else {
            if(
odbc_exec($odbc_connect'
                EXEC [' 
$_CONFIG['db_databases']['acc'] . '].[dbo].[usp_createAccount] @account=\'' $account '\', @pw=\''.$md5pw.'\', @email=\''.$email.'\', @gefra=\''.$gefra.'\', @geant=\''.md5($_CONFIG['security_secretAnswerSalt'].$geant).'\', @birthday=\''.date($_CONFIG['web_date_format']['date'], strtotime($birthday)).'\', @ip = \'' $_SERVER['REMOTE_ADDR'] . '\', @lang=\'' $_CONFIG['web_default_lang'] . '\'
            '
)) {
                
$_SESSION['user'] = strtolower($account);
                
$_SESSION['votepoints'] = 0;
                
$_SESSION['cash'] = 0;
                echo 
createMessage('Der Account ' cleanHtmlOutput($account) . ' wurde erfolgreich registriert.''success');
            }
            else {
                echo 
createMessage('Der Account konnte nicht in die Datenbank geschrieben werden.''fail');
            }
        }  
    }
    else {
        if(
$_CONFIG['registration_enabled']) {
            if(
$_CONFIG['registration_verify_mail_enabled']) {
                echo 
createMessage($_LANG['notify_registration'], 'hint');
            }
        }
        else {
            echo 
createMessage($_LANG['error_registration_disabled'], 'fail');
        }
    }
?>
02/27/2014 12:02 SAUdrache.#'#20
Also einfach des komplette regist.php mit dem ersetzten ? :)
02/27/2014 12:04 Chyukαsame#21
Nein, nur wo der php code ist ;D

Müsste zeile 5-92 beinhalten.
02/27/2014 12:11 SAUdrache.#'#22
Klappt nicht -.- ich kann halt iwie garnix xD kannste nich deine regist.php hochladen ? Haha
02/27/2014 12:21 Chyukαsame#23
So, du löscht den kompletten inhalt der regist.php und fügst den inhalt da ein

PHP Code:

<?php if (!defined('access')) {die("Die gesuchte Ressource wurde entfernt oder umbenannt, oder sie steht vorübergehend nicht zur Verfügung.");} ?>
<p class="page_title"><?php echo $_LANG['regist_siteTitle']; ?></p>

<?php
    
if(isset($_POST['registSubmit'])) {
        
$account cleanSqlInput($_POST['registAccountID']);
        
$pass1 cleanSqlInput($_POST['registPassword']);
        
$pass2 cleanSqlInput($_POST['registPasswordRepeat']);
        
$email cleanSqlInput($_POST['registMail']);
        
$email2 cleanSqlInput($_POST['registMailRepeat']);
        
$provider preg_replace("^(.*?)@(.*?)^""$2"$email);
        
$gefra cleanSqlInput($_POST['registSecretQuestion']);
        
$geant cleanSqlInput($_POST['registSecretAnswer']);
        
$birthday cleanSqlInput($_POST['registBirthday']);
        
$md5pw md5($_CONFIG['allg_svr_salt'].$pass1);
        
$strOutputErrorArray = array();
        
$accountcheck1 = @odbc_num_rows(@odbc_exec($odbc_connect'SELECT [account] FROM [' $_CONFIG['db_databases']['acc'] . '].[dbo].[ACCOUNT_TBL] WHERE account = \''.$account.'\''));
        
$accountcheck2 = @odbc_num_rows(@odbc_exec($odbc_connect'SELECT [account] FROM [' $_CONFIG['db_databases']['web'] . '].[dbo].[VALIDATE] WHERE [type] = 0 AND [account] = \''.$account.'\''));



        if(!
$_CONFIG['registration_enabled']) {
            
$strOutputErrorArray[] = $_LANG['error_registration_disabled'];
        }
        if(
isSpamming($_POST['inputCheckTimestamp'], $_POST['inputCheckKey'], $_SESSION['inputCheckKey'])) {
            
$strOutputErrorArray[] = $_LANG['error_spam'];
        }
        if(empty(
$account) or empty($pass1) or empty($pass2) or empty($email) or empty($email2) or empty($gefra) or empty($geant) or empty($birthday)) {
            
$strOutputErrorArray[] = $_LANG['error_fill_in_all_fields'];
        }
        if(!isset(
$_POST['registCheckbox'])) {
            
$strOutputErrorArray[] = $_LANG['error_confirm_reading_rules'];
        }
        if(
$accountcheck1 OR $accountcheck2 0) {
            
$strOutputErrorArray[] = $_LANG['error_accountname_is_taken'];
        }
        if((
strlen($account) > 16) || (strlen($account) < 3)) {
            
$strOutputErrorArray[] = $_LANG['error_account_length'];
        }
        if (
$account != preg_replace ("/[^A-Za-z0-9]/"""$account)) {
            
$strOutputErrorArray[] = $_LANG['error_no_special_characters_account'];
        }
        if((
strlen($pass1) > 16) || (strlen($pass1) < 6)) {
            
$strOutputErrorArray[] = $_LANG['error_password_length'];
        }
        if(
$pass1 != $pass2) {
            
$strOutputErrorArray[] = $_LANG['error_passwords_indistinguishable'];
        }
        if(
$geant != preg_replace('/[^A-Za-z0-9 ]/'''$geant)) {
            
$strOutputErrorArray[] = $_LANG['error_no_special_characters_secret_answer'];
        }
        if(
strtolower($email) != strtolower($email2)) {
            
$strOutputErrorArray[] = $_LANG['error_mails_indistinguishable'];
        }
        if(!
preg_match('/^[a-zA-Z0-9-_.]+@[a-zA-Z0-9-_.]+\.[a-zA-Z]{2,4}$/'$email)) {
            
$strOutputErrorArray[] = $_LANG['error_mail_must_be_valid'];
        }
        if(
in_array($provider$_CONFIG['web_mail_provider'])) {
            
$strOutputErrorArray[] = $_LANG['error_spam_provider'];
        }
        if(!
strtotime($birthday)) {
            
$strOutputErrorArray[] = $_LANG['error_valid_birthday'];
        }
        if(
count($strOutputErrorArray) > 0) {
            echo 
createMessage($strOutputErrorArray'fail');
        }
        else {
            if(
odbc_exec($odbc_connect'
                EXEC [' 
$_CONFIG['db_databases']['acc'] . '].[dbo].[usp_createAccount] @account=\'' $account '\', @pw=\''.$md5pw.'\', @email=\''.$email.'\', @gefra=\''.$gefra.'\', @geant=\''.md5($_CONFIG['security_secretAnswerSalt'].$geant).'\', @birthday=\''.date($_CONFIG['web_date_format']['date'], strtotime($birthday)).'\', @ip = \'' $_SERVER['REMOTE_ADDR'] . '\', @lang=\'' $_CONFIG['web_default_lang'] . '\'
            '
)) {
                
$_SESSION['user'] = strtolower($account);
                
$_SESSION['votepoints'] = 0;
                
$_SESSION['cash'] = 0;
                echo 
createMessage('Der Account ' cleanHtmlOutput($account) . ' wurde erfolgreich registriert.''success');
            }
            else {
                echo 
createMessage('Der Account konnte nicht in die Datenbank geschrieben werden.''fail');
            }
        }  
    }
    else {
        if(
$_CONFIG['registration_enabled']) {
            if(
$_CONFIG['registration_verify_mail_enabled']) {
                echo 
createMessage($_LANG['notify_registration'], 'hint');
            }
        }
        else {
            echo 
createMessage($_LANG['error_registration_disabled'], 'fail');
        }
    }
?>
<form method="post"><br />
    <input type="hidden" name="inputCheckTimestamp" value="<?php echo time();?>" />
    <input type="hidden" name="inputCheckKey" value="<?php echo random_string();?>" />
<fieldset>
    <legend><?php echo $_LANG['regist_account_information_subTitle']; ?></legend>
    <input type="text" name="registAccountID" id="registAccountID" maxlength="16" placeholder="<?php echo $_LANG['account']; ?>" required="required"/><label class="labelRegistration" for="registAccountID"><?php echo $_LANG['account']; ?> :</label><br />
    <input type="password" name="registPassword" id="registPassword" placeholder="<?php echo $_LANG['password']; ?>" required="required"/> <input type="password" name="registPasswordRepeat" id="registPasswordRepeat" class="password" placeholder="<?php echo $_LANG['repeat_password']; ?>" required="required"/><label class="labelRegistration" for="registPassword"><?php echo $_LANG['password']; ?> :</label><br />
</fieldset>
<br />
<fieldset>
    <legend><?php echo $_LANG['regist_security_subTitle']; ?></legend>
    <input type="email" name="registMail" id="registMail" class="email" placeholder="[Only registered and activated users can see links. Click Here To Register...]" required="required"/> <input type="email" name="registMailRepeat" id="registMailRepeat" class="email" placeholder="<?php echo $_LANG['mail_repeat']; ?>" required="required"/><label class="labelRegistration" for="registMail"><?php echo $_LANG['mail']; ?> :</label>
    <input type="text" name="registBirthday" id="registBirthday" class="birthday" placeholder="<?php echo $_LANG['birthday']; ?>" required="required"/><label class="labelRegistration" for="registBirthday"><?php echo $_LANG['birthday']; ?> :</label><br />
    <select name="registSecretQuestion" id="registSecretQuestion" class="frage" required="required">
        <option value="" selected="selected"></option>
        <?php 
        
foreach($_CONFIG['allg_secretquestions'] as $id => $frage) {
            echo 
'<option value="'.$id.'" >'.$frage.'</option>';
        }
        
?>
    </select><label class="labelRegistration" for="registSecretQuestion"><?php echo $_LANG['secret_question']; ?> :</label><br />
    <input type="text" name="registSecretAnswer" id="registSecretAnswer" class="antwort" placeholder="<?php echo $_LANG['secret_answer']; ?>" required="required"/><label class="labelRegistration" for="registSecretAnswer"><?php echo $_LANG['secret_answer']; ?> :</label>
</fieldset>
<br />
<fieldset>
    <legend><?php echo $_LANG['regist_rules_subTitle']; ?></legend>
    <input type="checkbox" name="registCheckbox" id="registCheckbox" style="margin:14px 10px;" required="required"/><label style="float:left;" for="registCheckbox"><?php echo $_LANG['regist_read_confirmation']; ?> </label><br /><br style="clear:both;"/>
</fieldset>
    <input type="submit" name="registSubmit" value="<?php echo $_LANG['button_send_registration']; ?>" class="button_235" style="margin:10px 0px 10px 190px;" />
</form>
02/27/2014 12:28 SAUdrache.#'#24
Da kommt immer noch der gleiche error -.- was mach ich falsch ? XD
Sonst klappt alles haha also vom hp mäsigen her klappt alles nur des fu***** register ding will ned -.- soll ich die ganzen db sachen nommal ausführen ? :o
02/27/2014 12:55 Chyukαsame#25
Ab dem jetzigen Punkt, weiß ich mit gewissheit das es an der Datenbank (Votepoints) liegt, aber ich kann dir höchstens anbieten 16Uhr, früher kann ich wirklich nicht nach hause....
02/27/2014 12:56 SAUdrache.#'#26
Oke ja ich versuch mal bis dahin durchzuhalten ;)
02/27/2014 17:09 Chyukαsame#27
# Paypal Donate ändern hinzugefügt unter Informationen

Heute Abend gegen 23Uhr werde ich einen neuen Download bereit stellen mit:
- No-Mail Register
- Paypal Spendenlink zu Forsaken FlyFF entfernt
- Neues Datenbank script, da das alte ein Fehler hatte


Edit: Es kann bischen später werden da ich noch was am Donate fixxen muss, damit User keine Probleme beim Paypal Spenden haben.
02/27/2014 17:13 Marc~#28
Läuft eher nichtso mit Mega:
02/27/2014 17:18 devilingflyff02#29
is there a problem about site_downloads.php? i try to add new download link it says success but did not inserted to database same as on news

but on news_categories is working
02/27/2014 17:28 Chyukαsame#30
Quote:
Originally Posted by Marc~ View Post
Läuft eher nichtso mit Mega:
Es gibt jetzt einen neuen Download Link


Quote:
Originally Posted by devilingflyff02 View Post
is there a problem about site_downloads.php? i try to add new download link it says success but did not inserted to database same as on news

but on news_categories is working
Do you have the database all inserted correctly?

Have you skype? Then add me and i look self. Addy: chyukasame



Update:

Ich habe nun ein Update für die Homepage erstellt.

Im Update sind erhalten:
  • Registration ist nun ohne E-Mail Bestätigung
  • Registration wieder möglich durch ein gefixxtes SQL Ausführungsdokument
  • Das Paypal Spendenformular ist nun nicht mehr auf das Konto von Forsaken FlyFF verlinkt

Für alle, die die v2.0 Website benutzen, reicht dieses Update, den man einfach über die jetzigen Dateien überspielen kann - [Only registered and activated users can see links. Click Here To Register...]

Für alle, die die Homepage noch nicht benutzen ist hier die volle 2.1 Version mit den letzten updates enthalten - [Only registered and activated users can see links. Click Here To Register...]
(Mit dem Download der Homepage akzeptieren sie die Nutzungsbedingungen)