modul FTP

Begonnen von algebre, 19 April 2007, 20:44:47

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

algebre

HI
what do you thing about this module?
you can : upload, download, zip, unzip, edit, chmod, copy etc.. into your pragmamx admin panel, whithout any ftp-sot or cPanel of your webhost.
(if php ftp, is activetaed on your server).

Baldyman


Musicman75

great, I think that's really useful for some pragma users.
Unaufgeforderte Support PMs & Emails werden ignoriert

Immer erst die Boardsuche verwenden und gegebenenfalls einen neuen Threat eröffnen, wenn das Problem noch nicht behandelt wurde!

algebre

#3
Hi
this is index of module.


Zitat<?php

/**
* pragmaMx  Content Management System
* Copyright (c) 2005 pragmaMx Dev Team - http://pragmamx.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* $Source: /home/www/dps3311/home/cvsroot/pragmamx/html/modules/mx_net2ftp/index.php,v $
* $Revision: ?.?.?.? $
* $Author: tora60 $
* $Date: 2007/04/19 16:28:52 $

// ------------------------------------------------------------------------
// Set your parameters here
// ------------------------------------------------------------------------

// Enter the directory where net2ftp is located on the webserver's filesystem (without ending /)
// On Windows, use double backslashes like for example "C:\\path\\to\\net2ftp"
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
$module_name = basename(dirname(__FILE__));
$pagetitle ="net2ftp";

define('NET2FTP_APPLICATION_ROOTDIR', (MX_DOC_ROOT ."/modules/$module_name/net2ftp"));
define("NET2FTP_APPLICATION_ROOTDIR_URL", (MX_BASE_URL . "/modules/$module_name/net2ftp"));

//define("NET2FTP_APPLICATION_ROOTDIR", (MX_DOC_ROOT ."/net2ftp"));// if you like put in in root

// ------------------------------------------------------------------------
// Nothing has to be changed below (unless you know what you're doing!)
// ------------------------------------------------------------------------

// ------------------------------------------------------------------------


// ------------------------------------------------------------------------
// 1. Set global constants and include the net2ftp library file main.inc.php
// ------------------------------------------------------------------------

// Global variables
global $net2ftp_globals, $net2ftp_settings, $net2ftp_result, $application_rootdir, $application_rootdir_url;

// Check if the directory and URL entered above have a trailing / or \
if (substr($application_rootdir, -1, 1) == "/" || substr($application_rootdir, -1, 1) == "\\") {
   $application_rootdir = substr($application_rootdir, 0, strlen($application_rootdir)-1);
}
if (substr($application_rootdir_url, -1, 1) == "/" || substr($application_rootdir_url, -1, 1) == "\\") {
   $application_rootdir_url = substr($application_rootdir_url, 0, strlen($application_rootdir_url)-1);
}
require_once(NET2FTP_APPLICATION_ROOTDIR . "/main.inc.php");
//*************************************************************
$modversion['name'] = "net2ftp";
$modversion['version'] = 0.90;
$modversion['description'] = "net2ftp - a web based FTP client";
$modversion['author'] = "David Gartner (http://www.net2ftp.com)";
$modversion['help'] = "help.html";
$modversion['license'] = "The main code of net2ftp is released under the GNU GENERAL PUBLIC LICENSE. Submodules are released under their respective licenses.";
$modversion['official'] = 1;
$modversion['image'] = "logo.gif";
$modversion['dirname'] = "net2ftp";

// Admin things
$modversion['hasAdmin'] = 0;

// Main contents
$modversion['hasMain'] = 1;

//Blocks
$modversion['blocks'][1]['file'] = "index.php";
$modversion['blocks'][1]['name'] = "net2ftp";
$modversion['blocks'][1]['description'] = "net2ftp";
$modversion['blocks'][1]['template'] = "net2ftp_blocks_login.html";
   
include("header.php");
 
   OpenTable();

net2ftp("sendHttpHeaders");
$net2ftp_globals["action_url"] = $net2ftp_globals["PHP_SELF"] . "?name=$module_name&amp;Itemid=$Itemid";
net2ftp("printJavascript");
net2ftp("printCss");
net2ftp("printBody");


if ($net2ftp_result["success"] == false) {
   require_once($net2ftp_globals["application_rootdir"] . "/skins/mambo/error.template.php");
}

CloseTable();
    include("footer.php");

?>


algebre

#4
re
link to download software (open source GNU/GPL)
http://www.net2ftp.com/download/net2ftp_v0.93.zip (v0.93 is beter than the last version 0.95)
you can put it in root of yor site or into module DIR
but I think  :gruebel: that best to put it into the admin panel  (admin.php?op=mx_net2ftp), for security reasons,
but it's complicated for me (admin, link, case, modules, icon)


algebre

hi
some screenshots:

1: View a code with syntax highlighting



2: Edit text



3: Edit HTML in a WYSIWYG form




4 upload files:



5 : Zip files and save or email them










algebre

@Musicman75
Hi

Zitat von: Musicman75 am 19 April 2007, 21:18:54
great, I think that's really useful for some pragma users.

I think this module is not interesting the other users?  No answer except your's and Baldyman

Musicman75

I think the only problem is the use of the phpftp addon. on most servers that's not available, so the users can't use the module.
Unaufgeforderte Support PMs & Emails werden ignoriert

Immer erst die Boardsuche verwenden und gegebenenfalls einen neuen Threat eröffnen, wenn das Problem noch nicht behandelt wurde!

spynet

this script is much good

I install this script  at my server appach it's work  :thumbup:  at all the server

but in serveur free.fr doesn't work

I need your help please




algebre

Zitat von: Musicman75 am 24 April 2007, 14:53:18
I think the only problem is the use of the phpftp addon. on most servers that's not available, so the users can't use the module.