Changeset 880


Ignore:
Timestamp:
Sep 4, 2020, 9:30:13 AM (4 years ago)
Author:
chronos
Message:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/UpdateTrace.php

    r878 r880  
    21162116  $Manager->Execute('ALTER TABLE `NewsImport` ADD PRIMARY KEY (`Id`);');
    21172117  $Manager->Execute('ALTER TABLE `NewsImport` MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT;');
     2118}
     2119
     2120function UpdateTo880($Manager)
     2121{
     2122  $Manager->Execute('ALTER TABLE `UserOnline` CHANGE `IpAddress` `IpAddress` VARCHAR(45) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';');
     2123  $Manager->Execute('ALTER TABLE `User` CHANGE `LastIpAddress` `LastIpAddress` VARCHAR(45) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';');
     2124  $Manager->Execute('ALTER TABLE `Log` CHANGE `IPAddress` `IPAddress` VARCHAR(45) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;');
    21182125}
    21192126
     
    22192226      869 => array('Revision' => 870, 'Function' => 'UpdateTo870'),
    22202227      870 => array('Revision' => 878, 'Function' => 'UpdateTo878'),
     2228      878 => array('Revision' => 880, 'Function' => 'UpdateTo880'),
    22212229    );
    22222230  }
  • trunk/Application/Version.php

    r879 r880  
    11<?php
    22
    3 $Revision = 879; // Subversion revision
    4 $DatabaseRevision = 878; // SQL structure revision
    5 $ReleaseTime = strtotime('2020-07-24');
     3$Revision = 880; // Subversion revision
     4$DatabaseRevision = 880; // SQL structure revision
     5$ReleaseTime = strtotime('2020-09-04');
  • trunk/Install/deb/debian/conf/apache.conf

    r853 r880  
    66    DirectoryIndex index.php
    77    AllowOverride All
     8    Require all granted
    89</Directory>
  • trunk/Packages/Common/AppModule.php

    r874 r880  
    363363        'Version' => $Module->Version, 'Installed' => $Module->Installed);
    364364    }
    365     file_put_contents($this->FileName, "<?php \n\n\$ConfigModules = ".var_export($Data, true).";\n");
     365    if (file_put_contents($this->FileName, "<?php \n\n\$ConfigModules = ".var_export($Data, true).";\n") === FALSE)
     366    {
     367      echo($this->FileName.' is not writeable.');
     368    }
    366369  }
    367370
     
    394397  function LoadModules()
    395398  {
    396     if (method_exists($this->OnLoadModules[0], $this->OnLoadModules[1]))
     399    if (is_array($this->OnLoadModules) and (count($this->OnLoadModules) == 2) and method_exists($this->OnLoadModules[0], $this->OnLoadModules[1]))
    397400      $this->OnLoadModules();
    398401    else $this->LoadModulesFromDir($this->ModulesDir);
Note: See TracChangeset for help on using the changeset viewer.