array( 'url' => $image_url, 'caption' => $caption, 'published' => 'true', 'access_token' => QA_FB_PAGE_TOKEN ), 'timeout' => 60 ) );} /* ============================== TWITTER POST============================== */ function qa_post_to_twitter($image_url, $caption) { // STEP 1: Upload media $media_response = qa_twitter_oauth_request( 'https://upload.twitter.com/1.1/media/upload.json', array('media' => base64_encode(file_get_contents($image_url))), 'POST' ); if (empty($media_response->media_id_string)) return; // STEP 2: Post tweet qa_twitter_oauth_request( 'https://api.twitter.com/1.1/statuses/update.json', array( 'status' => $caption, 'media_ids' => $media_response->media_id_string ), 'POST' );} /* ============================== TWITTER OAUTH CORE============================== */ function qa_twitter_oauth_request($url, $params, $method = 'POST') { $oauth = array( 'oauth_consumer_key' => QA_TW_CONSUMER_KEY, 'oauth_token' => QA_TW_ACCESS_TOKEN, 'oauth_nonce' => wp_generate_password(12, false), 'oauth_timestamp' => time(), 'oauth_signature_method' => 'HMAC-SHA1', 'oauth_version' => '1.0' ); $base_params = array_merge($oauth, $params); ksort($base_params); $base_string = strtoupper($method) . "&" . rawurlencode($url) . "&" . rawurlencode(http_build_query($base_params, '', '&', PHP_QUERY_RFC3986)); $signing_key = rawurlencode(QA_TW_CONSUMER_SECRET) . '&' . rawurlencode(QA_TW_ACCESS_SECRET); $oauth['oauth_signature'] = base64_encode( hash_hmac('sha1', $base_string, $signing_key, true) ); $header = 'OAuth '; $values = array(); foreach ($oauth as $key => $value) { $values[] = $key . '="' . rawurlencode($value) . '"'; } $header .= implode(', ', $values); $args = array( 'headers' => array('Authorization' => $header), 'body' => $params, 'timeout' => 60 ); $response = wp_remote_request($url, array_merge($args, array('method' => $method))); return json_decode(wp_remote_retrieve_body($response));} Former Pakistani Skipper Shahid Afridi throws his weight behind PM Imran Khan over domestic cricket setup – TIMES OF ISLAMABAD
Times of Islamabad

Former Pakistani Skipper Shahid Afridi throws his weight behind PM Imran Khan over domestic cricket setup

Former Pakistani Skipper Shahid Afridi throws his weight behind PM Imran Khan over domestic cricket setup

LAHORE – Former Pakistan captain Shahid Afridi has thrown his weightbehind the current domestic cricket structure a day after Prime MinisterImran Khan, who is also the Patron of the Pakistan Cricket Board, fullybacked it during a broadcast deal signing ceremony between the PCB and PTVSports.

Afridi, who played a staggering 524 international matches for Pakistan (27Tests, 398 ODIs, 99 T20Is) in a career spanning 20 years, said on Thursdaythat the new system needs to be given two to three years for it to payrewards during his interaction with the media on the sidelines of a ShahidAfridi Foundation event.

“Currently nearly 290 players are in the system with contracts [270domestic central or seasonal contracts besides PCB centrally contractedplayers] while around 100 former cricketers will be given jobs for CricketAssociations. I don’t think so there is unemployment at large with the endof departmental cricket, most of the side-lined players didn’t have afuture in the game or were past their prime as players and nearingretirement,” he said.

On 30 September, the PCB will begin its second domestic season under thenew domestic cricket model, which is based on six Cricket Associations.Over the course of the 2020-21 season, in which National T20 Cup,Quaid-e-Azam Trophy and Pakistan Cup One-Day tournament will be played,each association will field its first XI, second XI and U19 teams.

“Every system formulated needs to be given at least two to three years,”Afridi said. “This revamped system is still new in the sense that it is inits second year. The results will start coming in a year or so from now.

“If the Prime Minister thinks that this system will develop world-classplayers then we must back it for a year or the next 18 months at least. Weshouldn’t rush for results, Pakistan is seven decades old, everything needstime and this system also needs time and our backing.”

Meanwhile, the PCB announced on Wednesday, a comprehensive plan to boostdomestic cricket while providing more job opportunities following ahistoric $200 million (three-year) deal for broadcast with the statebroadcaster. The deal will take all domestic and international cricketfeaturing men’s, women’s and age-group cricketers to every home in Pakistan.

The PCB also revealed its plans to invest PKR15billion over the next threeyears on both men and women domestic cricket structure, which includeupgrading of stadiums and infrastructure, building provincial academies andcentres of excellence.

This will also lay an employment path for over 100 former cricketers ascoaches and managers for the City Cricket Associations, restartinter-university cricket, investment in grass roots cricket and improveplayers’ earning and welfare.