- Timestamp:
- Mar 24, 2009, 1:36:24 PM (16 years ago)
- Location:
- www
- Files:
-
- 1 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
www/global.php
r167 r168 7 7 foreach($_GET as $Index => $Item) $_GET[$Index] = addslashes($Item); 8 8 9 if( !isset($SessionDisable)) session_start();9 if(isset($_SERVER['REMOTE_ADDR'])) session_start(); 10 10 include('config.php'); 11 11 include('database.php'); … … 45 45 include_once('user.php'); 46 46 $System->AddModule(new User()); 47 $System->Modules['User']->Check();47 if(isset($_SERVER['REMOTE_ADDR'])) $System->Modules['User']->Check(); 48 48 include_once('aktuality/news.php'); 49 49 $System->AddModule(new News()); -
www/index.php
r167 r168 29 29 array('Technické informace', '/network.php', 'tech.gif'), 30 30 array('Webkamera', '/webcam/', 'clear.gif'), 31 array(' Stránky našísítě', 'http://www.zdechov.net/', ''),31 array('Vnější stránky sítě', 'http://www.zdechov.net/', ''), 32 32 array('Kanály kabelovky', '/tkr.php', 'tv.gif'), 33 33 array('Historie sítě', '/history.php', ''), … … 84 84 foreach($LinkGroup as $Link) 85 85 { 86 if($Link[2] == '') $Link[2] = 'clear.gif'; 86 87 if(substr($Link[1], 0, 4) != 'http') $Link[1] = $this->System->Config['Web']['RootFolder'].$Link[1]; 87 88 if(!isset($Link[3]) or (isset($Link[3]) and $this->System->Modules['User']->CheckPermission($Link[3][0], $Link[3][1]))) 88 if($Link[2] == '') $Link[2] = 'clear.gif';89 89 90 $Result .= '<img alt="'.$Link[0].'" src="images/favicons/'.$Link[2].'" width="16" height="16" /> <a href="'.$Link[1].'">'.$Link[0].'</a><br />'; 90 91 } … … 210 211 global $Database, $Config, $User; 211 212 212 $Output = '';213 $Output = ''; 213 214 if(array_key_exists('Action', $_GET)) 214 215 { … … 219 220 if($_GET['Action'] == 'LoginForm') 220 221 { 221 $Output .= '<form action="?Action=Login" method="post"><center><fieldset style="width: 500px;"><legend>Přihlašovací údaje</legend> 222 <table class="hidden">223 <tr align="left"><td colspan="2">Jméno:</td></tr>224 <tr align="left"><td colspan="2"><input type="text" name="Username" size="40" maxlength="16" /></td></tr> 225 <tr align="left"><td colspan="2">Heslo:</td></tr>226 <tr align="left"><td colspan="2"><input type="password" name="Password" size="40" maxlength="16" /></td></tr>227 <tr><td colspan="2"> </td></tr>228 <tr align="left">'.229 //<td><input type="checkbox" name="remember" value="1" checked="checked" /> Trvalé přihlášení</td>230 '<td align="center" colspan="2"><input type="submit" value="Přihlásit" /></td>231 </tr>232 <tr align="left"> 233 <td><a href="?Action=UserRegister">Registrovat se</a></td>234 <td><a href="?Action=PasswordRecovery">Obnova zapomenutého hesla</a></td>235 </tr>236 </table>237 </fieldset></center>238 </form>';222 $Output .= '<form action="?Action=Login" method="post"><center><fieldset style="width: 500px;"><legend>Přihlašovací údaje</legend>'. 223 '<table class="hidden">'. 224 '<tr align="left"><td colspan="2">Jméno:</td></tr>'. 225 '<tr align="left"><td colspan="2"><input type="text" name="Username" size="40" maxlength="16" /></td></tr>'. 226 '<tr align="left"><td colspan="2">Heslo:</td></tr>'. 227 '<tr align="left"><td colspan="2"><input type="password" name="Password" size="40" maxlength="16" /></td></tr>'. 228 '<tr><td colspan="2"> </td></tr>'. 229 '<tr align="left">'. 230 //<td><input type="checkbox" name="remember" value="1" checked="checked" /> Trvalé přihlášení</td> 231 '<td align="center" colspan="2"><input type="submit" value="Přihlásit" /></td>'. 232 '</tr>'. 233 '<tr align="left">'. 234 '<td><a href="?Action=UserRegister">Registrovat se</a></td>'. 235 '<td><a href="?Action=PasswordRecovery">Obnova zapomenutého hesla</a></td>'. 236 '</tr>'. 237 '</table>'. 238 '</fieldset></center>'. 239 '</form>'; 239 240 // $Output .= $this->SystemMessage('Test', $Output); 240 241 } else -
www/sql/updates/156.sql
r156 r168 6 6 CHANGE `time_due` `TimeDue` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00'; 7 7 8 RENAME TABLE ` is`.`finance_bills` TO `is`.`FinanceBills` ;8 RENAME TABLE `finance_bills` TO `is`.`FinanceBills` ; 9 9 10 RENAME TABLE ` is`.`finance_bills_items` TO `is`.`FinanceBillsItems` ;10 RENAME TABLE `finance_bills_items` TO `FinanceBillsItems` ; 11 11 12 12 ALTER TABLE `FinanceBillsItems` CHANGE `id` `Id` INT( 11 ) NOT NULL AUTO_INCREMENT , -
www/sql/updates/163.sql
r165 r168 1 RENAME TABLE ` is`.`users` TO `is`.`users_old` ;1 RENAME TABLE `users` TO `users_old` ; 2 2 3 3 CREATE TABLE IF NOT EXISTS `MemberPayment` ( -
www/sql/updates/167.sql
r167 r168 23 23 ALTER TABLE `FinanceOperation` CHANGE `DestinationSubject` `Cash` INT NOT NULL DEFAULT '0'; 24 24 ALTER TABLE `FinanceOperation` CHANGE `SourceSubject` `Subject` INT NOT NULL DEFAULT '0'; 25 ALTER TABLE `FinanceClaimsLiabilities` ADD `BillCode` VARCHAR( 255 ) NOT NULL26 25 26 RENAME TABLE `is`.`FinanceClaimsLiabilities_old` TO `is`.`FinanceClaimsLiabilities` ; 27 ALTER TABLE `FinanceClaimsLiabilities` ADD `BillCode` VARCHAR( 255 ) NOT NULL; 28 29 ALTER TABLE `User` ADD `InitPassword` VARCHAR( 255 ) NOT NULL ; -
www/system/generate.php
r161 r168 1 1 <?php 2 include_once('/a/www/centrala/global.php'); 2 3 include('../global.php'); 3 4 4 5 $Period = 60; // seconds … … 7 8 //echo("Generating settings...\n"); 8 9 $Now = time(); 9 $DbResult = $Database->select('services_restart', '*', '(last_time < FROM_UNIXTIME('.($Now -$Period).')) AND (changed=1)');10 $DbResult = $Database->select('services_restart', '*', '(last_time < FROM_UNIXTIME('.($Now - $Period).')) AND (changed=1)'); 10 11 while($Service = $DbResult->fetch_array()) 11 12 { -
www/system/generators/dhcp_routerboard.php
r167 r168 1 1 <?php 2 2 3 $SessionDisable = true;4 3 include_once('../../global.php'); 5 4 -
www/system/generators/netwatch.php
r167 r168 1 1 <?php 2 2 3 $SessionDisable = true;4 3 include_once('../../global.php'); 5 4 -
www/system/netwatch_import.php
r167 r168 1 1 <?php 2 $SessionDisable = true;3 2 include_once('../global.php'); 4 3 -
www/user.php
r167 r168 43 43 // Refresh time of last access 44 44 $this->Database->update('UserOnline', 'SessionId="'.$SID.'"', array('ActivityTime' => 'NOW()')); 45 } else $this->Database->insert('UserOnline', array('SessionId' => $SID, 'User' => $this->AnonymousUserId, 'LoginTime' => 'NOW()', 'ActivityTime' => 'NOW()', 'IpAddress' => GetRemoteAddress(), 'HostName' => gethostbyaddr(GetRemoteAddress()) ));45 } else $this->Database->insert('UserOnline', array('SessionId' => $SID, 'User' => $this->AnonymousUserId, 'LoginTime' => 'NOW()', 'ActivityTime' => 'NOW()', 'IpAddress' => GetRemoteAddress(), 'HostName' => gethostbyaddr(GetRemoteAddress()), 'ScriptName' => $_SERVER['PHP_SELF'])); 46 46 //echo($this->Database->LastQuery); 47 47
Note:
See TracChangeset
for help on using the changeset viewer.