GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Small collection of scripts to manage wordpress
Homepage: http://people.warp.es/~koke/wordpress-scripts/
Clone URL: git://github.com/koke/wordpress-scripts.git
Fix mysql options
koke (author)
Wed May 14 11:49:55 -0700 2008
commit  1b9ed58e83429e788d43ced83f5281728133496a
tree    3c8a1bf7144f2dca5fea327a6e8b3240bca2ba01
parent  68405747e12269d68411fda82523b12250e96446
...
23
24
25
26
 
27
28
29
30
31
 
32
33
34
 
...
23
24
25
 
26
27
28
29
30
 
31
32
33
 
34
0
@@ -23,12 +23,12 @@ if ($password == "") {
0
 } else {
0
     $popt = "-p%s";
0
 }
0
-if (!preg_match('/^http:\/\/', $host_name)) {
0
+if (!preg_match('/^http:\/\//', $host_name)) {
0
     $host_name = "http://$host_name";
0
 }
0
 echo "Changing siteurl to $host_name...\n";
0
 $sql = "UPDATE wp_options SET option_value = '$host_name' WHERE option_name = 'siteurl'";
0
-system(sprintf("mysql -h %s -u %s $popt %s -e '%s'", $backup_name, DB_HOST, DB_USER, DB_PASSWORD, DB_NAME, $sql));
0
+system(sprintf("mysql -h %s -u %s $popt %s -e '%s'", $backup_name, DB_HOST, DB_USER, DB_NAME, $sql));
0
 echo "Changing siteurl to $host_name...\n";
0
 $sql = "UPDATE wp_options SET option_value = '$host_name' WHERE option_name = 'siteurl'";
0
-system(sprintf("mysql -h %s -u %s $popt %s -e '%s'", $backup_name, DB_HOST, DB_USER, DB_PASSWORD, DB_NAME, $sql));
0
+system(sprintf("mysql -h %s -u %s $popt %s -e '%s'", $backup_name, DB_HOST, DB_USER, DB_NAME, $sql));

Comments

    No one has commented yet.