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 "imdb.php"; | |
| $imdb = new Imdb(); | |
| $imdb->setImdbId("tt0021749"); | |
| echo $imdb->getThumbnails(); | |
| ?> |
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 | |
| class Imdb{ | |
| private $url = "http://www.imdb.es/title/%s/"; | |
| private $imdb_id = NULL; | |
| private $html = NULL; | |
| public function setImdbId( $imdb_id ){ |
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
| Africa/Abidjan | |
| Africa/Accra | |
| Africa/Addis_Ababa | |
| Africa/Algiers | |
| Africa/Asmara | |
| Africa/Asmera | |
| Africa/Bamako | |
| Africa/Bangui | |
| Africa/Banjul | |
| Africa/Bissau |
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
| SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd", Locale.US); | |
| sdf.setTimeZone(TimeZone.getTimeZone( "America/Managua" )); | |
| String now = sdf.format(new Date()); |
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
| ^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$ |
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
| /^[0-9a-f]{32}$/i |
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
| /^[0-9a-f]{32}$/i |
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
| CREATE TABLE `tblTwitterApps` ( | |
| `app_id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, | |
| `app_name` VARCHAR(100) NOT NULL, | |
| `app_consumer_key` VARCHAR(100) NOT NULL, | |
| `app_consumer_secret` VARCHAR(100) NOT NULL, | |
| PRIMARY KEY (`app_id`) | |
| ) | |
| ENGINE = MyISAM; |
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
| CREATE TABLE `tblTwitterAccounts` ( | |
| `id` BIGINT(20) UNSIGNED NOT NULL, | |
| `screen_name` VARCHAR(25) NOT NULL, | |
| `oauth_token` VARCHAR(100) NOT NULL, | |
| `oauth_token_secret` VARCHAR(100) NOT NULL, | |
| `app_id` INTEGER UNSIGNED NOT NULL, | |
| PRIMARY KEY (`id`, `app_id`) | |
| ) | |
| ENGINE = MyISAM; |
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
| /** | |
| * @Method mt_twitter_accounts_add | |
| * @Desc Add new twitter account | |
| */ | |
| public function mt_twitter_accounts_add( ) | |
| { | |
| $query = "REPLACE INTO tblTwitterAccounts | |
| ( | |
| id, | |
| screen_name, |
OlderNewer