Ankündigung

Einklappen
Keine Ankündigung bisher.

[Erledigt] Freunde-Online-Liste

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • [Erledigt] Freunde-Online-Liste

    Hallo

    ich habe ein problem mit meiner Freunde-Online-Liste.
    Das gibt mir immer "parsererror" aus und ich weis nicht wie ich das behebe.

    PHP-Code:
    <?php
    session_cache_limiter
    ('nocache');
    header('Expires: ' gmdate('r'0));
    header('Content-type: application/json');
    session_start();
    require_once (
    './application/config/config.php');
    $obj = new abfragen();
    $obj->check();
    class 
    abfragen {
        function 
    check() {
            
    $online_last = array();
            
    $db_link mysqli_connect (
                
    DB_HOST
                
    DB_USER
                
    DB_PASS
                
    DB_NAME
            
    );
            
    $my_id $_SESSION["UID"];
            
    $time_ago date('Y-m-d H:i:s',time()-4);
            
    $sql "
                SELECT *
                FROM friends
                LEFT JOIN user_info ON friends.UID_1 = user_info.UID
                WHERE friends.UID_1 = 
    $my_id or friends.UID_2 = $my_id
            "
    ;
            
    $db_erg mysqli_query$db_link$sql );
            if ( ! 
    $db_erg ) {
              die(
    'Ungültige Abfrage: ' mysqli_error());
            }
            while (
    $zeile mysqli_fetch_array$db_ergMYSQL_ASSOC)) {
                if(
    $zeile['username'] != $_SESSION["username"]) {
                    if(
    $zeile['last_online'] > $time_ago) {
                        
    $online_last[] = $zeile['username'];
                    }
                }
            }
            
    mysqli_free_result$db_erg );
            
            if(
    $_SESSION["online_list_now"] != $online_last) {
                
    $response_array['state'] = 'success';
                
    $this->whoisonline();
            } else {
                
    $response_array['state'] = 'error';
            }
            
            print 
    json_encode($response_array);
        }
        function 
    whoisonline() {
            
    $online_now = array();
            
    $db_link mysqli_connect (
                                 
    DB_HOST
                                 
    DB_USER
                                 
    DB_PASS
                                 
    DB_NAME
                                
    );
            
    $my_id $_SESSION['UID'];
            
    $time_ago date('Y-m-d H:i:s',time()-4);
            
    $sql "
            SELECT *
            FROM friends
            LEFT JOIN user_info ON friends.UID_1 = user_info.UID
            WHERE friends.UID_1 = 
    $my_id or friends.UID_2 = $my_id
            "
    ;
            
    $db_erg mysqli_query$db_link$sql );
            if ( ! 
    $db_erg )
            {
              die(
    'Ungültige Abfrage: ' mysqli_error());
            }
            while (
    $zeile mysqli_fetch_array$db_ergMYSQL_ASSOC))
            {
                if(
    $zeile['username'] != $_SESSION['username']) {
                    if(
    $zeile['last_online'] > $time_ago) {
                        
    $online_now[] = $zeile['username'];
                    }
                }
            }
            
    $_SESSION["online_list_now"] = $online_now;
            
            if(isset(
    $_SESSION["online_list_now"])) {
                foreach (
    $_SESSION["online_list_now"] as &$value) {
                    print 
    "1 ";
                }
            } else {
                echo 
    "Keiner On";
            }
            
            
    mysqli_free_result$db_erg );
        }
    }
    ?>
    Könnt ihr mir dabei helfen?

  • #2
    Das gibt mir immer "parsererror" aus
    - Zeilen-Nr?
    - Code der Zeile?
    The string "()()" is not palindrom but the String "())(" is.

    Debugging: Finde DEINE Fehler selbst! | Gegen Probleme beim E-Mail-Versand | Sicheres Passwort-Hashing | Includes niemals ohne __DIR__
    PHP.de Wissenssammlung | Kein Support per PN

    Kommentar


    • #3
      da kommt keine zeilenangabe

      Angehängte Dateien

      Kommentar


      • #4
        Öhm, was'n das für ein Mist... Dreh mal dein error_reporting voll auf, dh ganz zu Beginn nach <?php das schreiben:

        PHP-Code:
        error_reporting(-1);
        ini_set('display_errors'1); 
        Und schau ob wo Meldungen kommen, die Ausgabe muss ja von irgendeinem Script kommen... "Native" PHP Fehlermeldungen sehen anders aus.. Sonst lass mal zB deinen Editor über alle deine PHP Dateien nach dem Text "parserror" suchen etc, etc..
        The string "()()" is not palindrom but the String "())(" is.

        Debugging: Finde DEINE Fehler selbst! | Gegen Probleme beim E-Mail-Versand | Sicheres Passwort-Hashing | Includes niemals ohne __DIR__
        PHP.de Wissenssammlung | Kein Support per PN

        Kommentar


        • #5
          Reine Syntax-Fehler (vergessene Klammer oder eine Klammer zuviel, vergessenes Semikolon, etc.) kann ich nicht finden

          Kommentar


          • #6
            hab das error reporting "eingeschaltet" keine veränderung :/

            Kommentar


            • #7
              PHP-Code:
              mysqli_fetch_array$db_ergMYSQL_ASSOC)) 
              Die Konstante heißt übrigens eigentlich MYSQLI_ASSOC
              Die mysql_* Erweiterung ist veraltet!
              Besser: mysqli_* oder (noch besser) PDO

              Kommentar


              • #8
                Was ist da noch alles enthalten/ in Verwendung?

                PHP-Code:
                require_once ('./application/config/config.php'); 
                $obj = new abfragen(); 
                $obj->check(); 
                Sonst lass mal zB deinen Editor über alle deine PHP Dateien nach dem Text "parserror" suchen etc, etc..
                Irgendwo muss diese Ausgabe herkommen, wie gesagt, natvie PHP-Fehlermeldungen sehen anders aus.
                The string "()()" is not palindrom but the String "())(" is.

                Debugging: Finde DEINE Fehler selbst! | Gegen Probleme beim E-Mail-Versand | Sicheres Passwort-Hashing | Includes niemals ohne __DIR__
                PHP.de Wissenssammlung | Kein Support per PN

                Kommentar


                • #9
                  Oder mit

                  PHP-Code:
                  var_dump(); die(); 
                  schrittweise nach dem Fehler suchen...

                  Kommentar


                  • #10
                    Nur das (config.php)

                    Code:
                    <?php
                    
                    /**
                     * Configuration
                     *
                     * For more info about constants please @see http://php.net/manual/en/function.define.php
                     * If you want to know why we use "define" instead of "const" @see http://stackoverflow.com/q/2447791/1114320
                     */
                    
                    /**
                     * Configuration for: Error reporting
                     * Useful to show every little problem during development, but only show hard errors in production
                     */
                    error_reporting(E_ALL);
                    ini_set("display_errors", 1);
                    
                    /**
                     * Configuration for: Base URL
                     * This is the base url of our app. if you go live with your app, put your full domain name here.
                     * if you are using a (different) port, then put this in here, like http://mydomain:8888/subfolder/
                     * Note: The trailing slash is important!
                     */
                    define('URL', 'http://www.party-sharer.com/');
                    
                    /**
                     * Configuration for: Folders
                     * Here you define where your folders are. Unless you have renamed them, there's no need to change this.
                     */
                    define('LIBS_PATH', 'application/libs/');
                    define('CONTROLLER_PATH', 'application/controllers/');
                    define('MODELS_PATH', 'application/models/');
                    define('VIEWS_PATH', 'application/views/');
                    // don't forget to make this folder writable via chmod 775 or 777 (?)
                    // the slash at the end is VERY important!
                    define('AVATAR_PATH', 'public/avatars/');
                    
                    /**
                     * Configuration for: Additional login providers: Facebook
                     * Self-explaining. The FACEBOOK_LOGIN_PATH is the controller-action where the user is redirected to after getting
                     * authenticated via Facebook. Leave it like that unless you know exactly what you do.
                     */
                    define('FACEBOOK_LOGIN', false);
                    define('FACEBOOK_LOGIN_APP_ID', 'XXX');
                    define('FACEBOOK_LOGIN_APP_SECRET', 'XXX');
                    define('FACEBOOK_LOGIN_PATH', 'login/loginWithFacebook');
                    define('FACEBOOK_REGISTER_PATH', 'login/registerWithFacebook');
                    
                    /**
                     * Configuration for: Avatars/Gravatar support
                     * Set to true if you want to use "Gravatar(s)", a service that automatically gets avatar pictures via using email
                     * addresses of users by requesting images from the gravatar.com API. Set to false to use own locally saved avatars.
                     * AVATAR_SIZE set the pixel size of avatars/gravatars (will be 44x44 by default). Avatars are always squares.
                     * AVATAR_DEFAULT_IMAGE is the default image in public/avatars/
                     */
                    define('USE_GRAVATAR', false);
                    define('AVATAR_SIZE', 44);
                    define('AVATAR_JPEG_QUALITY', 85);
                    define('AVATAR_DEFAULT_IMAGE', 'default.jpg');
                    
                    /**
                     * Configuration for: Cookies
                     * Please note: The COOKIE_DOMAIN needs the domain where your app is,
                     * in a format like this: .mydomain.com
                     * Note the . in front of the domain. No www, no http, no slash here!
                     * For local development .127.0.0.1 is fine, but when deploying you should
                     * change this to your real domain, like '.mydomain.com' ! The leading dot makes the cookie available for
                     * sub-domains too.
                     * @see http://stackoverflow.com/q/9618217/1114320
                     * @see php.net/manual/en/function.setcookie.php
                     */
                    // 1209600 seconds = 2 weeks
                    define('COOKIE_RUNTIME', 1209600);
                    // the domain where the cookie is valid for, for local development ".127.0.0.1" and ".localhost" will work
                    // IMPORTANT: always put a dot in front of the domain, like ".mydomain.com" !
                    define('COOKIE_DOMAIN', '.party-sharer.com');
                    
                    /**
                     * Configuration for: Database
                     * This is the place where you define your database credentials, type etc.
                     *
                     * database type
                     * define('DB_TYPE', 'mysql');
                     * database host, usually it's "127.0.0.1" or "localhost", some servers also need port info, like "127.0.0.1:8080"
                     * define('DB_HOST', '127.0.0.1');
                     * name of the database. please note: database and database table are not the same thing!
                     * define('DB_NAME', 'login');
                     * user for your database. the user needs to have rights for SELECT, UPDATE, DELETE and INSERT
                     * By the way, it's bad style to use "root", but for development it will work
                     * define('DB_USER', 'root');
                     * The password of the above user
                     * define('DB_PASS', 'xxx');
                     */
                    define('DB_TYPE', 'mysql');
                    define('DB_HOST', '127.0.0.1');
                    define('DB_NAME', '*******');
                    define('DB_USER', '*******');
                    define('DB_PASS', '*******');
                    
                    /**
                     * Configuration for: Hashing strength
                     * This is the place where you define the strength of your password hashing/salting
                     *
                     * To make password encryption very safe and future-proof, the PHP 5.5 hashing/salting functions
                     * come with a clever so called COST FACTOR. This number defines the base-2 logarithm of the rounds of hashing,
                     * something like 2^12 if your cost factor is 12. By the way, 2^12 would be 4096 rounds of hashing, doubling the
                     * round with each increase of the cost factor and therefore doubling the CPU power it needs.
                     * Currently, in 2013, the developers of this functions have chosen a cost factor of 10, which fits most standard
                     * server setups. When time goes by and server power becomes much more powerful, it might be useful to increase
                     * the cost factor, to make the password hashing one step more secure. Have a look here
                     * (@see https://github.com/panique/php-login/wiki/Which-hashing-&-salting-algorithm-should-be-used-%3F)
                     * in the BLOWFISH benchmark table to get an idea how this factor behaves. For most people this is irrelevant,
                     * but after some years this might be very very useful to keep the encryption of your database up to date.
                     *
                     * Remember: Every time a user registers or tries to log in (!) this calculation will be done.
                     * Don't change this if you don't know what you do.
                     *
                     * To get more information about the best cost factor please have a look here
                     * @see http://stackoverflow.com/q/4443476/1114320
                     */
                    
                    // the hash cost factor, PHP's internal default is 10. You can leave this line
                    // commented out until you need another factor then 10.
                    define("HASH_COST_FACTOR", "10");
                    
                    /**
                     * Configuration for: Email server credentials
                     *
                     * Here you can define how you want to send emails.
                     * If you have successfully set up a mail server on your linux server and you know
                     * what you do, then you can skip this section. Otherwise please set EMAIL_USE_SMTP to true
                     * and fill in your SMTP provider account data.
                     *
                     * An example setup for using gmail.com [Google Mail] as email sending service,
                     * works perfectly in August 2013. Change the "xxx" to your needs.
                     * Please note that there are several issues with gmail, like gmail will block your server
                     * for "spam" reasons or you'll have a daily sending limit. See the readme.md for more info.
                     *
                     * define("PHPMAILER_DEBUG_MODE", 0);
                     * define("EMAIL_USE_SMTP", true);
                     * define("EMAIL_SMTP_HOST", 'ssl://smtp.gmail.com');
                     * define("EMAIL_SMTP_AUTH", true);
                     * define("EMAIL_SMTP_USERNAME", 'xxxxxxxxxx@gmail.com');
                     * define("EMAIL_SMTP_PASSWORD", 'xxxxxxxxxxxxxxxxxxxx');
                     * define("EMAIL_SMTP_PORT", 465);
                     * define("EMAIL_SMTP_ENCRYPTION", 'ssl');
                     *
                     * It's really recommended to use SMTP!
                     */
                    // Options: 0 = off, 1 = commands, 2 = commands and data, perfect to see SMTP errors, see the PHPMailer manual for more
                    define("PHPMAILER_DEBUG_MODE", 0);
                    // use SMTP or basic mail() ? SMTP is strongly recommended
                    define("EMAIL_USE_SMTP", false);
                    // name of your host
                    define("EMAIL_SMTP_HOST", 'yourhost');
                    // leave this true until your SMTP can be used without login
                    define("EMAIL_SMTP_AUTH", true);
                    // SMTP provider username
                    define("EMAIL_SMTP_USERNAME", 'yourusername');
                    // SMTP provider password
                    define("EMAIL_SMTP_PASSWORD", 'yourpassword');
                    // SMTP provider port
                    define("EMAIL_SMTP_PORT", 465);
                    // SMTP encryption, usually SMTP providers use "tls" or "ssl", for details see the PHPMailer manual
                    define("EMAIL_SMTP_ENCRYPTION", 'ssl');
                    
                    /**
                     * Configuration for: Email content data
                     *
                     * php-login uses the PHPMailer library, please have a look here if you want to add more
                     * config stuff: @see https://github.com/PHPMailer/PHPMailer
                     *
                     * As email sending within your project needs some setting, you can do this here:
                     *
                     * Absolute URL to password reset action, necessary for email password reset links
                     * define("EMAIL_PASSWORD_RESET_URL", "http://127.0.0.1/php-login/4-full-mvc-framework/login/passwordReset");
                     * define("EMAIL_PASSWORD_RESET_FROM_EMAIL", "noreply@example.com");
                     * define("EMAIL_PASSWORD_RESET_FROM_NAME", "My Project");
                     * define("EMAIL_PASSWORD_RESET_SUBJECT", "Password reset for PROJECT XY");
                     * define("EMAIL_PASSWORD_RESET_CONTENT", "Please click on this link to reset your password:");
                     *
                     * absolute URL to verification action, necessary for email verification links
                     * define("EMAIL_VERIFICATION_URL", "http://127.0.0.1/php-login/4-full-mvc-framework/login/verify/");
                     * define("EMAIL_VERIFICATION_FROM_EMAIL", "noreply@example.com");
                     * define("EMAIL_VERIFICATION_FROM_NAME", "My Project");
                     * define("EMAIL_VERIFICATION_SUBJECT", "Account Activation for PROJECT XY");
                     * define("EMAIL_VERIFICATION_CONTENT", "Please click on this link to activate your account:");
                     */
                    define("EMAIL_PASSWORD_RESET_URL", URL . "login/verifyPasswordReset");
                    define("EMAIL_PASSWORD_RESET_FROM_EMAIL", "no-reply@example.com");
                    define("EMAIL_PASSWORD_RESET_FROM_NAME", "My Project");
                    define("EMAIL_PASSWORD_RESET_SUBJECT", "Password reset for PROJECT XY");
                    define("EMAIL_PASSWORD_RESET_CONTENT", "Please click on this link to reset your password: ");
                    
                    define("EMAIL_VERIFICATION_URL", URL . "login/verify");
                    define("EMAIL_VERIFICATION_FROM_EMAIL", "no-reply@example.com");
                    define("EMAIL_VERIFICATION_FROM_NAME", "My Project");
                    define("EMAIL_VERIFICATION_SUBJECT", "Account activation for PROJECT XY");
                    define("EMAIL_VERIFICATION_CONTENT", "Please click on this link to activate your account: ");
                    
                    define("EMAIL_DELETE_URL", URL . "login/delete");
                    
                    /**
                     * Configuration for: Error messages and notices
                     *
                     * In this project, the error messages, notices etc are all-together called "feedback".
                     */
                    define("FEEDBACK_UNKNOWN_ERROR", "Unknown error occurred!");
                    define("FEEDBACK_PASSWORD_WRONG_3_TIMES", "You have typed in a wrong password 3 or more times already. Please wait 30 seconds to try again.");
                    define("FEEDBACK_ACCOUNT_NOT_ACTIVATED_YET", "Your account is not activated yet. Please click on the confirm link in the mail.");
                    define("FEEDBACK_PASSWORD_WRONG", "Password was wrong.");
                    define("FEEDBACK_USER_DOES_NOT_EXIST", "This user does not exist.");
                    // The "login failed"-message is a security improved feedback that doesn't show a potential attacker if the user exists or not
                    define("FEEDBACK_LOGIN_FAILED", "Login failed.");
                    define("FEEDBACK_USERNAME_FIELD_EMPTY", "Username field was empty.");
                    define("FEEDBACK_PASSWORD_FIELD_EMPTY", "Password field was empty.");
                    define("FEEDBACK_EMAIL_FIELD_EMPTY", "Email and passwords fields were empty.");
                    define("FEEDBACK_EMAIL_AND_PASSWORD_FIELDS_EMPTY", "Email field was empty.");
                    define("FEEDBACK_USERNAME_SAME_AS_OLD_ONE", "Sorry, that username is the same as your current one. Please choose another one.");
                    define("FEEDBACK_USERNAME_ALREADY_TAKEN", "Sorry, that username is already taken. Please choose another one.");
                    define("FEEDBACK_USER_EMAIL_ALREADY_TAKEN", "Sorry, that email is already in use. Please choose another one.");
                    define("FEEDBACK_USERNAME_CHANGE_SUCCESSFUL", "Your username has been changed successfully.");
                    define("FEEDBACK_USERNAME_AND_PASSWORD_FIELD_EMPTY", "Username and password fields were empty.");
                    define("FEEDBACK_USERNAME_DOES_NOT_FIT_PATTERN", "Username does not fit the name scheme: only a-Z and numbers are allowed, 2 to 64 characters.");
                    define("FEEDBACK_EMAIL_DOES_NOT_FIT_PATTERN", "Sorry, your chosen email does not fit into the email naming pattern.");
                    define("FEEDBACK_EMAIL_SAME_AS_OLD_ONE", "Sorry, that email address is the same as your current one. Please choose another one.");
                    define("FEEDBACK_EMAIL_CHANGE_SUCCESSFUL", "Your email address has been changed successfully.");
                    define("FEEDBACK_CAPTCHA_WRONG", "The entered captcha security characters were wrong.");
                    define("FEEDBACK_PASSWORD_REPEAT_WRONG", "Password and password repeat are not the same.");
                    define("FEEDBACK_PASSWORD_TOO_SHORT", "Password has a minimum length of 6 characters.");
                    define("FEEDBACK_USERNAME_TOO_SHORT_OR_TOO_LONG", "Username cannot be shorter than 2 or longer than 64 characters.");
                    define("FEEDBACK_EMAIL_TOO_LONG", "Email cannot be longer than 64 characters.");
                    define("FEEDBACK_ACCOUNT_SUCCESSFULLY_CREATED", "Your account has been created successfully and we have sent you an email. Please click the VERIFICATION LINK within that mail.");
                    define("FEEDBACK_VERIFICATION_MAIL_SENDING_FAILED", "Sorry, we could not send you an verification mail. Your account has NOT been created.");
                    define("FEEDBACK_ACCOUNT_CREATION_FAILED", "Sorry, your registration failed. Please go back and try again.");
                    define("FEEDBACK_VERIFICATION_MAIL_SENDING_ERROR", "Verification mail could not be sent due to: ");
                    define("FEEDBACK_VERIFICATION_MAIL_SENDING_SUCCESSFUL", "A verification mail has been sent successfully.");
                    define("FEEDBACK_ACCOUNT_ACTIVATION_SUCCESSFUL", "Activation was successful! You can now log in.");
                    define("FEEDBACK_ACCOUNT_ACTIVATION_FAILED", "Sorry, no such id/verification code combination here...");
                    define("FEEDBACK_AVATAR_UPLOAD_SUCCESSFUL", "Avatar upload was successful.");
                    define("FEEDBACK_AVATAR_UPLOAD_WRONG_TYPE", "Only JPEG and PNG files are supported.");
                    define("FEEDBACK_AVATAR_UPLOAD_TOO_SMALL", "Avatar source file's width/height is too small. Needs to be 100x100 pixel minimum.");
                    define("FEEDBACK_AVATAR_UPLOAD_TOO_BIG", "Avatar source file is too big. 5 Megabyte is the maximum.");
                    define("FEEDBACK_AVATAR_FOLDER_DOES_NOT_EXIST_OR_NOT_WRITABLE", "Avatar folder does not exist or is not writable. Please change this via chmod 775 or 777.");
                    define("FEEDBACK_AVATAR_IMAGE_UPLOAD_FAILED", "Something went wrong with the image upload.");
                    define("FEEDBACK_PASSWORD_RESET_TOKEN_FAIL", "Could not write token to database.");
                    define("FEEDBACK_PASSWORD_RESET_TOKEN_MISSING", "No password reset token.");
                    define("FEEDBACK_PASSWORD_RESET_MAIL_SENDING_ERROR", "Password reset mail could not be sent due to: ");
                    define("FEEDBACK_PASSWORD_RESET_MAIL_SENDING_SUCCESSFUL", "A password reset mail has been sent successfully.");
                    define("FEEDBACK_PASSWORD_RESET_LINK_EXPIRED", "Your reset link has expired. Please use the reset link within one hour.");
                    define("FEEDBACK_PASSWORD_RESET_COMBINATION_DOES_NOT_EXIST", "Username/Verification code combination does not exist.");
                    define("FEEDBACK_PASSWORD_RESET_LINK_VALID", "Password reset validation link is valid. Please change the password now.");
                    define("FEEDBACK_PASSWORD_CHANGE_SUCCESSFUL", "Password successfully changed.");
                    define("FEEDBACK_PASSWORD_CHANGE_FAILED", "Sorry, your password changing failed.");
                    define("FEEDBACK_ACCOUNT_UPGRADE_SUCCESSFUL", "Account upgrade was successful.");
                    define("FEEDBACK_ACCOUNT_UPGRADE_FAILED", "Account upgrade failed.");
                    define("FEEDBACK_ACCOUNT_DOWNGRADE_SUCCESSFUL", "Account downgrade was successful.");
                    define("FEEDBACK_ACCOUNT_DOWNGRADE_FAILED", "Account downgrade failed.");
                    define("FEEDBACK_NOTE_CREATION_FAILED", "Note creation failed.");
                    define("FEEDBACK_NOTE_EDITING_FAILED", "Note editing failed.");
                    define("FEEDBACK_NOTE_DELETION_FAILED", "Note deletion failed.");
                    define("FEEDBACK_COOKIE_INVALID", "Your remember-me-cookie is invalid.");
                    define("FEEDBACK_COOKIE_LOGIN_SUCCESSFUL", "You were successfully logged in via the remember-me-cookie.");
                    define("FEEDBACK_FACEBOOK_LOGIN_NOT_REGISTERED", "Sorry, you don't have an account here. Please register first.");
                    define("FEEDBACK_FACEBOOK_EMAIL_NEEDED", "Sorry, but you need to allow us to see your email address to register.");
                    define("FEEDBACK_FACEBOOK_UID_ALREADY_EXISTS", "Sorry, but you have already registered here (your Facebook ID exists in our database).");
                    define("FEEDBACK_FACEBOOK_EMAIL_ALREADY_EXISTS", "Sorry, but you have already registered here (your Facebook email exists in our database).");
                    define("FEEDBACK_FACEBOOK_USERNAME_ALREADY_EXISTS", "Sorry, but you have already registered here (your Facebook username exists in our database).");
                    define("FEEDBACK_FACEBOOK_REGISTER_SUCCESSFUL", "You have been successfully registered with Facebook.");
                    define("FEEDBACK_FACEBOOK_OFFLINE", "We could not reach the Facebook servers. Maybe Facebook is offline (that really happens sometimes).");

                    Kommentar


                    • #11
                      Ich weis das gehört hier eig. nicht hin aber könnte es sein das es am dem JS-script liegt.

                      Code:
                      var online = setInterval(function() {
                      	$.ajax({
                      		type: 'POST',
                      		url: '/online.php',
                      		data: "{}",
                      		cache: false,
                      		contentType: "application/json; charset=utf-8",
                      		dataType: "json",
                      		success: function(response, html) {
                      			if(response.state == "error") {
                      			} else {
                      				$( ".online_list" ).html(html);
                      			}
                      		},
                      		error: function(response, html) {
                      			if(response.state == "error") {
                      			} else {
                      				$( ".online_list" ).html(html);
                      			}
                      		}
                      	});
                      }, 5000);

                      Kommentar


                      • #12
                        Hm, sorry keine Ahnung wo das herkommt, dann kann ich dir nur das empfehlen mal durchzukauen: http://php-de.github.io/jumpto/leitfaden/

                        LG
                        The string "()()" is not palindrom but the String "())(" is.

                        Debugging: Finde DEINE Fehler selbst! | Gegen Probleme beim E-Mail-Versand | Sicheres Passwort-Hashing | Includes niemals ohne __DIR__
                        PHP.de Wissenssammlung | Kein Support per PN

                        Kommentar


                        • #13
                          Und http://www.phptherightway.com

                          Kommentar

                          Lädt...
                          X