/** * Handles request services like the image server and script server * * @author Jonathan Davis * @since 1.3 * * @return boolean The service load status **/ public static function services() { if (WP_DEBUG) { define('SHOPP_MEMORY_PROFILE_BEFORE', memory_get_peak_usage(true)); } ShoppServices::serve(); }
* (at your option) any later version. * * Shopp is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shopp. If not, see <http://www.gnu.org/licenses/>. * **/ // Prevent direct access defined('WPINC') || header('HTTP/1.1 403') & exit; if (empty($Shopp)) { // Only load in mu-plugins context ShoppServices::load(); } final class ShoppServices { /** * Detects script requests * * @return bool True if a script request, false otherwise **/ private static function scripts() { return isset($_GET['scripts']); } /** * Detects style requests *