<commit_before><?php

  define('BASEPATH', 'Staff');
  require_once('../applications/wrapper.php');

  if( !$TANGO->perm->check('access_administration') ) { redirect(SITE_URL); }//Checks if user has permission to create a thread.
  require_once('template/top.php');
  $notice = '';
  
  $versions = file_get_contents('http://127.0.0.1/update_packages/version_list.php'); //@jtPox insert the real IP here
  
  if($versions != '') 
  {
        $versionList = explode("|", $versions);
        foreach($versionList as $version) 
        {
            if( version_compare(TANGOBB_VERSION, $version, '<') ) 
            {
                echo '<p>New version found: ' . $version . '<br /><a href="?doUpdate=true&step=1">&raquo; Download Now?</a></p>';
                
            // do update
                // Step 1 downloading the file
                if (isset($_GET['doUpdate']) && $_GET['doUpdate'] == true && isset($_GET['step']) && $_GET['step'] == 1)
                {
                    $ADMIN->download('http://127.0.0.1/update_packages/Iko_update_package_'.$version.'.zip', false);<commit_msg>Bugfix: Changed the second parameter for download to true<commit_after><?php

  define('BASEPATH', 'Staff');
  require_once('../applications/wrapper.php');

  if( !$TANGO->perm->check('access_administration') ) { redirect(SITE_URL); }//Checks if user has permission to create a thread.
  require_once('template/top.php');
  $notice = '';
  
  $versions = file_get_contents('http://127.0.0.1/update_packages/version_list.php'); //@jtPox insert the real IP here
  
  if($versions != '') 
  {
        $versionList = explode("|", $versions);
        foreach($versionList as $version) 
        {
            if( version_compare(TANGOBB_VERSION, $version, '<') ) 
            {
                echo '<p>New version found: ' . $version . '<br /><a href="?doUpdate=true&step=1">&raquo; Download Now?</a></p>';
                
            // do update
                // Step 1 downloading the file
                if (isset($_GET['doUpdate']) && $_GET['doUpdate'] == true && isset($_GET['step']) && $_GET['step'] == 1)
                {
                    $ADMIN->download('http://127.0.0.1/update_packages/Iko_update_package_'.$version.'.zip', true);
{'fraction_non_alphanumeric': 0.18202047174009792, 'fraction_numerical': 0.01335113484646195, 'mean_word_length': 2.5179968701095463, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5035918', 'n_tokens_mistral': 715, 'n_tokens_neox': 675, 'n_words': 131}