Skip to content

Commit

Permalink
Disable Logs on OGSpy upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
darknoon29 committed Apr 19, 2023
1 parent b45a0b2 commit 1400f1b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 0 additions & 1 deletion core/mod_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ function getRepositoryDetails($repoName)
{

$liste_mods = getRepositorylist();
//print_r($liste_mods);
if (is_array($liste_mods)) {
foreach ($liste_mods as $mod) {

Expand Down
10 changes: 8 additions & 2 deletions core/tool_upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* @version 2.1.9
*/

use Ogsteam\Ogspy\Model\Config_Model;

if (!defined('IN_SPYOGAME')) {
die("Hacking attempt");
}
Expand Down Expand Up @@ -76,13 +78,17 @@
rcopy("./mod/autoupdate/tmp/" . $toolroot, ".");
rrmdir("./mod/autoupdate/tmp/" . $toolroot);



//On passe au script de mise à jour.
if (!is_writable("./install")) {
die("Error: OGSpy install folder must be writeable (755) " . __FILE__ . "(Ligne: " . __LINE__ . ")");
}

//Disable Logs (Will not work due to chdir)
$Config_Model = new Config_Model();
$Config_Model->update_one(0, "debug_log");
$Config_Model->update_one(0, "log_phperror");
generate_config_cache();

chdir('./install'); //Passage dans le répertoire d'installation
$pub_verbose = false; //Paramétrage de la mise à jour
echo "\t" . '<tr>' . "\n";
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
autoupdate
3.2.1
3.2.2
autoupdate,AutoUpdate,autoupdate,autoupdate,autoupdate.php,1,1
3.3.7

0 comments on commit 1400f1b

Please sign in to comment.