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
| http://uploads.makevoid.com/jquery_dom_highlighter.html |
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
| <?=lang('album', 'album')?> | |
| <select name="album_id"> | |
| <?php foreach($user_albums as $user_album): ?> | |
| <option value="<?=$user_album->id?>"><?=$user_album->title?></option> | |
| <?php endforeach ?> |
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
| // Error | |
| // ----- | |
| Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/localhost/www/application/cache/106a6c241b8797f52e1e77317b96a201.tpl on line 3 | |
| // Php: home.php | |
| // ------------- | |
| $home = $this->template->load('home'); | |
| $home->assign('name', 'FOOBAR'); | |
| $home->assign('me', array('good'=>'LAKA')); | |
| $home->render(); |
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 | |
| defined('BASEPATH') OR exit('No direct script access allowed'); | |
| define('DS', DIRECTORY_SEPARATOR, TRUE); | |
| class Template { | |
| public $template_dir; | |
| public $template_cache; | |
| public $template_expiry; |
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
| from django.shortcuts import render_to_response | |
| # - - - | |
| # views.py | |
| # - - - | |
| def search(request): | |
| if 'q' in request.GET: | |
| query = request.GET['q'] | |
| results = Adv.objects.filter(title__icontains=query, city__slug__icontains=query) |
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 | |
| require_once('libs/curl/curl.php'); // https://github.com/shuber/curl | |
| class Youtube extends Curl | |
| { | |
| public $params = array( | |
| 'key' => 'AIzaSyD2g6U5OzaLLvzEBBacZBhfaBIKeoZnKFM', // API Key | |
| 'maxResults' => 50, // Max items in result set | |
| 'part' => 'snippet' // https://developers.google.com/youtube/v3/getting-started#part |
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 | |
| function get_image() | |
| { | |
| $query = "SELECT Image FROM Mini_Article WHERE id= 4"; | |
| $result = mysql_query($query) or exit("mysql error"); | |
| $row = mysql_fetch_row($result); | |
| $image_data = $row[0]; // Image col | |
| return $image_data; | |
| } |
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
| ... | |
| if (!$result) { | |
| print 'Error: '. mysql_error(); | |
| exit; | |
| } | |
| else | |
| { | |
| $row = mysql_fetch_row($result); |
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 | |
| $responseIDs = array( | |
| "<form action='".$_SERVER['PHP_SELF']."' method='post' style='float: left;'> | |
| الاسم : <input name='TxtLogin' type='text' maxlength='19' style='width: 90px;'/> | |
| الكلمة السرية : <input name='TxtPassword' type='password' maxlength='19' style='width: 90px;'/> | |
| <input name='BtnLogin' type='submit' value='دخول'/> | |
| </form>", | |
| "<form action='".$_SERVER['PHP_SELF']."' method='post' style='float: left;'> | |
| الاسم : <label>".$_SESSION['Login']."</label> |
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 | |
| mysql_query('INSERT INTO mytable (counttimer) | |
| VALUES ("01:11:11")'); | |
| $res = mysql_query('SELECT * FROM mytable LIMIT 1'); | |
| $row = mysql_fetch_row($res); |