Changeset 790
- Timestamp:
- Jan 21, 2016, 3:59:53 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 36 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/System.php
- Property svn:executable deleted
-
trunk/Common/Global.php
- Property svn:executable deleted
-
trunk/Modules/Chat/Chat.php
- Property svn:executable deleted
-
trunk/Modules/Meals/Meals.php
- Property svn:executable deleted
-
trunk/Modules/Network/HostList.php
- Property svn:executable deleted
-
trunk/Modules/Network/Hosting.php
- Property svn:executable deleted
-
trunk/Modules/Network/Subnet.php
- Property svn:executable deleted
-
trunk/Modules/NetworkConfig/Generate.php
- Property svn:executable deleted
-
trunk/Modules/NetworkConfigLinux/Generators/DHCP.php
- Property svn:executable deleted
-
trunk/Modules/NetworkConfigLinux/Generators/DNS.php
- Property svn:executable deleted
-
trunk/Modules/NetworkConfigLinux/Generators/IPTables.php
- Property svn:executable deleted
-
trunk/Modules/NetworkConfigLinux/Generators/NAT.php
- Property svn:executable deleted
-
trunk/Modules/NetworkConfigLinux/Generators/TrafficShaping.php
- Property svn:executable deleted
-
trunk/Modules/NetworkConfigRouterOS/Generators/Common.php
- Property svn:executable deleted
-
trunk/Modules/NetworkConfigRouterOS/Generators/Netwatch.php
- Property svn:executable deleted
-
trunk/Modules/NetworkShare/SharePage.php
- Property svn:executable deleted
-
trunk/Modules/NetworkShare/browse.php
- Property svn:executable deleted
-
trunk/Modules/NetworkShare/firefox.php
- Property svn:executable deleted
-
trunk/Modules/NetworkShare/online.php
- Property svn:executable deleted
-
trunk/Modules/NetworkShare/playlist.php
- Property svn:executable deleted
-
trunk/Modules/NetworkShare/update.php
- Property svn:executable deleted
-
trunk/Modules/News/ImportKinoVatra.php
- Property svn:executable deleted
-
trunk/Modules/News/News.php
- Property svn:executable deleted
-
trunk/Modules/News/NewsPage.php
- Property svn:executable deleted
-
trunk/Modules/Portal/Portal.php
- Property svn:executable deleted
-
trunk/Modules/TimeMeasure/Measure.php
- Property svn:executable deleted
-
trunk/Modules/User/User.php
- Property svn:executable deleted
-
trunk/Modules/User/UserList.php
- Property svn:executable deleted
-
trunk/Packages/Common/AppModule.php
r779 r790 231 231 foreach($Module->Dependencies as $Dependency) 232 232 { 233 if(!array_key_exists($Dependency, $this->Modules)) 234 throw new Exception('Module "'.$Module->Name.'" dependency "'.$Dependency.'" not found'); 233 235 $DepModule = $this->Modules[$Dependency]; 234 236 if(in_array(ModuleCondition::All, $Conditions) or … … 287 289 } 288 290 291 function InstallAll() 292 { 293 $this->Perform($this->Modules, array(ModuleAction::Install)); 294 $this->SaveState(); 295 } 296 289 297 function UninstallAll() 290 298 { 291 299 $this->Perform($this->Modules, array(ModuleAction::Uninstall)); 300 $this->SaveState(); 301 } 302 303 function EnableAll() 304 { 305 $this->Perform($this->Modules, array(ModuleAction::Enable)); 306 $this->SaveState(); 307 } 308 309 function DisableAll() 310 { 311 $this->Perform($this->Modules, array(ModuleAction::Disable)); 292 312 $this->SaveState(); 293 313 } -
trunk/Packages/Common/Application.php
- Property svn:executable deleted
-
trunk/Packages/Common/Base.php
- Property svn:executable deleted
-
trunk/Packages/Common/Common.php
r784 r790 15 15 include_once(dirname(__FILE__).'/Config.php'); 16 16 include_once(dirname(__FILE__).'/Page.php'); 17 include_once(dirname(__FILE__).'/Locale.php'); 17 18 18 19 class PackageCommon -
trunk/Packages/Common/Database.php
r746 r790 2 2 3 3 // Extended database class 4 // Date: 201 1-11-254 // Date: 2016-01-11 5 5 6 6 class DatabaseResult … … 27 27 class Database 28 28 { 29 var $Prefix = '';29 var $Prefix; 30 30 var $Functions; 31 31 var $Type; 32 32 var $PDO; 33 var $Error = '';33 var $Error; 34 34 var $insert_id; 35 var $LastQuery = '';35 var $LastQuery; 36 36 var $ShowSQLError; 37 37 var $ShowSQLQuery; 38 var $LogSQLQuery; 39 var $LogFile; 38 40 39 41 function __construct() 40 42 { 43 $this->Prefix = ''; 44 $this->Functions = array('NOW()', 'CURDATE()', 'CURTIME()', 'UUID()'); 41 45 $this->Type = 'mysql'; // mysql, pgsql 46 $this->Error = ''; 47 $this->LastQuery = ''; 42 48 $this->ShowSQLError = false; 43 49 $this->ShowSQLQuery = false; 44 $this->Functions = array('NOW()', 'CURDATE()', 'CURTIME()', 'UUID()'); 50 $this->LogSQLQuery = false; 51 $this->LogFile = dirname(__FILE__).'/../../Query.log'; 45 52 } 46 53 … … 78 85 { 79 86 if(!$this->Connected()) throw new Exception('Not connected to database'); 87 if(($this->ShowSQLQuery == true) or ($this->LogSQLQuery == true)) $QueryStartTime = microtime(); 80 88 $this->LastQuery = $Query; 89 if(($this->ShowSQLQuery == true) or ($this->LogSQLQuery == true)) 90 $Duration = ' ; '.round(microtime() - $QueryStartTime, 4). ' s'; 91 if($this->LogSQLQuery == true) 92 file_put_contents($this->LogFile, $Query.$Duration."\n", FILE_APPEND); 81 93 if($this->ShowSQLQuery == true) 82 echo('<div style="border-bottom-width: 1px; border-bottom-style: solid; padding-bottom: 3px; padding-top: 3px; font-size: 12px; font-family: Arial;">'.$Query.'</div>'."\n"); 94 echo('<div style="border-bottom-width: 1px; border-bottom-style: solid; '. 95 'padding-bottom: 3px; padding-top: 3px; font-size: 12px; font-family: Arial;">'.$Query.$Duration.'</div>'."\n"); 83 96 $Result = new DatabaseResult(); 84 97 $Result->PDOStatement = $this->PDO->query($Query); … … 175 188 } 176 189 190 function quote($Text) 191 { 192 return($this->PDO->quote($Text)); 193 } 194 177 195 public function __sleep() 178 196 { -
trunk/cmd.php
- Property svn:executable deleted
-
trunk/favicon.ico
- Property svn:executable deleted
-
trunk/index.php
- Property svn:executable deleted
Note:
See TracChangeset
for help on using the changeset viewer.