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 Utf8_ansi($valor='') { | |
| $utf8_ansi2 = array( | |
| "\u00c0" =>"À", | |
| "\u00c1" =>"Á", | |
| "\u00c2" =>"Â", | |
| "\u00c3" =>"Ã", | |
| "\u00c4" =>"Ä", | |
| "\u00c5" =>"Å", | |
| "\u00c6" =>"Æ", |
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
| <?php | |
| if(!session_id()) { | |
| session_start(); | |
| } | |
| require_once __DIR__ . '/vendor/autoload.php'; // change path as needed | |
| $fb = new \Facebook\Facebook([ | |
| 'app_id' => '', | |
| 'app_secret' => '', |
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
| <script> | |
| $(document).ready(function(){ | |
| function renderSearchResult () { | |
| var searchText = $(".website-search-input").val().trim(); | |
| if ( searchText.length < 2 ) { | |
| $(".website-search-result").remove(); |
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
| RewriteEngine on | |
| RewriteBase /your_project_sub_directory/ | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule ^(.*)$ index.php?$1 [L] |
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
| <?php | |
| /** | |
| * @SWG\Swagger( | |
| * basePath="/v1", | |
| * host="api.local", | |
| * schemes={"http"}, | |
| * produces={"application/json"}, | |
| * consumes={"application/json"}, | |
| * @SWG\Info( |
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
| <?php | |
| /** | |
| * @SWG\Swagger( | |
| * basePath="/v1", | |
| * host="api.local", | |
| * schemes={"http"}, | |
| * produces={"application/json"}, | |
| * consumes={"application/json"}, | |
| * @SWG\Info( |
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
| <?php | |
| $file_name = $_GET['file']; | |
| $file_url = 'http://yoyostudy.com.au/download/' . $file_name; | |
| header('Content-Type: application/octet-stream'); | |
| header("Content-Transfer-Encoding: Binary"); | |
| header("Content-disposition: attachment; filename=\"".$file_name."\""); | |
| readfile($file_url); |
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
| $url = "http://niloybanik.com/mail_api/index.php"; | |
| $content = json_encode(array( 'to'=>$email, | |
| 'from'=>'notifications@reminder.com', | |
| 'body'=>$msg_content , | |
| 'subject'=>"$user_name sent your reminder" )); | |
| $curl = curl_init($url); | |
| curl_setopt($curl, CURLOPT_HEADER, false); |
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
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script> | |
| <link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/css/select2.min.css" rel="stylesheet" /> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/js/select2.min.js"></script> | |
| <select class="select2"> | |
| <option> Choose an Option </option> | |
| <option> America</option> | |
| <option> Bangladesh</option> | |
| <option> Canada</option> |
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
| $('body').on('keyup','.search_checkbox',function(){ | |
| var attr_name = $(this).attr('attr-name'); | |
| var search_value = $(this).val(); | |
| if($(this).val().length > 0){ | |
| $('.attr_'+attr_name).hide(); | |
| $('.attr_'+attr_name).each(function(){ | |
| var values_value = $(this).text(); |
NewerOlder