/var/www/admin/data/www/primspinning.com/init.php
{
foreach ( self::$hooks[ "\\{$namespace}\\{$finalClass}" ] as $id => $data )
{
$path = ROOT_PATH;
if ( \IPS\CIC2 AND static::isThirdParty( $data['file'] ) )
{
$path = SITE_FILES_PATH;
}
if ( file_exists( $path . '/' . $data['file'] ) )
{
if( static::isThirdParty( $data['file'] ) )
{
static::$loadedHooks[] = $data['file'];
}
$contents = "namespace {$namespace}; ". str_replace( '_HOOK_CLASS_', $realClass, file_get_contents( $path . '/' . $data['file'] ) );
try
{
if( @eval( $contents ) !== FALSE )
{
$realClass = $data['class'];
}
}
catch ( \ParseError $e )
{
/* Show the error if we have development mode enabled or the error originated in the cloud app */
if( \IPS\IN_DEV or strstr( $data['file'], 'applications/cloud/') )
{
throw $e;
}
}
}
}
}
$reflection = new \ReflectionClass( "{$namespace}\\_{$finalClass}" );
if( eval( "namespace {$namespace}; ". $extraCode . ( $reflection->isAbstract() ? 'abstract' : '' )." class {$finalClass} extends {$realClass} {}" ) === FALSE )
{
trigger_error( "There was an error initiating the class {$namespace}\\{$finalClass}.", E_USER_ERROR );
/var/www/admin/data/www/primspinning.com/init.php
{
foreach ( self::$hooks[ "\\{$namespace}\\{$finalClass}" ] as $id => $data )
{
$path = ROOT_PATH;
if ( \IPS\CIC2 AND static::isThirdParty( $data['file'] ) )
{
$path = SITE_FILES_PATH;
}
if ( file_exists( $path . '/' . $data['file'] ) )
{
if( static::isThirdParty( $data['file'] ) )
{
static::$loadedHooks[] = $data['file'];
}
$contents = "namespace {$namespace}; ". str_replace( '_HOOK_CLASS_', $realClass, file_get_contents( $path . '/' . $data['file'] ) );
try
{
if( @eval( $contents ) !== FALSE )
{
$realClass = $data['class'];
}
}
catch ( \ParseError $e )
{
/* Show the error if we have development mode enabled or the error originated in the cloud app */
if( \IPS\IN_DEV or strstr( $data['file'], 'applications/cloud/') )
{
throw $e;
}
}
}
}
}
$reflection = new \ReflectionClass( "{$namespace}\\_{$finalClass}" );
if( eval( "namespace {$namespace}; ". $extraCode . ( $reflection->isAbstract() ? 'abstract' : '' )." class {$finalClass} extends {$realClass} {}" ) === FALSE )
{
trigger_error( "There was an error initiating the class {$namespace}\\{$finalClass}.", E_USER_ERROR );
/var/www/admin/data/www/primspinning.com/init.php
{
foreach ( self::$hooks[ "\\{$namespace}\\{$finalClass}" ] as $id => $data )
{
$path = ROOT_PATH;
if ( \IPS\CIC2 AND static::isThirdParty( $data['file'] ) )
{
$path = SITE_FILES_PATH;
}
if ( file_exists( $path . '/' . $data['file'] ) )
{
if( static::isThirdParty( $data['file'] ) )
{
static::$loadedHooks[] = $data['file'];
}
$contents = "namespace {$namespace}; ". str_replace( '_HOOK_CLASS_', $realClass, file_get_contents( $path . '/' . $data['file'] ) );
try
{
if( @eval( $contents ) !== FALSE )
{
$realClass = $data['class'];
}
}
catch ( \ParseError $e )
{
/* Show the error if we have development mode enabled or the error originated in the cloud app */
if( \IPS\IN_DEV or strstr( $data['file'], 'applications/cloud/') )
{
throw $e;
}
}
}
}
}
$reflection = new \ReflectionClass( "{$namespace}\\_{$finalClass}" );
if( eval( "namespace {$namespace}; ". $extraCode . ( $reflection->isAbstract() ? 'abstract' : '' )." class {$finalClass} extends {$realClass} {}" ) === FALSE )
{
trigger_error( "There was an error initiating the class {$namespace}\\{$finalClass}.", E_USER_ERROR );
/var/www/admin/data/www/primspinning.com/system/Dispatcher/Front.php
{
header( "HTTP/{$protocol} 503 Service Unavailable" );
header( "Retry-After: 300"); #5 minutes
}
require \IPS\ROOT_PATH . '/' . \IPS\UPGRADING_PAGE;
exit;
}
/* Sync stuff when in developer mode */
if ( \IPS\IN_DEV )
{
\IPS\Developer::sync();
}
/* Base CSS */
static::baseCss();
/* Base JS */
static::baseJs();
/* Perform some legacy URL conversions - Need to do this before checking furl in case app name has changed */
static::convertLegacyParameters();
/* Check friendly URL and whether it is correct */
try
{
$this->checkUrl();
}
catch( \OutOfRangeException $e )
{
/* Display a 404 */
$this->application = \IPS\Application::load('core');
$this->setDefaultModule();
if ( \IPS\Member::loggedIn()->isBanned() )
{
\IPS\Output::i()->sidebar = FALSE;
\IPS\Output::i()->bodyClasses[] = 'ipsLayout_minimal';
}
\IPS\Output::i()->jsFiles = array_merge( \IPS\Output::i()->jsFiles, \IPS\Output::i()->js( 'app.js' ) );
/var/www/admin/data/www/primspinning.com/init.php
{
foreach ( self::$hooks[ "\\{$namespace}\\{$finalClass}" ] as $id => $data )
{
$path = ROOT_PATH;
if ( \IPS\CIC2 AND static::isThirdParty( $data['file'] ) )
{
$path = SITE_FILES_PATH;
}
if ( file_exists( $path . '/' . $data['file'] ) )
{
if( static::isThirdParty( $data['file'] ) )
{
static::$loadedHooks[] = $data['file'];
}
$contents = "namespace {$namespace}; ". str_replace( '_HOOK_CLASS_', $realClass, file_get_contents( $path . '/' . $data['file'] ) );
try
{
if( @eval( $contents ) !== FALSE )
{
$realClass = $data['class'];
}
}
catch ( \ParseError $e )
{
/* Show the error if we have development mode enabled or the error originated in the cloud app */
if( \IPS\IN_DEV or strstr( $data['file'], 'applications/cloud/') )
{
throw $e;
}
}
}
}
}
$reflection = new \ReflectionClass( "{$namespace}\\_{$finalClass}" );
if( eval( "namespace {$namespace}; ". $extraCode . ( $reflection->isAbstract() ? 'abstract' : '' )." class {$finalClass} extends {$realClass} {}" ) === FALSE )
{
trigger_error( "There was an error initiating the class {$namespace}\\{$finalClass}.", E_USER_ERROR );
/var/www/admin/data/www/primspinning.com/init.php
{
foreach ( self::$hooks[ "\\{$namespace}\\{$finalClass}" ] as $id => $data )
{
$path = ROOT_PATH;
if ( \IPS\CIC2 AND static::isThirdParty( $data['file'] ) )
{
$path = SITE_FILES_PATH;
}
if ( file_exists( $path . '/' . $data['file'] ) )
{
if( static::isThirdParty( $data['file'] ) )
{
static::$loadedHooks[] = $data['file'];
}
$contents = "namespace {$namespace}; ". str_replace( '_HOOK_CLASS_', $realClass, file_get_contents( $path . '/' . $data['file'] ) );
try
{
if( @eval( $contents ) !== FALSE )
{
$realClass = $data['class'];
}
}
catch ( \ParseError $e )
{
/* Show the error if we have development mode enabled or the error originated in the cloud app */
if( \IPS\IN_DEV or strstr( $data['file'], 'applications/cloud/') )
{
throw $e;
}
}
}
}
}
$reflection = new \ReflectionClass( "{$namespace}\\_{$finalClass}" );
if( eval( "namespace {$namespace}; ". $extraCode . ( $reflection->isAbstract() ? 'abstract' : '' )." class {$finalClass} extends {$realClass} {}" ) === FALSE )
{
trigger_error( "There was an error initiating the class {$namespace}\\{$finalClass}.", E_USER_ERROR );
/var/www/admin/data/www/primspinning.com/init.php
{
foreach ( self::$hooks[ "\\{$namespace}\\{$finalClass}" ] as $id => $data )
{
$path = ROOT_PATH;
if ( \IPS\CIC2 AND static::isThirdParty( $data['file'] ) )
{
$path = SITE_FILES_PATH;
}
if ( file_exists( $path . '/' . $data['file'] ) )
{
if( static::isThirdParty( $data['file'] ) )
{
static::$loadedHooks[] = $data['file'];
}
$contents = "namespace {$namespace}; ". str_replace( '_HOOK_CLASS_', $realClass, file_get_contents( $path . '/' . $data['file'] ) );
try
{
if( @eval( $contents ) !== FALSE )
{
$realClass = $data['class'];
}
}
catch ( \ParseError $e )
{
/* Show the error if we have development mode enabled or the error originated in the cloud app */
if( \IPS\IN_DEV or strstr( $data['file'], 'applications/cloud/') )
{
throw $e;
}
}
}
}
}
$reflection = new \ReflectionClass( "{$namespace}\\_{$finalClass}" );
if( eval( "namespace {$namespace}; ". $extraCode . ( $reflection->isAbstract() ? 'abstract' : '' )." class {$finalClass} extends {$realClass} {}" ) === FALSE )
{
trigger_error( "There was an error initiating the class {$namespace}\\{$finalClass}.", E_USER_ERROR );
/var/www/admin/data/www/primspinning.com/init.php
{
foreach ( self::$hooks[ "\\{$namespace}\\{$finalClass}" ] as $id => $data )
{
$path = ROOT_PATH;
if ( \IPS\CIC2 AND static::isThirdParty( $data['file'] ) )
{
$path = SITE_FILES_PATH;
}
if ( file_exists( $path . '/' . $data['file'] ) )
{
if( static::isThirdParty( $data['file'] ) )
{
static::$loadedHooks[] = $data['file'];
}
$contents = "namespace {$namespace}; ". str_replace( '_HOOK_CLASS_', $realClass, file_get_contents( $path . '/' . $data['file'] ) );
try
{
if( @eval( $contents ) !== FALSE )
{
$realClass = $data['class'];
}
}
catch ( \ParseError $e )
{
/* Show the error if we have development mode enabled or the error originated in the cloud app */
if( \IPS\IN_DEV or strstr( $data['file'], 'applications/cloud/') )
{
throw $e;
}
}
}
}
}
$reflection = new \ReflectionClass( "{$namespace}\\_{$finalClass}" );
if( eval( "namespace {$namespace}; ". $extraCode . ( $reflection->isAbstract() ? 'abstract' : '' )." class {$finalClass} extends {$realClass} {}" ) === FALSE )
{
trigger_error( "There was an error initiating the class {$namespace}\\{$finalClass}.", E_USER_ERROR );
/var/www/admin/data/www/primspinning.com/init.php
{
foreach ( self::$hooks[ "\\{$namespace}\\{$finalClass}" ] as $id => $data )
{
$path = ROOT_PATH;
if ( \IPS\CIC2 AND static::isThirdParty( $data['file'] ) )
{
$path = SITE_FILES_PATH;
}
if ( file_exists( $path . '/' . $data['file'] ) )
{
if( static::isThirdParty( $data['file'] ) )
{
static::$loadedHooks[] = $data['file'];
}
$contents = "namespace {$namespace}; ". str_replace( '_HOOK_CLASS_', $realClass, file_get_contents( $path . '/' . $data['file'] ) );
try
{
if( @eval( $contents ) !== FALSE )
{
$realClass = $data['class'];
}
}
catch ( \ParseError $e )
{
/* Show the error if we have development mode enabled or the error originated in the cloud app */
if( \IPS\IN_DEV or strstr( $data['file'], 'applications/cloud/') )
{
throw $e;
}
}
}
}
}
$reflection = new \ReflectionClass( "{$namespace}\\_{$finalClass}" );
if( eval( "namespace {$namespace}; ". $extraCode . ( $reflection->isAbstract() ? 'abstract' : '' )." class {$finalClass} extends {$realClass} {}" ) === FALSE )
{
trigger_error( "There was an error initiating the class {$namespace}\\{$finalClass}.", E_USER_ERROR );
/var/www/admin/data/www/primspinning.com/init.php
{
foreach ( self::$hooks[ "\\{$namespace}\\{$finalClass}" ] as $id => $data )
{
$path = ROOT_PATH;
if ( \IPS\CIC2 AND static::isThirdParty( $data['file'] ) )
{
$path = SITE_FILES_PATH;
}
if ( file_exists( $path . '/' . $data['file'] ) )
{
if( static::isThirdParty( $data['file'] ) )
{
static::$loadedHooks[] = $data['file'];
}
$contents = "namespace {$namespace}; ". str_replace( '_HOOK_CLASS_', $realClass, file_get_contents( $path . '/' . $data['file'] ) );
try
{
if( @eval( $contents ) !== FALSE )
{
$realClass = $data['class'];
}
}
catch ( \ParseError $e )
{
/* Show the error if we have development mode enabled or the error originated in the cloud app */
if( \IPS\IN_DEV or strstr( $data['file'], 'applications/cloud/') )
{
throw $e;
}
}
}
}
}
$reflection = new \ReflectionClass( "{$namespace}\\_{$finalClass}" );
if( eval( "namespace {$namespace}; ". $extraCode . ( $reflection->isAbstract() ? 'abstract' : '' )." class {$finalClass} extends {$realClass} {}" ) === FALSE )
{
trigger_error( "There was an error initiating the class {$namespace}\\{$finalClass}.", E_USER_ERROR );
/var/www/admin/data/www/primspinning.com/init.php
{
foreach ( self::$hooks[ "\\{$namespace}\\{$finalClass}" ] as $id => $data )
{
$path = ROOT_PATH;
if ( \IPS\CIC2 AND static::isThirdParty( $data['file'] ) )
{
$path = SITE_FILES_PATH;
}
if ( file_exists( $path . '/' . $data['file'] ) )
{
if( static::isThirdParty( $data['file'] ) )
{
static::$loadedHooks[] = $data['file'];
}
$contents = "namespace {$namespace}; ". str_replace( '_HOOK_CLASS_', $realClass, file_get_contents( $path . '/' . $data['file'] ) );
try
{
if( @eval( $contents ) !== FALSE )
{
$realClass = $data['class'];
}
}
catch ( \ParseError $e )
{
/* Show the error if we have development mode enabled or the error originated in the cloud app */
if( \IPS\IN_DEV or strstr( $data['file'], 'applications/cloud/') )
{
throw $e;
}
}
}
}
}
$reflection = new \ReflectionClass( "{$namespace}\\_{$finalClass}" );
if( eval( "namespace {$namespace}; ". $extraCode . ( $reflection->isAbstract() ? 'abstract' : '' )." class {$finalClass} extends {$realClass} {}" ) === FALSE )
{
trigger_error( "There was an error initiating the class {$namespace}\\{$finalClass}.", E_USER_ERROR );
/var/www/admin/data/www/primspinning.com/init.php
{
foreach ( self::$hooks[ "\\{$namespace}\\{$finalClass}" ] as $id => $data )
{
$path = ROOT_PATH;
if ( \IPS\CIC2 AND static::isThirdParty( $data['file'] ) )
{
$path = SITE_FILES_PATH;
}
if ( file_exists( $path . '/' . $data['file'] ) )
{
if( static::isThirdParty( $data['file'] ) )
{
static::$loadedHooks[] = $data['file'];
}
$contents = "namespace {$namespace}; ". str_replace( '_HOOK_CLASS_', $realClass, file_get_contents( $path . '/' . $data['file'] ) );
try
{
if( @eval( $contents ) !== FALSE )
{
$realClass = $data['class'];
}
}
catch ( \ParseError $e )
{
/* Show the error if we have development mode enabled or the error originated in the cloud app */
if( \IPS\IN_DEV or strstr( $data['file'], 'applications/cloud/') )
{
throw $e;
}
}
}
}
}
$reflection = new \ReflectionClass( "{$namespace}\\_{$finalClass}" );
if( eval( "namespace {$namespace}; ". $extraCode . ( $reflection->isAbstract() ? 'abstract' : '' )." class {$finalClass} extends {$realClass} {}" ) === FALSE )
{
trigger_error( "There was an error initiating the class {$namespace}\\{$finalClass}.", E_USER_ERROR );
/var/www/admin/data/www/primspinning.com/system/Dispatcher/Dispatcher.php
}
}
}
if( $_redirect === TRUE )
{
/* conf_global.php does not exist, forward to installer - we'll do this manually to avoid any code in Output.php that anticipates the installation already being complete (such as setting CSP header in __construct()) */
$url = ( \IPS\Request::i()->isSecure() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . rtrim( \dirname( $_SERVER['SCRIPT_NAME'] ), '/' );
header( "HTTP/1.1 307 Temporary Redirect" );
foreach( \IPS\Output::getNoCacheHeaders() as $headerKey => $headerValue )
{
header( "{$headerKey}: {$headerValue}" );
}
header( "Location: {$url}/" . \IPS\CP_DIRECTORY . "/install/" );
exit;
}
}
static::$instance->init();
}
return static::$instance;
}
/**
* @brief Controller Classname
*/
protected $classname;
/**
* @brief Controller instance
*/
public $dispatcherController;
/**
* Init
*
* @return void
* @throws \DomainException
/var/www/admin/data/www/primspinning.com/index.php
<?php
/**
* @brief Public bootstrap
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
* @copyright (c) Invision Power Services, Inc.
* @license https://www.invisioncommunity.com/legal/standards/
* @package Invision Community
* @since 18 Feb 2013
*/
\define('REPORT_EXCEPTIONS', TRUE);
$_SERVER['SCRIPT_FILENAME'] = __FILE__;
require_once 'init.php';
\IPS\Dispatcher\Front::i()->run();