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

    נפתר עוד קוד שלא עובד

    פורום PHP
    3
    6
    236
    טוען פוסטים נוספים
    • מהישן לחדש
    • מהחדש לישן
    • הכי הרבה הצבעות
    תגובה
    • הגיבו כנושא
    התחברו בכדי לפרסם תגובה
    נושא זה נמחק. רק משתמשים עם הרשאות מתאימות יוכלו לצפות בו.
    • 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
                • פוסט ראשון
                  פוסט אחרון