hpdl
|
1848
|
1
|
<?php
|
|
2
|
/*
|
|
3
|
$Id: actions.php 1848 2009-02-28 02:21:10Z hpdl $
|
|
4
|
|
|
5
|
osCommerce, Open Source E-Commerce Solutions
|
|
6
|
http://www.oscommerce.com
|
|
7
|
|
|
8
|
Copyright (c) 2009 osCommerce
|
|
9
|
|
|
10
|
This program is free software; you can redistribute it and/or modify
|
|
11
|
it under the terms of the GNU General Public License v2 (1991)
|
|
12
|
as published by the Free Software Foundation.
|
|
13
|
*/
|
|
14
|
|
|
15
|
/**
|
|
16
|
* The osC_Actions class loads action modules to execute specific tasks
|
|
17
|
*/
|
|
18
|
|
|
19
|
class osC_Actions_Admin {
|
|
20
|
|
|
21
|
/**
|
|
22
|
* Loads the action module to execute
|
|
23
|
*
|
|
24
|
* @param string $module The name of the module to execute
|
|
25
|
* @access public
|
|
26
|
*/
|
|
27
|
|
|
28
|
public static function parse($module) {
|
|
29
|
$module = basename($module);
|
|
30
|
|
|
31
|
if ( !empty($module) && file_exists('includes/modules/actions/' . $module . '.php') ) {
|
|
32
|
include('includes/modules/actions/' . $module . '.php');
|
|
33
|
|
|
34
|
call_user_func(array('osC_Actions_' . $module, 'execute'));
|
|
35
|
}
|
|
36
|
}
|
|
37
|
}
|
|
38
|
?>
|