נפתר עוד קוד שלא עובד
-
כתבתי כך למודול
התחברות
כאן<?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-שגיאה!&";} ?>
-
@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-שגיאה!&";} ?>
-
@קו-בקליק-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 שלך בכלל לא עובד ונתקע אחרי מספר המערכת
ושל @קנקן-חדש-מלא-ישן עובד אבל לא מקריא את השגיאה
אוטוב
בכלל -
@קו-בקליק-1 ו @קנקן-חדש-מלא-ישן מצאתי הבעיה בשרת שהשתמשתי...