pragmaMx Support Forum

pragmaMx => Individuelle Anpassungen => Thema gestartet von: algebre in 19 April 2007, 20:44:47

Titel: modul FTP
Beitrag von: algebre in 19 April 2007, 20:44:47
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).
Titel: Re: modul FTP
Beitrag von: Baldyman in 19 April 2007, 20:46:53
 :thumbup: nice idea !
Titel: Re: modul FTP
Beitrag von: Musicman75 in 19 April 2007, 21:18:54
great, I think that's really useful for some pragma users.
Titel: Re: modul FTP
Beitrag von: algebre in 19 April 2007, 23:26:01
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");

?>

Titel: Re: modul FTP
Beitrag von: algebre in 19 April 2007, 23:36:26
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)

Titel: Re: modul FTP
Beitrag von: algebre in 20 April 2007, 18:09:40
hi
some screenshots:

1: View a code with syntax highlighting

(https://forum.pragmamx.org/proxy.php?request=http%3A%2F%2Fwww.net2ftp.com%2Fhomepage%2Fscreenshots%2Fview.jpg&hash=d887a7fa33939e5a9c3bdd91aae7a7b7de990858)

2: Edit text

(https://forum.pragmamx.org/proxy.php?request=http%3A%2F%2Fwww.net2ftp.com%2Fhomepage%2Fscreenshots%2Fedit.jpg&hash=f19ac29beffeb7fed4cc97c1c79973490f89c5d1)

3: Edit HTML in a WYSIWYG form


(https://forum.pragmamx.org/proxy.php?request=http%3A%2F%2Fwww.net2ftp.com%2Fhomepage%2Fscreenshots%2Fhtmlarea.jpg&hash=dfb74c7d33c393534be8c5a9f7612e0f6eae987e)

4 upload files:

(https://forum.pragmamx.org/proxy.php?request=http%3A%2F%2Fwww.net2ftp.com%2Fhomepage%2Fscreenshots%2Fupload.jpg&hash=08ee830ccf68e7cee13c9c4ca76c970b466bb13b)

5 : Zip files and save or email them

(https://forum.pragmamx.org/proxy.php?request=http%3A%2F%2Fwww.net2ftp.com%2Fhomepage%2Fscreenshots%2Fzip.jpg&hash=9990bca19fd7f935d2d2bed6c7c611cf1288aff4)







Titel: Re: modul FTP
Beitrag von: algebre in 21 April 2007, 18:55:17
@Musicman75
Hi

Zitat von: Musicman75 in 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
Titel: Re: modul FTP
Beitrag von: Musicman75 in 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.
Titel: Re: modul FTP
Beitrag von: spynet in 23 August 2007, 11:10:53
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



Titel: Re : Re: modul FTP
Beitrag von: algebre in 23 August 2007, 11:55:24
Zitat von: Musicman75 in 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.