Show
Ignore:
Timestamp:
07/07/08 14:56:01 (5 months ago)
Author:
sidtheduck
Message:

+ cleared out require and include functions from included files (no longer needed if included)
+ added code to stop direct access to included files
+ adding back r549 translatable themes
+ cleaned version of "Air" theme

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plog-admin/includes/install-functions.php

    r551 r552  
    11<?php 
     2if (basename($_SERVER['PHP_SELF']) == basename( __FILE__ )) { 
     3        // ignorance is bliss 
     4        exit(); 
     5} 
     6 
    27if (!defined('PLOGGER_DIR')) { 
    38        return false; 
    49} 
     10 
     11@include_once(PLOGGER_DIR.'plog-config.php'); 
    512require_once(PLOGGER_DIR.'plog-admin/plog-admin-functions.php'); 
    6 @include(PLOGGER_DIR.'plog-config.php'); 
    713 
    814function do_install($form) { 
     
    367373        mysql_query($query) or die(mysql_error().'<br /><br />'. $query); 
    368374 
    369         mail($config['admin_email'],"Your new gallery","You have successfully installed your new Plogger gallery. You can manage it at ${config['gallery_url']}plog-admin Username is ${config['admin_username']} and password ${config['admin_password']}."); 
     375        mail($config['admin_email'],"Your new gallery","You have successfully installed your new Plogger gallery. You can manage it at ${config['gallery_url']}plog-admin Username is `${config['admin_username']}` and password `${config['admin_password']}`."); 
    370376} 
    371377 
     
    464470        } 
    465471 
    466         $files_to_write = array("./","./plog-content/images","./plog-content/thumbs", "./plog-content/uploads"); 
     472        $files_to_write = array("./plog-content/images","./plog-content/thumbs", "./plog-content/uploads"); 
    467473        foreach($files_to_write as $file){ 
    468474                if (!is_writable(PLOGGER_DIR . $file)){