Пример #1
0
 *    (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
     *