Index: trunk/tools/rotatebot/rotbot.php |
— | — | @@ -54,11 +54,11 @@ |
55 | 55 | |
56 | 56 | |
57 | 57 | logfile("Verbinde zur Datenbank!"); |
58 | | -include("/home/luxo/public_html/contributions/logindata.php"); |
59 | | -$myslink = mysql_connect($databanknames2, $userloginname, $databasepw) or suicide ("Can't connect to MySQL"); |
| 58 | +include("settings.php"); |
| 59 | +$myslink = mysql_connect($databanknames, $userloginname, $databasepw) or suicide ("Can't connect to MySQL"); |
60 | 60 | $database = "commonswiki_p"; |
61 | 61 | mysql_select_db($database, $myslink) |
62 | | - or suicide ("Konnte $databas nicht öffnen: ".mysql_error()); |
| 62 | + or suicide ("Konnte $database nicht öffnen: ".mysql_error()); |
63 | 63 | //Datenbank verbunden |
64 | 64 | |
65 | 65 | $wrongfiles = array(); |
— | — | @@ -609,7 +609,6 @@ |
610 | 610 | include("upload.php"); |
611 | 611 | include("login.php"); |
612 | 612 | |
613 | | - |
614 | 613 | foreach($catcontent2 as $filename => $arraycontent) |
615 | 614 | { |
616 | 615 | //upload summary |
— | — | @@ -762,7 +761,7 @@ |
763 | 762 | $logfilew .= "<br style=\"clear:both;\" clear=\"all\" />"; |
764 | 763 | } |
765 | 764 | |
766 | | -if($somanyrot > 0 OR count($wrongfiles) > 0) |
| 765 | +if($somanyrot > 0 || count($wrongfiles) > 0) |
767 | 766 | { |
768 | 767 | logfile("write logfile. ($somanyrot pictures)"); |
769 | 768 | |
Index: trunk/tools/rotatebot/settings.php |
— | — | @@ -0,0 +1,7 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +$databanknames = ""; |
| 5 | + |
| 6 | +$userloginname = ""; |
| 7 | +$databasepw = ""; |
| 8 | + |
Property changes on: trunk/tools/rotatebot/settings.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 9 | + native |
Index: trunk/tools/rotatebot/login.php |
— | — | @@ -244,8 +244,6 @@ |
245 | 245 | |
246 | 246 | function wikilogin($username,$password,$project,$useragent) |
247 | 247 | { |
248 | | - global $cookies; |
249 | | - |
250 | 248 | $getrequest = (substr($project,-1) == "/") ? "w/api.php?action=login" : "/w/api.php?action=login"; |
251 | 249 | $project = (substr($project,0,7) == "http://") ? $project : "http://".$project; |
252 | 250 | |