7 rootpath
=/home
/x2003bruneau
/public_html
/
10 serviceurl
="http://murphy.m4x.org/~x2003bruneau/dotclear2/xorgservice/createBlog"
17 ( wget
"$serviceurl?owner=$owner&type=$type&url=$3" -O
- 2> /dev
/null |
grep 'blog created' ) || die
"Blog creation failed"
19 ( cd $rootpath && mkdir
$owner ) || die
"Can't create the repository for the blog"
22 for i
in admin db inc index.php locales plugins themes public
; do
23 ln -s
$rootpath/$templatepath/$i || die
"Can't add path to $i"
25 mkdir
-p
"$rootpath/$templatepath/public/$owner"
29 RewriteBase $baseurl/$owner
30 RewriteCond %{REQUEST_FILENAME} !-f
31 RewriteCond %{REQUEST_FILENAME} !-d
32 RewriteRule (.*) index.php/\$1
33 RewriteRule ^index.php\$ index.php/
34 SetEnv DC_BLOG_ID $owner