Frontpage extensions

Discussion in 'Feature Requests' started by ddouma, Jul 14, 2008.

  1. ddouma

    ddouma New Member

    As I explained in 'http://www.howtoforge.com/forums/showthread.php?p=135838' I would love to see some support for Frontpage extensions. There are to much users around the globe that we can't ignore the support for that! :)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Frontpage extensions are not really in use anymore. Microsoft has switched to their .net platform.

    Beside that, ISPConfig supports already frontpage extensions, but I would never install frontapge extensions on my server, its a great mess. You will e.g. get problems with FTP and file permissions, e.g. FTP and Frontpage can not be used together on the same website.
     
  3. ddouma

    ddouma New Member

    Okay you got point.

    What about a feature for an site editor?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Would be great. But are there any good opensource site editors that we can add as addon package?
     
  5. ddouma

    ddouma New Member

    wysiwyg is a good editor...
     
  6. Tommahawk

    Tommahawk New Member

    Here is a simple but effective editor I wrote supports all scripting languages and text will do the job well

    Code:
    
    <?
    
    	$go = $_POST['go'];  //the path to the file posted
    	$label = $_POST['label']; //the file to edit
    
    	echo "Editing: $label";  //show the filename being edited
    
    	if(isset($_POST['submit'])) {
    		$orig_contents = $_POST['editor'];  //the data in th textbox that was edited
    
    		/* check'n scan for malicious code structures 
                       a simple way of allowing any/all scripting languages
    		   $orig_contents = str_replace($scanwords,"ERROR",$orig_contents); */
    		$result = file_put_contents($go,$orig_contents);  //dumps data to file replacing previous
    	} else {
    		
    		/* runs if submit is not activated puts file to edit ($go) 
                       into variable $orig_contents */
    
    		   $orig_contents = file_get_contents($go);  	
    	}
    ?>
    	<form action="editor.php" method="post">
    	<input type="hidden" name="go" value="<? echo $go; ?>">
    	<input type="hidden" name="label" value="<? echo $label; ?>">
    	<textarea name="editor" cols="80" rows="35"><? echo $orig_contents; ?></textarea>
    	<p>
    	<input type="submit" name="submit" value="Save" class="submit">
    	</p>
    	</form>
    
    
    You will possibly also need to temporarily use php chmod command to alter permissions and also think about the check'n scan. When I get some time I will try to hack some code into ISPConfig to get this working. AFAIK it will only need a link that populates the $go variable with the full path including filename to work with every iteration of loop that displays the files in Web-FTP
     
    Last edited: Jul 27, 2008

Share This Page