✏️ Edit: updatecheck.php
Path:
/home/thiqat5/admincrud.thiqatech.com/sql/modules/updatecheck.php
Size: 950 B · Modified: 2023-08-20 10:31:19 · Perm: 0644 · Writable
← Back to directory
👁 View
⬇ Download
<?php /** * This file is a part of MyWebSQL package * * @file: modules/updatecheck.php * @author Samnan ur Rehman * @copyright (c) 2008-2014 Samnan ur Rehman * @web http://mywebsql.net * @license http://mywebsql.net/license */ // returns json output for online update check function processRequest(&$db) { ob_end_clean(); include_once(BASE_PATH . "/lib/output.php"); Output::buffer(); $link = "http://mywebsql.net/updates.php?j=1&" . "c=MyWebSQL&l=" . urlencode(LANGUAGE) . "&v=" . urlencode(APP_VERSION) . "&t=" . urlencode(THEME_PATH); // include compact edition in update if we are using one if ( defined('MYWEBSQL_COMPACT_DIST') ) $link .= "&e=compact"; $output = ""; if (ini_get("allow_url_fopen")) $output = file_get_contents($link); else $output = curl_get($link); Session::set('updates', 'check', '1'); echo($output); $db->disconnect(); Output::flush(); die(); } ?>
💾 Save
Cancel
Save as UTF-8, newlines normalized to LF