<?php

// Copy this file in the data folder of your smob client
// Rename into bugfix.php
// Make a copy of the data folder in case something wrong happens
// Run the script, i.e. go to http://your-smob-client/data/bugfix.php
// You can now remove the file

$dir  opendir(dirname(__FILE__));
while (
false !== ($filename readdir($dir))) {
    if(
substr($filename, -3) == 'rdf') {
        echo 
"Updating $filename ... ";
        
$file dirname(__FILE__)."/$filename";
        
$data str_replace('sioct:MicroBlogPost''sioct:MicroblogPost'file_get_contents($file));
        
$f fopen($file'w');
        
fwrite($f$data);
        
fclose($f);    
        echo 
" ok<br/>";
    }
}

?>