'English', // Bermuda, Bahamas,
'hi' => 'हिंदी', // hindi India
'zh' => '中文',
'de' => 'Deutsche', // German, Austria, Norwegian, Danish
'tr' => 'Türkçe',
'bn' => 'বাঙালি', // Bengali, bangladesh
//'nl' => 'Nederlands', // Holland
'vi' => 'Tiếng Việt',
'pt' => 'Português', // brazil
'ur' => 'اردو', // Urdu, Pakistan
'tk' => 'Türkmenistan', // Turkmenistan
'fr' => 'Français',
'ar' => 'عربى', // rtl, egyptian, morocco, United Arab Emirates, Saudi Arabia, Bahrain, Oman,
'he' => 'עִברִית', // Hebrew, Israel
'id' => 'Bahasa Indonesia', // Norwegian, Danish, Latvia,
'lb' => 'lëtzebuergesch', // Luxembourgish
'ro' => 'Română', // romani
'ru' => 'Pусский', // russia
'ga' => 'Gaeilge', // Irish
'ja' => '日本', // Japanese
'ko' => '한국인', // Korean
'no' => 'Norsk', // Norwegian Bokmål, Norway
'pl' => 'Polskie', // Poland
'sv' => 'Svenska', // Swedish, Finnish
'th' => 'ไทย', // Thai
'tl' => 'Filipino', // Philippines Filipino
'ml' => 'മലയാളി', // Malay, Brunei
'cs' => 'čeština', // Czech
'el' => 'Ελληνικά', // Greek, Cyprus
//'es' => 'Español', // Spanish, Panama
'fi' => 'Suomalainen', // Estonia, Croatia, Finnish Finland,
'lt' => 'Lietuvių', // Lithuanian
'la' => 'Latinus', // Latin
'hu' => 'Magyarország', // Hungary
'it' => 'Italiano',
'mt' => 'Malti', // Malta Maltese
'mi' => 'Māori', // New Zealand
'sl' => 'Slovenščina', // Slovenia
'sw' => 'Kiswahili', // Swahili
/*'es' => 'Español',
'da' => 'Dansk',
'th' => 'ไทย',
'uk' => 'Український',
'hk' => '香港',
'af' => 'Afrikaans',
'am' => 'አማርኛ',
'az' => 'Azərbaycan dili',
'be' => 'беларускі',
'bg' => 'български',
'bs' => 'Bosanski',
'ca' => 'Català',
'tw' => '台灣',
'hr' => 'Hrvatski',
'hy' => 'հայերեն',
'ceb'=> 'Sugbuanon',
'co' => 'Corsu',
'eo' => 'Esperanto',
'et' => 'Eesti keel',
'tl' => 'Filipino',
'fa' => 'فارسی', // rtl
'fy' => 'Frysk',
'el' => 'Ελληνικά',
'eu' => 'Euskara',
'ig' => 'Igbo',
'is' => 'Íslenska',
'iw' => 'עִברִית', // rtl
'ha' => 'Hausa',
'haw'=> 'Ōlelo Hawaiʻi',
'hmn'=> 'Hmong',
'ht' => 'Kreyòl ayisyen',
'ga' => 'Gaeilge',
'gd' => 'Gàidhlig na h-Alba',
'gl' => 'Galego',
'gu' => 'ગુજરાતી',
'jw' => 'Wong jawa',
'ka' => 'ქართველი',
'kk' => 'Қазақ',
'km' => 'ភាសាខ្មែរ',
'kn' => 'ಕನ್ನಡ',
'ku' => 'Kurdî (Kurmancî)',
'ky' => 'Кыргызча',
'lo' => 'ລາວ',
'la' => 'Latine',
'lv' => 'Latviešu',
'lt' => 'Lietuviškai',
'mg' => 'Malagasy',
'mk' => 'Македонски',
'ms' => 'Melayu',
'mr' => 'मराठी',
'ml' => 'മലയാളം',
'mn' => 'Монгол хэл',
'my' => 'မြန်မာ (မြန်မာ)',
'ne' => 'नेपाली',
'ny' => 'Chichewa',
'or' => 'ଓଡିଆ (ଓଡିଆ)',
'pa' => 'ਪੰਜਾਬੀ',
'ps' => 'پښتو', // rtl
'rw' => 'Kinyarwanda',
'sd' => 'سنڌي', // rtl
'si' => 'සිංහල',
'sr' => 'Српски',
'sk' => 'Slovenský',
'sm' => 'Faasamoa',
'sn' => 'Shona',
'so' => 'Somali',
'st' => 'Sesotho',
'sq' => 'Shqiptar',
'su' => 'Sunda',
'ta' => 'தமிழ்',
'te' => 'తెలుగు',
'tk' => 'Türkmenler',
'tg' => 'Тоҷикӣ',
'tt' => 'Татар',
'ug' => 'ئۇيغۇر', // rtl
'uz' => "O'zbek",
'cy' => 'Cymraeg',
'xh' => 'isiXhosa',
'yi' => 'יידיש', // rtl
'yo' => 'Yoruba',
'zu' => 'Zulu',*/
];
// check app language
$PSZ_APP_LANGUAGE = 'us';
$PSZ_APP_COOKIE_NAME = 'perscriptz';
//if( isset($_GET['slug']) && !empty($_GET['slug']) )
{
//if( isset($_GET['lang']) && !empty($_GET['lang']) && file_exists("present/$_GET[slug]/languages/$_GET[lang].php") ) // member pick a language
if( isset($_GET['lang']) && !empty($_GET['lang']) && file_exists("present/languages/$_GET[lang].php") ) // member pick a language
{
setcookie($PSZ_APP_COOKIE_NAME.'-lang', $_GET['lang'], time()+60*60*24*30, '/');
$PSZ_APP_LANGUAGE = $_GET['lang'];
}
//else if( isset($_COOKIE[$PSZ_APP_COOKIE_NAME.'-lang']) && file_exists("present/$_GET[slug]/languages/".$_COOKIE[$PSZ_APP_COOKIE_NAME.'-lang'] . '.php') ) // pick from cookie
else if( isset($_COOKIE[$PSZ_APP_COOKIE_NAME.'-lang']) && file_exists("present/languages/".$_COOKIE[$PSZ_APP_COOKIE_NAME.'-lang'] . '.php') ) // pick from cookie
{
$PSZ_APP_LANGUAGE = $_COOKIE[$PSZ_APP_COOKIE_NAME.'-lang'];
}
}
$rtl = false;
$rtl_dir = '';
$rtl_bootstrap = '';
// RTL languages
if( in_array($PSZ_APP_LANGUAGE, ['ar', 'fa', 'iw', 'ps', 'sd', 'ug', 'yi']) )
{
$rtl = true;
$rtl_dir = 'dir="rtl"';
$rtl_bootstrap = '-rtl';
}
$current_language = 'English';
//$main_current_currency = get_currency();
$main_current_currency = 'USD';
// multiple currencies
$show_multi_currency = $show_multi_currency_alert = false;
$supported_currencies = [$main_current_currency];
$show_multi_currency = true;
$currency_rate = [
'TRY' => 7.6359,
'VND' => 23177.74,
'MYR' => 4.1,
'EUR' => 0.843,
'ARS' => 80.344,
'CNY' => 6.563,
'HKD' => 7.75215,
'GBP' => 0.75268,
'NZD' => 1.44301,
'AUD' => 1.36934,
'CAD' => 1.309,
'IDR' => 14182,
'INR' => 74.16265,
'JPY' => 103.862,
'ZAR' => 15.409,
'CHF' => 0.91095,
'AED' => 3.673,
'BRL' => 5.38,
'CLP' => 764.19,
'COP' => 3650.7,
'DOP' => 58.39,
'MXN' => 20.107,
'PYG' => 7038.4,
'BGN' => 1.647,
'CZK' => 22.231,
'DKK' => 6.282,
'HRK' => 6.377,
'HUF' => 303.84,
'ISK' => 135.87,
'NOK' => 9.022,
'PLN' => 3.77,
'RON' => 4.106,
'RUB' => 76.214,
'SEK' => 8.622,
'UAH' => 28.364,
'BDT' => 84.743,
'NPR' => 118.58,
'ILS' => 3.34,
'LAK' => 9285,
'KRW' => 1115.1,
'PHP' => 48.234,
'SGD' => 1.343,
'TWD' => 28.541,
'THB' => 30.271,
'NGN' => 381,
'EGP' => 15.6,
];
$text_link = '
';
// get live exchange rate
if( file_exists('currency_rate_live.txt') )
$currency_rate_live = file_get_contents('currency_rate_live.txt');
else
{
$currency_rate_live = file_get_contents('https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies/usd.json');
new_file('currency_rate_live.txt', $currency_rate_live);
//$currency_rate_live = json_decode($currency_rate_live, 1);
}
$currency_rate_live = json_decode($currency_rate_live, 1);
/*if( isset($currency_rate_live['usd']) )
foreach ($currency_rate_live['usd'] as $key => $value) {
$currency_rate[strtoupper($key)] = $value;
}*/
// add main currency to first
$currency_rate = array_merge([$main_current_currency => 1], $currency_rate);
//print_r( $currency_rate_live );exit;
$supported_currencies = array_keys($currency_rate);
//print_r($supported_currencies);exit;
$currencies = get_currencies(); $c = [];
foreach ($currencies as $continent => $a)
foreach ($a as $code => $country)
$c[ $code ] = $country;
//print_r($currencies);exit;
// language bar
$langs = [];
if( isset($_GET['slug']) && $_GET['slug']!='' && file_exists("present/$_GET[slug]/languages") )
{
$dirs = scandir("present/$_GET[slug]/languages");
foreach($dirs as $dir)
{
if($dir == '.' || $dir == '..' || $dir == 'index.html') continue;
if( strpos($dir, '.php')!==FALSE )
$langs[] = str_replace('.php', '', $dir);
}
}
foreach($supported_langs as $code => $language)
{
//if( !in_array($code, $langs) ) continue;
//include_once("present/$_GET[slug]/languages/$code.php");
if( $PSZ_APP_LANGUAGE==$code )
$current_language = $language;
$pTemplate->assign_block_vars('languages_bar', array(
'CODE' => $code,
'LANGUAGE' => $language,
'ACTIVE' => $code==$PSZ_APP_LANGUAGE ? 'color-2' : '',
));
// test if some language file is error
//include_once("present/$_GET[slug]/languages/$code.php");
}
// check app currency
$PSZ_APP_FRONTPAGE_CURRENCY = $main_current_currency;
if( isset($_GET['currency']) && !empty($_GET['currency']) && in_array($_GET['currency'], $supported_currencies) ) // member pick a currency
{
//print_r($_COOKIE);exit;
$_COOKIE[$PSZ_APP_COOKIE_NAME.'-currency'] = $_GET['currency'];
if( setcookie($PSZ_APP_COOKIE_NAME.'-currency', $_GET['currency'], time()+60*60*24*30, '/') )
$PSZ_APP_FRONTPAGE_CURRENCY = $_GET['currency'];
//print_r($_COOKIE);exit;
}
else if( isset($_COOKIE[$PSZ_APP_COOKIE_NAME.'-currency']) && in_array($_COOKIE[$PSZ_APP_COOKIE_NAME.'-currency'], $supported_currencies) ) // pick from cookie
{
//die($_COOKIE[$PSZ_APP_COOKIE_NAME.'-lang']);
$PSZ_APP_FRONTPAGE_CURRENCY = $_COOKIE[$PSZ_APP_COOKIE_NAME.'-currency'];
}
$current_curr_symbol = get_currency_symbol($PSZ_APP_FRONTPAGE_CURRENCY);
if( $main_current_currency!=$PSZ_APP_FRONTPAGE_CURRENCY )
$show_multi_currency_alert = true;
if( $show_multi_currency )
foreach ($currency_rate as $code=>$rate) {
//if( $rate!=1 )
$pTemplate->assign_block_vars('currency', [
'NAME' => $c[ $code ],
'SYMBOL' => get_currency_symbol($code),
'CODE' => $code,
'ACTIVE' => $code==$PSZ_APP_FRONTPAGE_CURRENCY ? 'color-2' : '',
]);
}
$meta_tags_html = $ANpopup_html = '';
$ANpopup_html = file_get_contents("present/ANpopup.html");
$pTemplate->compress( $ANpopup_html );
if( !is_localhost() )
{
$meta_tags_html = file_get_contents("present/metatags.html");
$pTemplate->compress( $meta_tags_html );
}
$pTemplate->assign_vars([
'CURRENT_LANGUAGE' => $current_language,
'CURRENT_LANGUAGE_CODE' => $PSZ_APP_LANGUAGE,
'CURRENT_CURRENCY' => $c[ $PSZ_APP_FRONTPAGE_CURRENCY ],
'CURRENT_CURRENCY_CODE' => $PSZ_APP_FRONTPAGE_CURRENCY,
'CURRENT_CURRENCY_SYMBOL' => $current_curr_symbol,
'CURRENCY_MAIN' => $c[ $main_current_currency ],
'CURRENCY_MAIN_SYMBOL' => get_currency_symbol($main_current_currency),
'CURRENCY_CODE_MAIN' => $main_current_currency,
'META_TAGS' => $meta_tags_html,
'ANPOPUP_HTML' => $ANpopup_html,
'YEAR_NOW' => date('Y'),
]);
include_once("present/languages/us.php");
if( $PSZ_APP_LANGUAGE!='us' && file_exists("present/languages/$PSZ_APP_LANGUAGE.php") )
include_once("present/languages/$PSZ_APP_LANGUAGE.php");
//print_r($lang);exit;
$page = [
'home' => [
'year' => 2014,
'codename' => 'PreScriptZ.com',
'price' => [0],
'flagcounter' => 'DVhz',
'icon' => 'https://www.prescriptz.com/template/img/logo.png',
'img' => 'https://files.codegrape.com/14836.jpg',
'title' => __('Best Premium, Socials, Builder PHP Scripts'),
'description' => __('All you need to build an online empire with premium PHP scripts for your FREE and paid users with subscriptions, via Paypal, Stripe, Google'),
],
'terms' => [
'year' => 2014,
'codename' => 'PreScriptZ.com',
'price' => [0],
'flagcounter' => 'DVhz',
'icon' => 'https://www.prescriptz.com/template/img/logo.png',
'img' => 'https://files.codegrape.com/14836.jpg',
'title' => __('Best Premium, Socials, Builder PHP Scripts'),
'description' => __('All you need to build an online empire with premium PHP scripts for your FREE and paid users with subscriptions, via Paypal, Stripe, Google'),
],
];
$script = [
/*'home' => [
'year' => 2014,
'codename' => 'PreScriptZ.com',
'price' => [0],
'flagcounter' => 'DVhz',
'icon' => 'https://www.prescriptz.com/template/img/logo.png',
'img' => 'https://files.codegrape.com/14836.jpg',
'title' => __('Best Premium, Socials, Builder PHP Scripts'),
'description' => __('All you need to build an online empire with premium PHP scripts for your FREE and paid users with subscriptions, via Paypal, Stripe, Google'),
],*/
'gomymobi-site-builder-platform' => [
'demo' => 'http://www.gomymobi.com/',
'year' => 2016,
'codename' => 'gomymobiBSB' . ' ' . date('Y'),
'price' => [139, 19199],
'flagcounter' => 'soRe',
'icon' => 'https://s3.envato.com/files/327203726/logo-latest-builder.png',
'img' => 'https://codecanyon.img.customer.envatousercontent.com/files/327203727/gomymobi-latest-business.jpg?auto=compress%2Cformat&q=80&fit=crop&crop=top&max-h=8000&max-w=590&s=b48a5312c852379c0c5e733a615d6b5c',
'title' => __('Website & Store Builder with ChatGPT AI + Domains'),
'description' => __('Website & Store Builder with ChatGPT AI, Domains, Element Builder, Paypal, Stripe, Authorize.net, iyzico (iyzipay), RTL, Chat, Ad System, Multi Domains, Resell Solutions, Multiple Currencies, Socials Login, reCAPTCHA, User Logs, Store without Site & Domains'),
],
'vipmag' => [
'demo' => '/demo/vipmag/',
'year' => 2018,
'codename' => 'VipMag',
'price' => [39, 5999],
'flagcounter' => 'ZbnF',
'icon' => 'https://s3.envato.com/files/255153226/logo.png',
'img' => 'https://codecanyon.img.customer.envatousercontent.com/files/255751482/preview.jpg?auto=compress%2Cformat&q=80&fit=crop&crop=top&max-h=8000&max-w=590&s=d7be73babff5363dc5ed76c5bd25606e',
'title' => __('Powerful News Script, VIP Blog Software & Magazine Platform with Subscription'),
'description' => __('VipMag is a very powerful multi-purpose news, blog & magazine script. It allows you quickly setup a completed news site, blog or magazine portal with clean, responsive-mobile and user-friendly design, SEO optimized'),
],
'nameliz' => [
'demo' => '/demo/nameliz/',
'year' => 2019,
'codename' => 'NameLiz',
'price' => [69, 8399],
'flagcounter' => 'g5',
'icon' => 'https://files.codegrape.com/112192.jpg',
'img' => 'https://files.codegrape.com/112191.jpg',
'title' => __('Brandable Business Name Generator'),
'description' => __('NameLiz is a very cool PHP script to allow you quickly to setup a completed domain name generator with many powerful name functions & solutions. Your users may use this free tool to generator unlimited name ideas for their businesses'),
],
'dingpost' => [
'demo' => '/demo/dingpost/',
'year' => 2018,
'codename' => 'DingPost',
'price' => [19, 3599],
'flagcounter' => 'vc2x',
'icon' => 'https://s3.envato.com/files/250695791/80.png',
'img' => 'https://codecanyon.img.customer.envatousercontent.com/files/250695792/CC-preview.png?auto=compress%2Cformat&q=80&fit=crop&crop=top&max-h=8000&max-w=590&s=381338aecb6cbb5f993aedee56001b9f',
'title' => __('Social Auto Posting & Auto Marketing Solutions in One Platform'),
'description' => __('DingPost is a downloadable script to host on your own host, both shared host or VPS/server to build a platform for online business in social industry. DingPost is an advanced automated platform that allows your customers to publish and present their business/company sites on multi social channels in one place'),
],
'epubfan' => [
'demo' => '/app/epubfan/',
'year' => 2018,
'codename' => 'ePubFan',
'price' => [149],
'flagcounter' => 'ICg',
'icon' => 'https://s3.envato.com/files/245284857/favicon-80.png',
'img' => 'https://codecanyon.img.customer.envatousercontent.com/files/245284858/preview.jpg?auto=compress%2Cformat&q=80&fit=crop&crop=top&max-h=8000&max-w=590&s=d4277ec0fad3461edeacb9344a1ae14d',
'title' => __('Online ePub Maker, Composer & Manager'),
'description' => __('ePubFan is a web-based app that runs on your own host, it allows your visitors may create, edit, compose and manage ePub ebooks online. ePubFan helps visitors create ePub ebooks online then download to read on any modern devices: iPad, iPhone, Kindle, Paperwhite, Nook, Oasis, Kobo, Voyage, Boox, etc'),
],
'iholdcoin' => [
'demo' => '/demo/iholdcoin/',
'year' => 2018,
'codename' => 'iHoldCoin',
'price' => [149],
'flagcounter' => 'zq3I',
'icon' => 'https://s3.envato.com/files/240027173/logo.png',
'img' => 'https://codecanyon.img.customer.envatousercontent.com/files/240027174/iholdcoin-feature.jpg?auto=compress%2Cformat&q=80&fit=crop&crop=top&max-h=8000&max-w=590&s=8b694885c61c77de23c403c388e395ab',
'title' => __('Cryptocurrency Portfolio, Manager & Tracker'),
'description' => __('iHoldCoin is a web-based your cryptocurrency portfolio that runs on your own host, it allows users to manage & track all crypto coins & tokens in one place'),
],
'inonesec-facts-statistics-one-second' => [
'demo' => '//www.inonesec.com/',
'year' => 2016,
'codename' => 'inOneSec',
'price' => [19, 3599],
'flagcounter' => 'YCdQ',
'icon' => 'https://s3.envato.com/files/218375577/CC-logo-80x80.jpg',
'img' => '//i.imgur.com/s8yu4SE.jpg',
'title' => __('Incredible Facts & Statistics in One Second'),
'description' => __('Incredible Facts & Statistics in One Second Platform is a downloadable script to host on your own host to create a website for showing all incredible, suprising facts & statistics happening in one second'),
],
'like2reveal' => [
'demo' => '/member/Like2Reveal/',
'year' => 2014,
'codename' => 'Like2Reveal',
'price' => [12, 399],
'flagcounter' => 'RRu',
'icon' => 'https://files.codegrape.com/26939.jpg',
'img' => 'https://files.codegrape.com/26940.jpg',
'title' => __('Facebook Like to Reveal Content'),
'description' => __('With Like2Reveal, you may easy add a floating content-blocker into any PHP-based web page, any Wordpress theme (or all themes), any Joomla template (or all templates), any other PHP-based platforms: phpBB, Drupal, SMF, Opencart, Magento, Zencart, vBulletin, Xenforo with just 1 include statement'),
],
'zconfirm' => [
'demo' => '/demo/zConfirm/',
'year' => 2016,
'codename' => 'zConfirm',
'price' => [6, 699],
'flagcounter' => 'E357',
'icon' => 'https://s3.envato.com/files/208868540/CC-logo-80x80.png',
'img' => 'https://codecanyon.img.customer.envatousercontent.com/files/208868541/zConfirm.jpg?auto=compress%2Cformat&q=80&fit=crop&crop=top&max-h=8000&max-w=590&s=5e0e60d8f677e000bdd207d670b2a061',
'title' => __('Elegant Modal JavaScript confirm()'),
'description' => __('zConfirm is a jQuery script that gives you ability to make the JavaScript confirm() method become more beautiful, and it is designed to include necessary resources automatically; so it’s super easy to setup'),
],
'ptemplate' => [
'demo' => '/member/pTemplate/',
'year' => 2014,
'codename' => 'pTemplate',
'price' => [10, 299],
'flagcounter' => 'EH5w',
'icon' => 'https://s3.envato.com/files/95596167/_pTemplate-logo.jpg',
'img' => 'https://i.imgur.com/kkiH9Mn.jpeg',
'title' => __('Better PHP Code-HTML Design Separately'),
'description' => __('pTemplate is a PHP Class, designed & programmed by developer, for developer; to create native PHP applications, PHP website, big PHP projects better, nicer and easy to read by others in the team'),
],
'anpopup' => [
'demo' => '/member/ANpopup/',
'year' => 2014,
'codename' => 'ANpopup',
'price' => [10, 299],
'flagcounter' => 'FAVv',
'icon' => 'https://s3.envato.com/files/218376120/CC-logo-default.jpg',
'img' => 'https://camo.envatousercontent.com/3810fc48c58644460c930b46106befb6dc3ca640/68747470733a2f2f302e73332e656e7661746f2e636f6d2f66696c65732f39373939313835352f414e706f7075702d707265766965772e6a7067',
'title' => __('Awesome Newsletter Popup for Everyone, Every site'),
'description' => __('ANpopup has many PROS if compared with others: it has a reOpen floating button at bottom-right when the popup is closed; this reOpen button absolutely is able to impress your visitors with many animations & effects, make them click it many times to show your popup'),
],
'enpaginator' => [
'demo' => '/member/ENpaginator/',
'year' => 2014,
'codename' => 'ENpaginator',
'price' => [10, 99],
'flagcounter' => 'GkPu',
'icon' => 'https://s3.envato.com/files/218375788/CC-logo-default.jpg',
'img' => 'https://camo.envatousercontent.com/e03f7ab3566e9e4c97490fce853537447238b2a9/68747470733a2f2f302e73332e656e7661746f2e636f6d2f66696c65732f3130343835343038382f43432d707265766965772d454e706167696e61746f722d7770702e6a7067',
'title' => __('Elegant Navigate Paginator for Everyone, Every site'),
'description' => __('With ENpaginator, you may easy create elegant, awesome pagination on any PHP sites. You may also control the output of pagination better with many built-in API functions'),
],
'awesome-mobile-site-builder-amsb-stand-alone-version' => [
'demo' => '/member/AMSB/',
'year' => 2016,
'codename' => 'AMSB',
'price' => [19, 169],
'flagcounter' => 'rJTF',
'icon' => 'https://s3.envato.com/files/218375630/CC-logo-AMSB.jpg',
'img' => 'https://i.imgur.com/quy9uoG.jpg',
'title' => __('Awesome Mobile Site Builder (AMSB): Stand-alone version'),
'description' => __('Host this awesome mobile site builder script yourself on live host to run business within 1 minute'),
],
/*
'bloggermp' => [
'year' => 2016,
'codename' => 'BloggerMP',
'flagcounter' => 'ICg',
'icon' => 'https://s3.envato.com/files/218375729/BloggerMP-logo.jpg',
'img' => 'https://codecanyon.img.customer.envatousercontent.com/files/250695792/CC-preview.png?auto=compress%2Cformat&q=80&fit=crop&crop=top&max-h=8000&max-w=590&s=381338aecb6cbb5f993aedee56001b9f',
'title' => __('Blogger Movie Publisher - Watch Movie Blog Maker'),
'description' => __('Create a modern movie blog for watching online & downloading on Blogger'),
],*/
];
$solution_price = [
'Element Builder' => 200,
'Element: 280+ Blocks' => 650,
'reCAPTCHA' => 30,
'Bulk User Importer' => 20,
'Ad System' => 100,
'Knowledge Base' => 20,
'Socials Login' => 80,
'Code Editor' => 70,
'Live Chat' => 20,
'Gateway: Paypal' => 150,
'Gateway: Stripe' => 110,
'Gateway: Authorize.net' => 300,
'Gateway: iyzico (iyzipay)' => 450,
'Multi Domains' => 100,
'User Logs' => 80,
'Resell Solutions' => 220,
'Multi Currencies' => 250,
'Store without Site' => 500,
'Domainer' => 1500,
'Temporary Email Blocker' => 50,
];
$solution_price_pro_help = [18, 90, 1500];
$slug = isset($_GET['slug']) && $_GET['slug']!='' ? strtolower($_GET['slug']) : '';
$loader = !is_localhost();
$pContent = $pTemplate->pparse_file( "_header.html" );
if( $slug!='' && in_array($slug, ['terms', 'rss']) )
{
if( $slug=='rss' )
{
$rss = true;
$slug = 'home';
}
$pTemplate->assign_vars([
'CURRENT_LANGUAGE_CODE' => $PSZ_APP_LANGUAGE,
'YEAR_INIT' => $page[$slug]['year'],
'CODE_NAME' => $page[$slug]['codename'],
'META_URL' => $slug,
'TITLE' => $page[$slug]['title'],
'URL_ICON' => $page[$slug]['icon'],
'URL_IMG' => $page[$slug]['img'],
'META_DESCRIPTION' => $page[$slug]['description'],
'STAT' => (is_localhost() ? '' : '
') . $text_link,
//'CURRENT_EXCHANGE_RATE' => number_format($exchange_rate_live, 3),
]);
/*$pContent = $pTemplate->pparse_file( "$slug.html" );
if( $psz_app_in_dev )
echo $pTemplate->pparse($pContent, false, true); // in test, keep VARS, uncompress
else
echo $pTemplate->pparse($pContent, true, true, true); // remove VARS, return, compress*/
//$pContent .= $pTemplate->pparse_file( "$slug.html", false, true );
if( isset($rss) )
{
foreach ($script as $key => $s) {
/*$price = $current_curr_symbol . ($PSZ_APP_FRONTPAGE_CURRENCY!=$main_current_currency && isset($currency_rate_live['usd'][strtolower($PSZ_APP_FRONTPAGE_CURRENCY)]) ? number_shorten($s['price'][0]*$exchange_rate_live, 0) : number_format($s['price'][0]));
if( isset($s['price'][1]) )
{
$price .= ' ' . $current_curr_symbol;
$price .= $PSZ_APP_FRONTPAGE_CURRENCY!=$main_current_currency && isset($currency_rate_live['usd'][strtolower($PSZ_APP_FRONTPAGE_CURRENCY)]) ? number_shorten($s['price'][1]*$exchange_rate_live, 0) : number_format($s['price'][1]);
}*/
$pTemplate->assign_block_vars('item', array(
'CODE' => $s['codename'],
'IMG' => $s['img'],
'ICON' => $s['icon'],
'SLUG' => $key,
'TITLE' => htmlentities($s['title']),
'TEXT' => htmlentities($s['description']),
//'PRICE' => $price,
));
}
$pContent = $pTemplate->pparse_file( "rss.html"/*, true, true, true*/ );
//if( $psz_app_in_dev )
echo $pTemplate->pparse($pContent, false, true); // in test, keep VARS, uncompress
/*else
echo $pTemplate->pparse($pContent, true, true, true); // remove VARS, return, compress*/
exit;
}
$pContent .= $pTemplate->pparse_file( "$slug.html", true, true, true );
}
else
{
$slug = 'home';
$url_share = "https://www.prescriptz.com/?lang=$PSZ_APP_LANGUAGE¤cy=$PSZ_APP_FRONTPAGE_CURRENCY";
if( isset($_GET['slug']) && $_GET['slug']!='' && file_exists("present/$_GET[slug]") )
{
$slug = $_GET['slug'];
$url_share = "https://www.perscriptz.com/script/$_GET[slug]/?lang=$PSZ_APP_LANGUAGE¤cy=$PSZ_APP_FRONTPAGE_CURRENCY";
}
$exchange_rate_live = '';
if( isset($currency_rate_live['usd'][strtolower($PSZ_APP_FRONTPAGE_CURRENCY)]) )
{
$exchange_rate_live = round($currency_rate_live['usd'][strtolower($PSZ_APP_FRONTPAGE_CURRENCY)], 3);
}
// script details
if( file_exists("present/$slug") )
{
$price_menu = true;
if( $PSZ_APP_LANGUAGE!='us' && file_exists("present/$_GET[slug]/languages/$PSZ_APP_LANGUAGE.php") )
include_once("present/$_GET[slug]/languages/$PSZ_APP_LANGUAGE.php");
// process $solution_price_pro_help by $exchange_rate_live
for($i=0; $i $s) {
$count_license += 1;
$price = /*' (' .*/ $current_curr_symbol . ($PSZ_APP_FRONTPAGE_CURRENCY!=$main_current_currency && isset($currency_rate_live['usd'][strtolower($PSZ_APP_FRONTPAGE_CURRENCY)]) ? number_shorten($s['price'][0]*$exchange_rate_live, 0) : number_format($s['price'][0]));
if( isset($s['price'][1]) )
{
$count_license += 3;
$price .= ' ' . $current_curr_symbol;
$price .= $PSZ_APP_FRONTPAGE_CURRENCY!=$main_current_currency && isset($currency_rate_live['usd'][strtolower($PSZ_APP_FRONTPAGE_CURRENCY)]) ? number_shorten($s['price'][1]*$exchange_rate_live, 0) : number_format($s['price'][1]);
}
//$price .= ')';
//die($price);
$pTemplate->assign_block_vars('script', array(
'CODE' => $s['codename'],
'IMG' => $s['img'],
'ICON' => $s['icon'],
'SLUG' => $key,
'DEMO' => $s['demo'],
'TITLE' => $s['title'],
'TEXT' => $s['description'],
'PRICE' => $price,
));
}
$script = $page;
//print_r($script);exit;
$pTemplate->assign_vars([
'KEYWORD' => '',
'COUNT_ITEM' => $count_item,
'COUNT_LICENSE' => $count_license,
]);
}
$pTemplate->assign_vars([
'YEAR_INIT' => $script[$slug]['year'],
'CODE_NAME' => $script[$slug]['codename'],
'META_URL' => "script/$slug",
'SLUG' => $slug,
'TITLE' => $script[$slug]['title'],
'URL_ICON' => $script[$slug]['icon'],
'URL_IMG' => $script[$slug]['img'],
'META_DESCRIPTION' => $script[$slug]['description'],
'STAT' => (is_localhost() ? '' : '
') . $text_link,
'CURRENT_EXCHANGE_RATE' => number_format($exchange_rate_live, 3),
]);
// share
$share = [
'Facebook' => [
'icon' => 'facebook',
'url' => '//www.facebook.com/sharer.php?u={URL}',
],
'Twitter' => [
'icon' => 'twitter',
'url' => '//twitter.com/share?url={URL}&text={TITLE}',
],
'LinkedIn' => [
'icon' => 'linkedin-square',
'url' => '//www.linkedin.com/sharing/share-offsite/?url={URL}',
],
'Instagram' => [
'icon' => 'instagram',
'url' => '//www.instagram.com/?url={URL}',
],
'Pinterest' => [
'icon' => 'pinterest',
'url' => '//pinterest.com/pin/create/button/?url={URL}&media={IMG}&description={TITLE}',
],
'Reddit' => [
'icon' => 'reddit',
'url' => '//reddit.com/submit?url={URL}',
],
'Telegram' => [
'icon' => 'telegram',
'url' => '//t.me/share/url??url={URL}&text={TITLE}',
],
'VK' => [
'icon' => 'vk',
'url' => '//vk.com/share.php?url={URL}',
],
'WhatsApp' => [
'icon' => 'whatsapp',
'url' => '//api.whatsapp.com/send?text={URL}',
],
/*'Buffer' => [
'icon' => 'database',
'url' => '//buffer.com/add?text={TITLE}&url={URL}',
],*/
'Tumblr' => [
'icon' => 'tumblr',
'url' => '//www.tumblr.com/share/link?url={URL}&name={TITLE}&description={TITLE}',
],
'StumbleUpon' => [
'icon' => 'stumbleupon',
'url' => '//www.stumbleupon.com/submit?url={URL}&title={TITLE}',
],
'Digg' => [
'icon' => 'digg',
'url' => '//digg.com/submit?url={URL}&title={TITLE}',
],
'Email' => [
'icon' => 'envelope',
'url' => 'mailto:?&subject={TITLE}&body={URL}',
],
];
foreach ($share as $key => $value)
{
$pTemplate->assign_block_vars('share', array(
'ICON' => $value['icon'],
//'IMG' => $s['img'],
'URL' => str_replace_array([
'{URL}' => urlencode($url_share),
'{IMG}' => urlencode($script[$slug]['img']),
'{TITLE}' => urlencode($script[$slug]['title']),
], $value['url']),
'TITLE' => __('Share on') . ' ' . $key,
));
}
$pTemplate->assign_vars([
'URL_SHARE' => $url_share,
]);
//echo $pContent;exit;
if( file_exists("present/$slug") )
include_once "present/$slug/index.php";
else
$pContent .= $pTemplate->pparse_file( "scripts.html" );
//echo $pContent;exit;
}
$pContent .= $pTemplate->pparse_file( "_footer.html", true, true, true );
if( $psz_app_in_dev )
echo $pTemplate->pparse($pContent, false, true); // in test, keep VARS, uncompress
else
echo $pTemplate->pparse($pContent, true, true, true); // remove VARS, return, compress*/
exit;