mirror of
https://github.com/Mowie/Mowie
synced 2024-06-18 00:14:14 +00:00
26 lines
605 B
PHP
Executable File
26 lines
605 B
PHP
Executable File
<?php
|
|
$confirmationRequierd = false;
|
|
$iniFile = 'confirm.ini';
|
|
if(strpos($_SERVER['SCRIPT_FILENAME'], '/apps/') === false)
|
|
{
|
|
$iniFile = '../SimplePages/backend/confirm.ini';
|
|
}
|
|
|
|
if(file_exists($iniFile))
|
|
{
|
|
$config = parse_ini_file($iniFile);
|
|
//print_r($config);exit;
|
|
$confirmationRequierd = $config['confirmationRequierd'];
|
|
$confirmationUserMail = null;
|
|
$confirmationUser = null;
|
|
|
|
if($confirmationRequierd)
|
|
{
|
|
$confirmationUser = $config['confirmationUser'];
|
|
|
|
$db->setCol('system_admins');
|
|
$db->data['id'] = $confirmationUser;
|
|
$db->get();
|
|
$confirmationUserMail = $db->data[0]['mail'];
|
|
}
|
|
} |