function install_award_idents()
{
    //scan available configs and save the appropriate awardfiles
    configscanner();
    end_process();
    //delete cache to display new medal owners
    $files = glob("dynamic/cache/*.txt");
    foreach ($files as $file) {
        unlink($file);
    }
}
Esempio n. 2
0
 * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL) Version 2
 * 
 */
if (php_sapi_name() !== "cli") {
    die;
}
/**
 * Configuration file
 */
include realpath(dirname(__FILE__) . "/../config.inc.php");
/**
 * Database file
 */
include realpath(dirname(__FILE__) . "/../db.inc.php");
/**
 * Process
 */
include realpath(dirname(__FILE__) . "/../functions/functions.process.php");
//end any other process
$p = is_process_running(2);
if ($p) {
    kill_process($p);
    end_process($p);
}
start_process(realpath(dirname(__FILE__) . "/../admin/systemsortprocess.php"), 2);
$p = is_process_running();
if ($p) {
    kill_process($p);
    end_process($p);
}
start_process(realpath(dirname(__FILE__) . "/../admin/process.php"));
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 *  http://www.gnu.org/copyleft/gpl.html
 ***************************************************************************/
include "../inc_mysql.php";
include "../func-globallogic.php";
echo "<td width=\"100%\" valign=\"top\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"10\">";
echo "<tr><td align=\"left\" valign=\"top\">";
if (!isset($pop)) {
    $pop = 1;
}
$cpath = abs_pathlink($pop);
error_reporting(0);
//scan available configs and save the appropriate awardfiles
configscanner();
end_process();
//********************************************************************************
//  FUNCTIONS
//********************************************************************************
function identify_config()
{
    global $currentconfignumber;
    global $currentconfig;
    global $cpath;
    // If statsconfig.php exists, we won't enable multiconfig functionality
    if (file_exists($cpath . "config/statsconfig.php")) {
        $currentconfig = "statsconfig.php";
        $currentconfignumber = 0;
    } elseif (file_exists($cpath . "config/statsconfig1.php")) {
        $currentconfig = "statsconfig1.php";
        $currentconfignumber = 1;