Version 4.2.0
This commit is contained in:
1 parent
0dc2aee5ed
commit
96997ddd8e
2074 files changed
+125454
-55780
No files matched your search
@@ -1,15 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief Runs tasks (web URL)
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Community Suite
|
||||
* @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 17 Dec 2015
|
||||
* @version SVN_VERSION_NUMBER
|
||||
*/
|
||||
|
||||
/* Init IPS Community Suite */
|
||||
/* Init Invision Community */
|
||||
require_once str_replace( 'applications/core/interface/task/web.php', 'init.php', str_replace( '\\', '/', __FILE__ ) );
|
||||
|
||||
/* Set HTTP status */
|
||||
@@ -41,6 +40,14 @@ try
|
||||
@header( "HTTP/{$http} 200 OK" );
|
||||
print "Task Ran";
|
||||
}
|
||||
catch ( \OutOfRangeException $e )
|
||||
{
|
||||
\IPS\Log::debug( $e, $e->getMessage() );
|
||||
|
||||
@header( "HTTP/{$http} 500 Internal Server Error" );
|
||||
echo "Exception:\n";
|
||||
print $e->getMessage();
|
||||
}
|
||||
catch ( \Exception $e )
|
||||
{
|
||||
\IPS\Log::log( $e, 'uncaught_exception' );
|
||||
|
||||
Reference in new issue
Block a user