Index: trunk/phase3/maintenance/addwiki.php |
— | — | @@ -149,16 +149,15 @@ |
150 | 150 | # Rebuild interwiki tables |
151 | 151 | # passthru( '/home/wikipedia/conf/interwiki/update' ); |
152 | 152 | |
153 | | - $user = getenv( 'USER' ); |
154 | 153 | $time = wfTimestamp( TS_RFC2822 ); |
155 | | - UserMailer::send( new MailAddress( 'newprojects@list.wikimedia.org' ), |
156 | | - new MailAddress( $wgPasswordSender ), "New wiki: $dbName", |
157 | | - <<<EOT |
158 | | -A new wiki was created by $user at $time for a $ucsite in $name ($lang). |
159 | | -Once the wiki is fully set up, it'll be visible at http://$domain |
160 | | -EOT; |
161 | | - ); |
162 | | - |
| 154 | + $escDbName = wfEscapeShellArg( $dbname ); |
| 155 | + $escTime = wfEscapeShellArg( $time ); |
| 156 | + $escUcsite = wfEscapeShellArg( $ucsite ); |
| 157 | + $escName = wfEscapeShellArg( $name ); |
| 158 | + $escLang = wfEscapeShellArg( $lang ); |
| 159 | + $escDomain = wfEscapeShellArg( $domain ); |
| 160 | + shell_exec( "echo notifyNewProjects $escDbName $escTime $escUcsite $escName $escLang $escDomain | at now + 15 minutes" ); |
| 161 | + |
163 | 162 | $this->output( "Script ended. You still have to: |
164 | 163 | * Add any required settings in InitialiseSettings.php |
165 | 164 | * Run sync-common-all |