• דף הבית
    • אינדקס קישורים
    • פוסטים אחרונים
    • משתמשים
    • חיפוש בהגדרות המתקדמות
    • חיפוש גוגל בפורום
    • ניהול המערכת
    • ניהול המערכת - שרת private
    • הרשמה
    • התחברות

    עוד קוד שלא עובד

    מתוזמן נעוץ נעול הועבר נפתר פורום PHP
    6 פוסטים 3 כותבים 384 צפיות 1 עוקבים
    טוען פוסטים נוספים
    • מהישן לחדש
    • מהחדש לישן
    • הכי הרבה הצבעות
    תגובה
    • תגובה כנושא
    התחברו כדי לפרסם תגובה
    נושא זה נמחק. רק משתמשים עם הרשאות מתאימות יוכלו לצפות בו.
    • B מנותק
      BARKOL
      נערך לאחרונה על ידי

      כתבתי כך למודול התחברות כאן

      <?php
      
      $ApiDID = $GET_['username'];
      $password = $GET_['password'];
      $txt1 = "מספר המערכת";
      $txt2 = "סיסמת הניהול";
      $url = "https://www.call2all.co.il/ym/api/Login?username=$ApiDID&password=$password";
      $handle = curl_init();
      
      if($ApiDID == NULL){echo "read=t-$txt1=username,yes,,,10,Digits,yes";exit();}
      if($password == NULL){echo "read=t-$txt2=password,yes,,,10,Digits,yes";exit();}
      
      curl_setopt_array($handle,
        array(
          CURLOPT_URL    => $url,
      CURLOPT_RETURNTRANSFER   => true,
        )
      );
       
      $data = curl_exec($handle);
       
      curl_close($handle);
       
      $data = json_decode( $data );
      $z = $data->responseStatus ;
      if ($z == OK){
      print "id_list_massage=t-טוב!&";
      include "loginok.php";
      }
      else{print "id_list_massage=t-שגיאה!&";}
      
      ?>
      

      ומבקש מספר מערכת ואחר כך נהיה שקט...

      ק ק 2 תגובות תגובה אחרונה תגובה ציטוט 0
      • ק מנותק
        קו בקליק 1 @BARKOL
        נערך לאחרונה על ידי

        @BARKOL

        <?php
         
        $ApiDID = $GET_['username'];
        $password = $GET_['password'];
        $txt1 = "מספר המערכת";
        $txt2 = "סיסמת הניהול";
        $url = "https://www.call2all.co.il/ym/api/Login?username=$ApiDID&password=$password";
        
         
        if($ApiDID == NULL){echo "read=t-$txt1=username,yes,,,10,Digits,yes";exit();}
        if($password == NULL){echo "read=t-$txt2=password,yes,,,10,Digits,yes";exit();}
         $handle = curl_init();
        curl_setopt_array($handle,
          array(
            CURLOPT_URL    => $url,
        CURLOPT_RETURNTRANSFER   => true,
          )
        );
         
        $data = curl_exec($handle);
         
        curl_close($handle);
         
        $data = json_decode( $data );
        $z = $data->responseStatus ;
        if ($z == OK){
        print "id_list_massage=t-טוב!&";
        include "loginok.php";
        }
        else{print "id_list_massage=t-שגיאה!&";}
         
        ?>
        
        
        B תגובה 1 תגובה אחרונה תגובה ציטוט 0
        • ק מנותק
          קנקן חדש מלא ישן @BARKOL
          נערך לאחרונה על ידי

          @barkol
          תנסה ככה

          <?php
           
          $ApiDID = $_GET['username'];
          $password = $_GET['password'];
          $txt1 = "מספר המערכת";
          $txt2 = "סיסמת הניהול";
          $url = "https://www.call2all.co.il/ym/api/Login?username=$ApiDID&password=$password";
          $handle = curl_init();
           
          if($ApiDID == NULL){echo "read=t-$txt1=username,yes,,,10,Digits,yes";exit();}
          if($password == NULL){echo "read=t-$txt2=password,yes,,,10,Digits,yes";exit();}
           
          curl_setopt_array($handle,
            array(
              CURLOPT_URL    => $url,
          CURLOPT_RETURNTRANSFER   => true,
            )
          );
           
          $data = curl_exec($handle);
           
          curl_close($handle);
           
          $data = json_decode( $data );
          $z = $data->responseStatus ;
          if ($z == OK){
          print "id_list_massage=t-טוב!&";
          include "loginok.php";
          }
          else{print "id_list_massage=t-שגיאה!&";}
           
          ?>
          
          B תגובה 1 תגובה אחרונה תגובה ציטוט 0
          • B מנותק
            BARKOL @קנקן חדש מלא ישן
            נערך לאחרונה על ידי BARKOL

            @קו-בקליק-1 @קנקן-חדש-מלא-ישן
            מה ההבדל??? בין זה

            <?php
             
            $ApiDID = $GET_['username'];
            $password = $GET_['password'];
            $txt1 = "מספר המערכת";
            $txt2 = "סיסמת הניהול";
            $url = "https://www.call2all.co.il/ym/api/Login?username=$ApiDID&password=$password";
            $handle = curl_init();
             
            if($ApiDID == NULL){echo "read=t-$txt1=username,yes,,,10,Digits,yes";exit();}
            if($password == NULL){echo "read=t-$txt2=password,yes,,,10,Digits,yes";exit();}
             
            curl_setopt_array($handle,
              array(
                CURLOPT_URL    => $url,
            CURLOPT_RETURNTRANSFER   => true,
              )
            );
             
            $data = curl_exec($handle);
             
            curl_close($handle);
             
            $data = json_decode( $data );
            $z = $data->responseStatus ;
            if ($z == OK){
            print "id_list_massage=t-טוב!&";
            include "loginok.php";
            }
            else{print "id_list_massage=t-שגיאה!&";}
             
            ?>
            

            לזה???

            <?php
             
            $ApiDID = $GET_['username'];
            $password = $GET_['password'];
            $txt1 = "מספר המערכת";
            $txt2 = "סיסמת הניהול";
            $url = "https://www.call2all.co.il/ym/api/Login?username=$ApiDID&password=$password";
             
             
            if($ApiDID == NULL){echo "read=t-$txt1=username,yes,,,10,Digits,yes";exit();}
            if($password == NULL){echo "read=t-$txt2=password,yes,,,10,Digits,yes";exit();}
             $handle = curl_init();
            curl_setopt_array($handle,
              array(
                CURLOPT_URL    => $url,
            CURLOPT_RETURNTRANSFER   => true,
              )
            );
             
            $data = curl_exec($handle);
             
            curl_close($handle);
             
            $data = json_decode( $data );
            $z = $data->responseStatus ;
            if ($z == OK){
            print "id_list_massage=t-טוב!&";
            include "loginok.php";
            }
            else{print "id_list_massage=t-שגיאה!&";}
             
            ?>
            

            ולזה???

            <?php
             
            $ApiDID = $_GET['username'];
            $password = $_GET['password'];
            $txt1 = "מספר המערכת";
            $txt2 = "סיסמת הניהול";
            $url = "https://www.call2all.co.il/ym/api/Login?username=$ApiDID&password=$password";
            $handle = curl_init();
             
            if($ApiDID == NULL){echo "read=t-$txt1=username,yes,,,10,Digits,yes";exit();}
            if($password == NULL){echo "read=t-$txt2=password,yes,,,10,Digits,yes";exit();}
             
            curl_setopt_array($handle,
              array(
                CURLOPT_URL    => $url,
            CURLOPT_RETURNTRANSFER   => true,
              )
            );
             
            $data = curl_exec($handle);
             
            curl_close($handle);
             
            $data = json_decode( $data );
            $z = $data->responseStatus ;
            if ($z == OK){
            print "id_list_massage=t-טוב!&";
            include "loginok.php";
            }
            else{print "id_list_massage=t-שגיאה!&";}
             
            ?>
            

            זה בדיוק אותו דבר???

            תגובה 1 תגובה אחרונה תגובה ציטוט 0
            • B מנותק
              BARKOL @קו בקליק 1
              נערך לאחרונה על ידי

              @קו-בקליק-1 שלך בכלל לא עובד ונתקע אחרי מספר המערכת
              ושל @קנקן-חדש-מלא-ישן עובד אבל לא מקריא את השגיאה או טוב בכלל

              B תגובה 1 תגובה אחרונה תגובה ציטוט 0
              • B מנותק
                BARKOL @BARKOL
                נערך לאחרונה על ידי BARKOL

                @קו-בקליק-1 ו @קנקן-חדש-מלא-ישן מצאתי 👍 הבעיה בשרת שהשתמשתי...

                תגובה 1 תגובה אחרונה תגובה ציטוט 0

                שלום! נראה שהשיחה הזו מעניינת אותך, אבל עדיין אין לך חשבון.

                נמאס לכם לגלול בין אותם הפוסטים בכל ביקור? כשנרשמים לחשבון, תמיד תחזרו בדיוק למקום שבו הייתם קודם, ותוכלו לבחור לקבל התראות על תגובות חדשות (בין אם במייל, ובין אם בהתראת פוש). תוכלו גם לשמור סימניות ולפרגן ב-upvote לפוסטים כדי להביע הערכה לחברי קהילה אחרים.

                בעזרת התרומה שלך, הפוסט הזה יכול להיות אפילו טוב יותר 💗

                הרשמה התחברות
                • פוסט ראשון
                  פוסט אחרון