Page 2 of 2 FirstFirst 12
Results 16 to 30 of 30
  1. #16
    i post it sorry:

    <?
    /************************************************************************
    UebiMiau is a GPL'ed software developed by
    - Aldoir Ventura - aldoir@users.sourceforge.net
    - http://uebimiau.sourceforge.net
    Fell free to contact, send donations or anything to me :-)
    São Paulo - Brasil
    *************************************************************************/
    @set_time_limit(0);
    session_start();
    session_name('sid');
    $sid = session_id();
    require("./inc/config.php");
    require("./inc/class.uebimiau.php");
    require("./inc/lib.php");
    $temporary_directory = realpath($temporary_directory).'/';
    define("SMARTY_DIR","./smarty/");
    require_once(SMARTY_DIR."Smarty.class.php");
    $smarty = new Smarty;
    $smarty->compile_dir = $temporary_directory;
    $smarty->security=true;
    //$smarty->secure_dir=array("./");

    $smarty->assign("umMenuTemplate",dirname($PATH_TRANSLATED).$menu_template);
    //$smarty->debugging = false;
    $smarty->assign("umLanguageFile",$selected_language.".txt");
    $SS = New Session();
    $SS->temp_folder = $temporary_directory;
    $SS->sid = $sid;
    $SS->timeout = $idle_timeout;
    $sess = $SS->Load();

    if(!array_key_exists("start", $sess )) $sess["start"] = time();
    $start = $sess["start"];
    $UM = new UebiMiau();
    if(isset($f_pass) && strlen($f_pass) > 0) {
    switch(strtoupper($mail_server_type)) {
    case "DETECT":
    $f_server = strtolower(getenv("HTTP_HOST"));
    $f_server = str_replace($mail_detect_remove,"",$f_server);
    $f_server = $mail_detect_prefix.$f_server;
    if(ereg("(.*)@(.*)",$f_email,$regs)) {
    $f_user = $regs[1] & "@" & str_replace("webmail.","",strtolower($_SERVER['HTTP_HOST']));
    $domain = $regs[2];
    if($mail_detect_login_type != "") $f_user = eregi_replace("%user%",$f_user,eregi_replace("%domain%",$domain,$mail_detect_login_type));
    }
    $f_protocol = $mail_detect_protocol;
    $f_port = $mail_detect_port;
    $f_prefix = $mail_detect_folder_prefix;
    break;
    case "ONE-FOR-EACH":
    $domainname = str_replace("webmail.","",strtolower($_SERVER['HTTP_HOST']));
    // $domain = $mail_servers[$six]["domain"];
    $domain = $domainname;
    // $f_email = $f_user."@".$domain;
    $f_email = $f_user."@".$domainname;
    // $f_server = $mail_servers[$six]["server"];
    $f_server = "mail.".$domainname;
    $login_type = $mail_servers[$six]["login_type"];
    $f_protocol = $mail_servers[$six]["protocol"];
    $f_port = $mail_servers[$six]["port"];
    $f_prefix = $mail_servers[$six]["folder_prefix"];
    if($login_type != "") $f_user = eregi_replace("%user%",$f_user,eregi_replace("%domain%",$domain,$login_type));
    break;
    case "ONE-FOR-ALL":
    if(ereg("(.*)@(.*)",$f_email,$regs)) {
    $f_user = $regs[1];
    $domain = $regs[2];
    // $domain = str_replace("webmail.","",strtolower($_SERVER['HTTP_HOST']));
    if($one_for_all_login_type != "") $f_user = eregi_replace("%user%",$f_user,eregi_replace("%domain%",$domain,$one_for_all_login_type));
    }
    $f_server = $default_mail_server;
    $f_protocol = $default_protocol;
    if($f_protocol == "imap")
    $f_port = "143";
    if($f_protocol == "pop3")
    $f_port = "110";
    $f_prefix = $default_folder_prefix;
    break;
    }
    $UM->mail_email = $sess["email"] = stripslashes($f_email);
    $UM->mail_user = $sess["user"] = stripslashes($f_user);
    $UM->mail_pass = $sess["pass"] = stripslashes($f_pass);
    $UM->mail_server = $sess["server"] = stripslashes($f_server);
    $UM->mail_port = $sess["port"] = intval($f_port);
    $UM->mail_protocol = $sess["protocol"] = strtolower($f_protocol);
    $UM->mail_prefix = $sess["folder_prefix"] = $f_prefix;
    $refr = 1;
    } elseif (
    ($sess["auth"] && intval((time()-$start)/60) < $idle_timeout)) {
    $UM->mail_user = $f_user = $sess["user"];
    $UM->mail_pass = $f_pass = $sess["pass"];
    $UM->mail_server = $f_server = $sess["server"];
    $UM->mail_email = $f_email = $sess["email"];
    $UM->mail_port = $f_port = $sess["port"];
    $UM->mail_protocol = $f_protocol = $sess["protocol"];
    $UM->mail_prefix = $f_prefix = $sess["folder_prefix"];
    } else {
    redirect("./index.php?tid=$tid&lid=$lid");
    exit;
    }
    $sess["start"] = time();
    $SS->Save($sess);
    $userfolder = $temporary_directory.ereg_replace("[^a-z0-9\._-]","_",strtolower($f_user))."_".strtolower($f_server)."/";
    $UM->debug = $enable_debug;
    $UM->use_html = $allow_html;
    $UM->user_folder = $userfolder;
    $UM->temp_folder = $temporary_directory;
    $UM->timeout = $idle_timeout;

    $prefs = load_prefs();
    $UM->timezone = $prefs["timezone"];
    $UM->charset = $default_char_set;

    /*
    Don't remove the fallowing lines, or you will be problems with browser's cache
    */
    Header ("You expire: Wed, 11 Nov 1998 11:11: 11 GMT");
    Header ("Break-Control: not-break");
    Header ("Break-Control: must-revalidate");
    $nocache = "
    <META HTTP-EQUIV=\"Cache-Control\" CONTENT=\"no-cache\">
    <META HTTP-EQUIV=\"Expires\" CONTENT=\"-1\">";
    // Sort rules
    if(!isset($sortby) || !ereg("(subject|fromname|date|size)",$sortby)) {
    if(array_key_exists("sort-by",$prefs) && ereg("(subject|fromname|date|size)",$prefs["sort-by"]))
    $sortby = $prefs["sort-by"];
    else
    $sortby = $default_sortby;
    } else {
    $need_save = true;
    $prefs["sort-by"] = $sortby;
    }
    if(!isset($sortorder) || !ereg("ASC|DESC",$sortorder)) {
    if(array_key_exists("sort-order",$prefs) && ereg("ASC|DESC",$prefs["sort-order"]))
    $sortorder = $prefs["sort-order"];
    else
    $sortorder = $default_sortorder;
    } else {
    $need_save = true;
    $prefs["sort-order"] = $sortorder;
    }
    if(isset($need_save)) save_prefs($prefs);
    if(is_array($sess["sysmap"]))
    while(list($key, $value) = each($sess["sysmap"]))
    if(strtolower($folder) == $key)
    $folder = $value;
    if(!isset($folder) || $folder == "" || strpos($folder,"..") !== false ) {
    $folder = $sess["sysmap"]["inbox"];
    } elseif (!file_exists($userfolder.$folder)) {
    redirect("./logout.php?sid=$sid&tid=$tid&lid=$lid");
    exit;
    }
    ?>

  2. #17
    Join Date
    Nov 2006
    Location
    Chicago, IL
    Posts
    58
    according to your file you posted I am not sure how you are still getting this error.

    Is this server public, if it is could you send me the ip through a pm or the url of this server.

  3. #18
    You can do something in remotely or need some thing? THNX

  4. #19
    Join Date
    Nov 2006
    Location
    Chicago, IL
    Posts
    58
    sent you a pm

  5. #20
    what port open in order that you could enter for ssh?

  6. #21
    Join Date
    Nov 2006
    Location
    Chicago, IL
    Posts
    58
    ssh is port 22 but maybe we should do this through pm so no more personal info gets out there. Did you check the last pm I sent you?

  7. #22
    arche if i deleted this lines:
    Header ("You expire: Wed, 11 Nov 1998 11:11: 11 GMT");
    Header ("Break-Control: not-break");
    Header ("Break-Control: must-revalidate");

    The application seems that it works, at least it does not give this error. In order that they use these lines?

  8. #23
    Having a problem with the filemanager in debian etch. I saw the edits you suggested to fix them yet the issues persist.



    Warning: ftp_rawlist() [function.ftp-rawlist]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/vhcs2/gui/tools/filemanager/:/tmp/:/usr/share/php/) in /var/www/vhcs2/gui/tools/filemanager/ftp.php on line 108

    Warning: ftp_rawlist() [function.ftp-rawlist]: Unable to create temporary file. Check permissions in temporary files directory. in /var/www/vhcs2/gui/tools/filemanager/ftp.php on line 108

    Thanks in advance. Let me know what information could help you.

  9. #24
    Replace in the file /etc/vhcs2/apache/parts/vhcs2_base.tpl this :
    php_admin_value open_basedir "/var/www/vhcs2/gui/tools/filemanager/:/tmp/:/usr/share/php/"

    by

    php_admin_value open_basedir "/var/www/vhcs2/gui/tools/filemanager/:/tmp:/usr/share/php/"

    Then update vhcs2 configuration files :
    rm /etc/vhcs2/apache/working/vhcs2.conf
    /etc/init.d/vhcs2_daemon stop
    mysql -u root -pYOUR_PASSWORD
    USE vhcs2;
    UPDATE domain SET domain_status='change';
    UPDATE subdomain SET subdomain_status='change';
    UPDATE domain_aliasses SET alias_status='change';
    quit;
    /var/www/vhcs2/engine/vhcs2-rqst-mngr
    /etc/init.d/vhcs2_daemon start
    /etc/init.d/apache2 reload
    /etc/init.d/bind9 reload

    Check the modification in the file /etc/apache2/site-available/vhcs2.conf

    Quote Originally Posted by rhaynesak View Post
    Having a problem with the filemanager in debian etch. I saw the edits you suggested to fix them yet the issues persist.



    Warning: ftp_rawlist() [function.ftp-rawlist]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/vhcs2/gui/tools/filemanager/:/tmp/:/usr/share/php/) in /var/www/vhcs2/gui/tools/filemanager/ftp.php on line 108

    Warning: ftp_rawlist() [function.ftp-rawlist]: Unable to create temporary file. Check permissions in temporary files directory. in /var/www/vhcs2/gui/tools/filemanager/ftp.php on line 108

    Thanks in advance. Let me know what information could help you.

  10. #25
    Join Date
    Dec 2007
    Location
    Jakarta
    Posts
    113
    Great tuttorial, but i have this problem.

    root@vps102:~/vhcs2-2.4.7.1# /var/www/vhcs2/engine/setup/vhcs2-setup

    CRITICAL ERROR: Module [MIME::Entity] WAS NOT FOUND !

    CRITICAL ERROR: Module [MIME:arser] WAS NOT FOUND !

    CRITICAL ERROR: Module [Crypt::CBC] WAS NOT FOUND !

    CRITICAL ERROR: Module [Crypt:asswdMD5] WAS NOT FOUND !

    CRITICAL ERROR: Module [Term::ReadPassword] WAS NOT FOUND !

    Modules [MIME::Entity, MIME:arser, Crypt::CBC, Crypt:asswdMD5, Term::ReadPassword] WAS NOT FOUND in your system...
    How to fix that "WAS NOT FOUND !"...

    Thank You

  11. #26
    i can't login to filemanager.

    Incorrect username or password.

    when i use filezilla it response:

    Status: Verbinden met xxx.xxx.x.xxx:21...
    Status: Verbinding wordt gemaakt, wachten op welkomstbericht...
    Antwoord: 220 ProFTPD 1.3.0 Server (Debian) [::ffff:xxx.xxx.x.xxx]
    Opdracht: USER xxx@xxx.xx
    Antwoord: 331 Password required for xxx@xxx.xx.
    Opdracht: PASS ***
    Antwoord: 530 Login incorrect.
    Fout: Kan niet verbinden met server

    can any one help me.

    thnx

  12. #27

    Filemanager Issue

    I'm having the same problem as nanometer. No matter what login info i use, it always says it's incorrect.

  13. #28

    Post Filemanager Fix

    Okay after much trial and error I have a fix for the ftp issue.

    Step 1: Backups

    nano /etc/proftpd.conf
    the do a ^X (Ctrl + X) and save it as /etc/proftpd2.conf

    Step 2: Delete BS Config

    nano /etc/proftpd.conf
    Remove everything above the "#VHCS2 Management;" Line.
    Save the Doc and Exit (Ctrl + O, Ctrl + M, Ctrl + X).

    Step 3: Include the VHCS FTP File

    nano /etc/proftpd/proftpd.conf
    Find the line
    #<IfModule mod_sql.c>
    # SQLBackend mysql
    #</IfModule>

    And make it look like this
    <IfModule mod_sql.c>
    SQLBackend mysql
    Include /etc/proftpd.conf
    </IfModule>
    Save and exit the document.

    Step 4: Disable PostgresSQL Module

    nano /etc/proftpd/modules.conf
    Comment out the following line
    LoadModule mod_sql_postgres.c
    Save and Exit

    Step 5: Restart ProFTP
    /etc/init.d/proftpd restart
    You may also want to reboot your machine, but thats
    completely optional. However that is all that needs to be
    done.

  14. #29
    Join Date
    Nov 2006
    Location
    Chicago, IL
    Posts
    58
    I have not kept up with this project as I am working on getting vhcs working on Fedora 8. Alot of the code had to be rewritten which I have done. It is not meant to be used in commercial environment. It will be a couple of more weeks before I release it, I have tried contacting the vhcs team about posting the updated version there but have had no luck. Just a little FYI.

    arche
    <<<"Health is merely the slowest possible rate at which one can die.">>>

  15. #30
    VHCS works under ubuntu. I followed a guide just tonight.

    Reinstalled the OS after i found another artical refering to alot of security issues with it tho

Page 2 of 2 FirstFirst 12

Related Posts from theWHIR.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •