Shimmie needs to be run via a web server with PHP support -- you appear to be either opening the file from your hard disk, or your web server is mis-configured and doesn't know how to handle PHP files.
If you've installed a web server on your desktop PC, you probably
want to visit the local web server.
Please ensure that the database you are installing Shimmie with is empty before continuing.
Once you have emptied the database of any tables, please hit 'refresh' to continue.
An error occured while trying to create the database tables necessary for Shimmie.
Please check and ensure that the database configuration options are all correct.
{$e->getMessage()}
EOD; exit(3); } catch (Exception $e) { print <<An unknown error occured while trying to create the database tables necessary for Shimmie.
Please check the server log files for more information.
{$e->getMessage()}
EOD; exit(4); } } // }}} function insert_defaults() { // {{{ try { $db = new Database(); $db->execute("INSERT INTO users(name, pass, joindate, class) VALUES(:name, :pass, now(), :class)", Array("name" => 'Anonymous', "pass" => null, "class" => 'anonymous')); $db->execute("INSERT INTO config(name, value) VALUES(:name, :value)", Array("name" => 'anon_id', "value" => $db->get_last_insert_id('users_id_seq'))); if(check_im_version() > 0) { $db->execute("INSERT INTO config(name, value) VALUES(:name, :value)", Array("name" => 'thumb_engine', "value" => 'convert')); } $db->commit(); } catch(PDOException $e) { print <<An error occured while trying to insert data into the database.
Please check and ensure that the database configuration options are all correct.
{$e->getMessage()}
EOD; exit(5); } catch (Exception $e) { print <<An unknown error occured while trying to insert data into the database.
Please check the server log files for more information.
{$e->getMessage()}
EOD; exit(6); } } // }}} function build_dirs() { // {{{ // *try* and make default dirs. Ignore any errors -- // if something is amiss, we'll tell the user later if(!file_exists("images")) @mkdir("images"); if(!file_exists("thumbs")) @mkdir("thumbs"); if(!file_exists("data") ) @mkdir("data"); if(!is_writable("images")) @chmod("images", 0755); if(!is_writable("thumbs")) @chmod("thumbs", 0755); if(!is_writable("data") ) @chmod("data", 0755); // Clear file status cache before checking again. clearstatcache(); if( !file_exists("images") || !file_exists("thumbs") || !file_exists("data") || !is_writable("images") || !is_writable("thumbs") || !is_writable("data") ) { print "Shimmie needs to make three folders in it's directory, 'images', 'thumbs', and 'data', and they need to be writable by the PHP user.
If you see this error, if probably means the folders are owned by you, and they need to be writable by the web server.
PHP reports that it is currently running as user: ".$_ENV["USER"]." (". $_SERVER["USER"] .")
Once you have created these folders and / or changed the ownership of the shimmie folder, hit 'refresh' to continue.
If you aren't redirected, click here to Continue.
EOD;
}
else {
$h_file_content = htmlentities($file_content);
print <<
Once done, click here to Continue.
Shimmie Installer
File Permissions Error:
The web server isn't allowed to write to the config file; please copy
the text below, save it as 'data/config/shimmie.conf.php', and upload it into the shimmie
folder manually. Make sure that when you save it, there is no whitespace
before the "<?php" or after the "?>"
EOD;
}
echo "\n";
} // }}}
?>