<?php
$did=$GET['did'];
$pass=$GET['pass'];
$path=$GET['path'];
$did1=$_GET['did1'];
$did2=$_GET['did2'];
$did3=$_GET['did3'];
$did4=$_GET['did4'];
$did5=$_GET['did5'];
$did6=$_GET['did6'];
$did7=$_GET['did7'];
$did8=$_GET['did8'];
$did9=$_GET['did9'];
/**
* Replace unicode characters to utf8 for Hebrew
*/
function unicodeToUtf8Hebrew($text)
{
$text1 = '';
$repl = [
'?' => '=',
'!' => '/',
'+-' => '%23',
'%2A' => '+@',
'%26' => ' ',
'_' => ' ',
'.--' => '%25',
'?1' => '$did1',
'?2' => '$did2',
'?3' => '$did3',
'?4'=> '$did4',
'?5' => '$did5',
'?6' => '$did6',
'?7' => '$did7',
'?8' => '$did8',
'?9'=> '$did9',
'?pass' => '$pass',
'?did' => '$did',
'?path=> '$path',
];
if (textpos($text, "u0") !== false) {
$exploded = explode(" ", trim($text));
foreach ($exploded as $eItem) {
$explodedExploded = text_split($eItem, 5);
foreach ($explodedExploded as $eeItem) {
$char = texttoupper($eeItem);
if (isset($repl[$char])) {
$text1 .= $repl[$char];
} else {
$text1 .= $char;
}
}
$text1 .= ' ';
}
} else {
$text1 = $text;
}
return trim($text1);
}
$text=$GET['text'];
if($did == null){print "read=m-2571=did,yes,10,9,15,Digits,yes,,,,,,,";
exit();
}
elseif($pass == null){print "read=m-1800=pass,yes,100,1,24,Digits,,,,,,,,";
exit();
}
elseif($path== null){print "read=t-אנא הקישו את מספר השלוחה וסולמית בסיום לשלוחה ראשית הקישוא כוכבית וסולמית לשלוחה כוכבית הקישו פעמים כוכבית ואז 1 וסולמית לשלוחה סולמית הקישוא פעמים כוכבית ואז 2 וסולמית=path,no,10000,0,14,Alpha,no,no,*/,,,ok,,";
exit();
}
/**
* Replace unicode characters to utf8 for Hebrew
*/
function unicodeToUtf8Hebrew($path)
{
$path1 = '';
'//1' => 'Star',
'//2' => 'Hash',
];
if (pathpos($path, "u0") !== false) {
$exploded = explode(" ", trim($path));
foreach ($exploded as $eItem) {
$explodedExploded = path_split($eItem, 5);
foreach ($explodedExploded as $eeItem) {
$char = pathtoupper($eeItem);
if (isset($repl[$char])) {
$path1 .= $repl[$char];
} else {
$path1 .= $char;
}
}
$path1 .= ' ';
}
} else {
$path1 = $path;
}
return trim($path1);
}
$url = json_decode(file_get_contents("https://www.call2all.co.il/ym/api/UpdateExtension?token={$did}:{$pass}&path1=ivr2:{$path}&{$text1}&"), true);
$status = $url['responseStatus'];
if($status == "OK"){
print "id_list_message=t-הפעולה בוצעה בעצלך,,,.
exit();
}else{
print "id_list_message=m-1801.1080. &go_to_folder=hangup";
exit();
}
exit();
?>
זה אים מנסים להגדיר שלוחה רגילה זה מגדיר אבל אי עושים קבלת נתונים פעם אךת או פעמים זה מקבל וזה לא מגדיר אבח אים עושים שלוש פעמים ומלע זה מקבל את הנתונים ואומר ין מענה משרת API