Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
494 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?php | ||
/** | ||
* This is a command-line entry point to concerto that allows execution of actions | ||
* | ||
* @package segue | ||
* | ||
* @copyright Copyright © 2007, Middlebury College | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL) | ||
*/ | ||
|
||
/********************************************************* | ||
* Define a Constant reference to this application directory. | ||
*********************************************************/ | ||
|
||
if (!defined('MYDIR')) | ||
define("MYDIR",realpath(dirname(__FILE__)."/../")); | ||
|
||
if (!defined('MYPATH')) | ||
define("MYPATH", MYDIR); | ||
|
||
if (!defined('MYURL')) | ||
define("MYURL", MYPATH."/bin/index_cli.php"); | ||
|
||
if (!defined('LOAD_GUI')) | ||
define("LOAD_GUI", true); | ||
|
||
if (!defined('HELP_TEXT')) | ||
define("HELP_TEXT", " | ||
This is a command line entry point to Segue. You must specify a module and | ||
action. Additional parameters can be specified using the following format: | ||
--<parameter_name>='<parameter_value>' | ||
Usage: | ||
".$_SERVER['argv'][0]." --module=<module_name> --action=<action_name> [parameters] | ||
"); | ||
|
||
/********************************************************* | ||
* Include our libraries | ||
*********************************************************/ | ||
require_once(MYDIR."/main/include/libraries.inc.php"); | ||
|
||
/********************************************************* | ||
* Include our configuration and setup scripts | ||
*********************************************************/ | ||
require_once(MYDIR."/main/include/setup.inc.php"); | ||
|
||
/********************************************************* | ||
* Execute our actions | ||
*********************************************************/ | ||
if (defined('ENABLE_TIMERS') && ENABLE_TIMERS) { | ||
require_once(HARMONI."/utilities/Timer.class.php"); | ||
$execTimer = new Timer; | ||
$execTimer->start(); | ||
} | ||
|
||
require_once(HARMONI."architecture/output/CommandLineOutputHandler.class.php"); | ||
$harmoni->attachOutputHandler(new CommandLineOutputHandler); | ||
|
||
require_once(HARMONI."architecture/request/CommandLineRequestHandler.class.php"); | ||
$harmoni->request->assignRequestHandler(new CommandLineRequestHandler($_SERVER['argv'])); | ||
|
||
try { | ||
$harmoni->execute(); | ||
} catch (UnknownActionException $e) { | ||
print HELP_TEXT; | ||
} catch (HelpRequestedException $e) { | ||
print $e->getMessage(); | ||
} | ||
|
||
if (defined('ENABLE_TIMERS') && ENABLE_TIMERS) { | ||
$execTimer->end(); | ||
print "\n<table>\n<tr><th align='right'>Execution Time:</th>\n<td align='right'><pre>"; | ||
printf("%1.6f", $execTimer->printTime()); | ||
print "</pre></td></tr>\n</table>"; | ||
|
||
$dbhandler = Services::getService("DBHandler"); | ||
printpre("NumQueries: ".$dbhandler->getTotalNumberOfQueries()); | ||
|
||
// printpreArrayExcept($_SESSION, array('__temporarySets')); | ||
// debug::output(session_id()); | ||
// Debug::printAll(); | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
/** | ||
* This is a command line script that will send migration reminder emails. | ||
* It takes no arguments or parameters. | ||
* | ||
* @package segue.dataport | ||
* | ||
* @copyright Copyright © 2012, Middlebury College | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL) | ||
* | ||
* @version $Id$ | ||
*/ | ||
|
||
if (!defined('HELP_TEXT')) | ||
define("HELP_TEXT", | ||
"This is a command line script that will clean up old OAI resumption tokens. | ||
It takes no arguments or parameters. | ||
"); | ||
|
||
if (!defined("OAI_UPDATE_OUTPUT_HTML")) | ||
define("OAI_UPDATE_OUTPUT_HTML", false); | ||
|
||
$_SERVER['argv'][] = '--module=dataport'; | ||
$_SERVER['argv'][] = '--action=send_migration_reminders'; | ||
|
||
require(dirname(__FILE__)."/index_cli.php"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule harmoni
updated
1 files
+1 −1 | core/oki2/agentmanagement/AuthNMethods/CASAuthNMethod.class.php |
Oops, something went wrong.