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 | |
| //session_start(); | |
| ini_set('display_errors', 1); | |
| ini_set('error_reporting', E_ALL); | |
| require_once("includes/all.inc.php"); | |
| require_once("includes/Twitter.class.php"); | |
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
| tweetExists |
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 | |
| /****** STYLE GUIDES *****/ | |
| /* About parameters: */ | |
| /* | |
| To make it flexible, all parameters have to be optional (that's why it receives an array) but there are some that are hard to remember and could | |
| be the default for certain scenarios. So if the parameter needed is in the array $parameter use it, if not use | |
| the default fallback. | |
| */ |
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 | |
| /*ini_set('display_errors', 1); | |
| ini_set('error_reporting', E_ALL); | |
| */ | |
| require_once("includes/all.inc.php"); | |
| require_once("includes/header.inc.php"); | |
| require_once("includes/footer.inc.php"); |
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
| // This function will get only the latest 5000 followers of certain user and update them in the db | |
| // First we ask Twitter for fresh followers | |
| $fresh_followers = array(); | |
| $tmhOAuth = initTmhOAuth($organizer_username); | |
| $tmhOAuth->request('GET', $tmhOAuth->url('1/followers/ids'), array( | |
| 'stringify_ids' => true, | |
| 'screen_name' => $organizer_username | |
| )); |
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 | |
| $config = array(); | |
| $config["site_url"] = "JuegoKickButtowski.com.ar"; | |
| $config["site_name"] = "JuegoKickButtowski.com.ar"; | |
| $config["full_domain"] = "http://juegokickbuttowski.com.ar"; | |
| $config["domain_extension"] = "com"; | |
| $config["domain_country"] = "ar"; | |
| $config["primary_keyword"] = "Juegos de KICK BUTTOWSKI"; | |
| $config["secondary_keyword"] = "KICK BUTTOWSKI"; |
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 followUser($user_id, $tw_username_to_follow) | |
| { | |
| $response_array = array(); | |
| $tmhOAuth = new tmhOAuth(array( | |
| 'consumer_key' => TWITTER_CONSUMER_KEY, | |
| 'consumer_secret' => TWITTER_CONSUMER_SECRET, | |
| )); | |
| $response_array = array( |
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
| // Open all mighty fancybox | |
| $.fancybox( | |
| '<div id="create-rule-wrapper">'+ | |
| '<div class="top-message blue">'+ | |
| '<h4 class="title"><?php echo translate("DEFAULT_HINT_TITLE", null, null, false); ?></h4>'+ | |
| '<div class="description">'+ | |
| '<p>'+ | |
| '<?php echo translate("DEFAULT_HINT_DESCRIPTION", null, null, false); ?>'+ | |
| '</p>'+ | |
| '</div>'+ |
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 getOrganizerTweets($search_query, $draw_start_date, $draw_end_date, $organizer_username) | |
| { | |
| $search_results_aux = array(); | |
| $tmhOAuth = initTmhOAuth($organizer_username); | |
| // print_str($tmhOAuth, $organizer_username." CREDENTIALS"); | |
| // Now perform the search | |
| $last_page = 1; |
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
| <div id="wrapper"> | |
| <?php | |
| require_once("./templates/top-bar.php"); | |
| ?> | |
| <div class="wrap information" id="top-message" > | |
| <h4><?php echo translate("COMPLETE_DATA_TO_CREATE_DRAW"); ?></h4> | |
| <p> | |
| <?php echo translate("CREATE_DRAW_HELP_1"); ?> |