PATH:
home
/
letacommog
/
laindinois
/
OLD
/
wp-content
/
plugins
/
downtown-rest-api
/
inc
<?php /*Some Thing */ function dwt_listing_basic_auth() { $pc = $cs = false; global $dwt_listing_api; $response = ''; $pcode = ( isset( $dwt_listing_api['appKey_pCode'] ) && $dwt_listing_api['appKey_pCode'] != "" ) ? $dwt_listing_api['appKey_pCode'] : ''; $ccode = ( isset( $dwt_listing_api['appKey_Scode'] ) && $dwt_listing_api['appKey_Scode'] != "" ) ? $dwt_listing_api['appKey_Scode'] : ''; if( $pcode == "" || $ccode == "" ) { return false; } foreach (getallheaders() as $name => $value) { if( $name == "Authorization" || $name == "authorization" ) { $adminInfo = base64_decode( trim( str_replace("Basic", "", $value) ) ); } if( ($name == "Purchase-Code" || $name == "purchase-code" ) && $pcode == $value ){ $pc = true; } if( ( $name == "Custom-Security" || $name == "custom-security" ) && $ccode == $value ) {$cs = true;} } return ( $pc == true && $cs == true ) ? true : false; } if (!function_exists('getallheaders')) { function getallheaders() { $headers = array(); foreach ($_SERVER as $name => $value) { if (substr($name, 0, 5) == 'HTTP_') { $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value; } } return $headers; } }
[+]
..
[-] categories-images.php
[edit]
[-] notifications.php
[edit]
[-] options-init.php
[edit]
[-] basic-auth.php
[edit]
[+]
paypal
[+]
stripe-php
[-] index.php
[edit]
[-] auth.php
[edit]