הקוד
<?php
//הגדרת המשתנים
$mode=@$_REQUEST['mode'];
$min=@$_REQUEST['min'];
$ApiExtension=@$_REQUEST['ApiExtension'];
$str=@$_REQUEST['what'];
$beta=@$_REQUEST['beta'];
$PressKey=$_GET['PressKey'];
$ApifileGet=@$_REQUEST['ApifileGet'];
$str = str_replace("ivr2:", "", $str);
$str = str_replace(".wav", "", $str);
$position = strrpos($str, "/");
$file_number = substr($str, $position + 1);
$Apifile=$file_number;
//הגדרת האורך מראש
if($Apifile=001){$all="34";}
if($Apifile=002){$all="28";}
if($Apifile=003){$all="25";}
if($Apifile=004){$all="24";}
if($Apifile=005){$all="39";}
if($Apifile=006){$all="10";}
if($Apifile=017){$all="16";}
if($Apifile=018){$all="23";}
if($Apifile=019){$all="31";}
if($Apifile=023){$all="16";}
if($Apifile=033){$all="19";}
if($Apifile=034){$all="26";}
if($Apifile=036){$all="7";}
if($Apifile=037){$all="14";}
if($Apifile=052){$all="20";}
if($Apifile=054){$all="33";}
if($Apifile=055){$all="12";}
if($Apifile=056){$all="20";}
if($Apifile=057){$all="18";}
if($Apifile=058){$all="23";}
if($beta == yes){
print "$all $Apifile";
exit();
}
if($PressKey == 2)
{
if($mode == null){print "read=t-למעבר להודעה הקודמת, הקישוא 1, לבחירת מדריך אחר, הקישוא 2, למעבר להודעה הבאה , הקישוא 3, למעבר לדקה מסוימת בתוך הקובץ, הקישוא 4, לקבלת הסרטון המקורי במייל, הקישוא 5, =mode,,1,1,15,NO,yes,,,,,,,";
exit();
}
//מקש 4
elseif($mode == "4"){
if($min == null){print "read=t-אורך הקובץ הוא.n-{$all}.t-דקות.t-אנא הקישוא את הדקה אליה ברצונכם לעבור =min,,1,3,15,Number,yes,,,,,,,";
exit();
}
else
{$min1=$min * 60000;
print "go_to_folder_and_play=/{$ApiExtension},{$Apifile},{$min1}";}
}
//מקש 1
elseif($mode == "1"){$Apifile1=$Apifile -1;
print "go_to_folder_and_play=/{$ApiExtension},{$Apifile1}";
exit();
}
//מקש 3
elseif($mode == "3"){$Apifile1=$Apifile +1;
print "go_to_folder_and_play=/{$ApiExtension},{$Apifile1}";
exit();
}
//מקש 2
elseif($mode == "2"){
if($ApifileGet == null){
print "read=t-אנא הקישוא את מספר הקובץ למעבר=ApifileGet,,3,3,15,Digits,yes,,,,,,,";
exit();
}
else
{print "go_to_folder_and_play=/{$ApiExtension},{$ApifileGet}";
exit();
} }
}
elseif($PressKey == "*"){print"id_list_message=f-אפשרויות.tts";}
exit();
קישור https://795697842.000webhostapp.com/mss/ezerPhone/playfile.php/3_extison.php