This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function provinces($mode,$id=0) | |
| { | |
| $provinces= array( | |
| 1=>"آذربایجانشرقی", | |
| 2=>"آذربایجانغربی", | |
| 3=>"اردبیل", | |
| 4=>"اصفهان", | |
| 5=>"البرز", | |
| 6=>"ایلام", | |
| 7=>"بوشهر", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function cities($mode,$pid=1) { | |
| $cities = array( | |
| 1 => array( | |
| 1 => "اسکو", | |
| 2 => "اهر", | |
| 3 => "آذرشهر", | |
| 4 => "بستان آباد", | |
| 5 => "بناب", | |
| 6 => "تبریز", | |
| 7 => "جلفا", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function flash($message,$level='info') | |
| { | |
| session()->flash('flash_message',$message); | |
| session()->flash('flash_message_level',$level); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Convertnumber2persian($srting) { | |
| $srting = str_replace('0','۰', $srting); | |
| $srting = str_replace('1','۱', $srting); | |
| $srting = str_replace('2','۲', $srting); | |
| $srting = str_replace('3','۳', $srting); | |
| $srting = str_replace('4','۴', $srting); | |
| $srting = str_replace('5','۵', $srting); | |
| $srting = str_replace('6','۶', $srting); | |
| $srting = str_replace('7','۷', $srting); | |
| $srting = str_replace('8','۸', $srting); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function get_instagram_users_data($pageUrl) { | |
| $url = $pageUrl; | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); | |
| curl_setopt($ch, CURLOPT_HEADER, false); | |
| curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); | |
| curl_setopt($ch, CURLOPT_URL, $url); | |
| curl_setopt($ch, CURLOPT_REFERER, $url); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); | |
| $result = curl_exec($ch); |