SnippetMaster Support Forums
Return to main website
 
January 18, 2006, 02:34:11 PM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 18, 2006, 02:34:11 PM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Access Files « previous next »
Pages: [1] Print
Author Topic: Access Files  (Read 113 times)
hackett

Posts: 3


[-] Access Files
« on: October 24, 2005, 08:54:30 AM »

Hi..may be a basic question...but here we go.

I have successfully uploaded the config page and have called the directory 'siteupdate' as opposed to 'snippetm'. Now if you key in the full address (which in this case is www.instructorwebsites.co.uk/siteupdate) and type in 'demo' and demo' (haven't changed this yet) you end up with the login page which allows you to access the demo.html page.

Any changes made to this page work...so that's great. Here's the question then.....how do I configure this so that pages that I specify appear in the drop down box to allow changes to be made? I have provided below the config info that I am using. Another question...not sure if this has cropped up before.....when I access the demo.html page 'Office Professional' tries to launch (what;s all that about?

Config as follows:

<?php

// This is the FULL path to the directory where the SnippetMaster program files
// are located.
// NOTE: If you put SnippetMaster in your "web root" directory, the $ROOT and
//       $PATH settings will then be the same. DO NOT add a trailing slash.
   $PATH = "/home/sites/instructorwebsites.co.uk/public_html/siteupdate";

// This is the FULL path to the directory where your website files are
// located on your server (Your web root). DO NOT add a trailing slash.
   $ROOT = "/home/sites/instructorwebsites.co.uk/public_html/siteupdate";

// Set to the full url to access the value you set for $ROOT
   $PREVIEW = "http://www.instructorwebsites.co.uk";

// Set to the full url to access the value you set for $PATH.
   $URL = "http://www.instructorwebsites.co.uk";

// Specify a list of folders to ignore when browsing for SnippetMaster files.
   $IGNORE = array("stats","images","includes","cgi-bin","Templates","click","polls","forums","newsletter","location1","location2");

// What kind of file types should be visible to the users when browsing for
// images using the WYSIWYG editor?  (The extensions you specify MUST be
// for an image filetype or you will get javascript errors.)
   $VALID_IMAGE_FILE_TYPES =  array("gif","jpg","jpeg","png");

// What kind of file types should be visible to the users when browsing for
// links using the WYSIWYG editor?
   $VALID_LINK_FILE_TYPES =  array("html","htm","doc","pdf","xls","ppt","txt","jpg","gif","png");

// Set to 1 to use authentication, otherwise set to 0.
// NOTE: If  you don't need password protection, set AUTH to 0.
   $AUTH = 1;
   $USER = "demo";
   $PASS = "demo";

// Set the email address to be used for error reporting.
// NOTE: (Must be set, even if $REPORT is set to 0)
   $EMAIL = "";

// To turn off SnippetMaster errors from appearing in your email inbox,
// set to 0.
   $REPORT = 1;

// What is the maximum size of an editable file in bytes?
   $MAXSIZE = 1000000;

// Set to 1 to enabling printing of WYSIWYG debug messages, otherwise
// set to 0
   $DEBUG = 0;

// You can specify an unlimited number of upload locations for your users. To
// add more locations, just follow the variable pattern.  (Be sure to increment
// the array number for each new location.)
// PATH - The _full_ path to the destination directory. (DO NOT add a trailing
//      slash.) This directory MUST already exist and have permissions of 777.
// NAME  - The text users will see in the Upload window for this location.
// OVERWRITE - For this location, allow files that already exist to be
//             overwritten? For yes, set to 1; for no, set to 0.
// If you don't want to use at least three locations, just delete the lines you
// don't need.  (They are for example only, anyway..)
   $UPLOAD_INFO[1][PATH] = "/home/sites/instructorwebsites.co.uk/public_html/index.htm";
   $UPLOAD_INFO[1][NAME] = "Upload Location #1";
   $UPLOAD_INFO[1][OVERWRITE] = 1;

// Do you want to limit the acceptable extensions of uploaded file types?
// To enable set to 1; to disable change to 0.
   $LIMIT_UPLOAD_FILE_TYPES = 1;

// If enabled, specify a list of acceptable file types for the upload function.
   $VALID_UPLOAD_FILE_TYPES =  array("gif","jpg","jpeg","png");

// Do you want to set a size limit for uploaded files? 
// To enable set to 1; to disable change to 0.
   $UPLOAD_FILE_SIZE_LIMIT = 1;

// If enabled, specify the size limit (in bytes) for uploaded files.
   $UPLOAD_FILE_MAX_SIZE = 200000;

?>
Report to moderator   Logged
hackett

Posts: 3


[-] Re: Access Files
« Reply #1 on: October 24, 2005, 10:50:24 AM »

It's OK...I've worked it out now...brilliant......!

Sure to be back with some question or another!
Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Access Files « previous next »
Jump to:  

Powered by MySQL Powered by PHP SnippetMaster Support Forums | Powered by SMF 1.0.5.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!