@121244 כתב בתגובה: [כמה נכנסו למודול שלי]:
@אליהושש מה הועילו חכמים בתקנתם אם המאזין לא יוכל לבחור שלוחה ומייד זה מעביר לשלוחה אחרת
<?php $did = $_REQUEST['did']; $password = $_REQUEST['pass']; $goto = $_REQUEST['goto']; if($did == null){print "read=t-אנא הקש את מספר המערכת=did,yes,10,9,15,Digits,yes,,,,,,,"; exit(); } elseif($password == null){print "read=m-1800=pass,yes,100,1,24,Digits,,,,,,,,"; exit(); } $url = json_decode(file_get_contents("https://www.call2all.co.il/ym/api/Login?username={$did}&password={$password}"), true); $status = $url['responseStatus']; if($goto != null){ print "id_list_message=g-/$goto"; exit(); } elseif($status == "OK"){ print "read=f-000=goto,,1,1,24,Digits,,,,,,,,"; exit(); }else{ print "id_list_message=m-1804.t-נא ליבדוק את המיספר והסיסמא ולנסות שוב רק אם הינכם בטוחים שהם נכונים.&go_to_folder=hangup"; exit(); } ?>
למה אתה חושב שהמאזין לא יוכל לבחור שלוחה , מוגדר שרק עם התקבל ערך ב goto הוא ממשיך הלאה, לא??