DEDIBOX-NEWS.COM

Le Forum Non Officiel de la DEDIBOX

Vous n'êtes pas identifié.

#1 2006-08-02 19:38:54

Adrien
Invité

Quelques questions au sujet de VHCS...

Bonjour tà ous, j'aurais quelques questions à propos de VHCS :

1) Quand je créer un utilisateur email et que j'envoi un email il m'envoi l'email correctement mais à lafin du mail il met :
________________________________________________
VHCS Webmail

Comment peut on faire pour régler ce problème ?


2) Quand je vais sur le truc de FTP online le deisgn est tt moche et yas pas d'image ^^ quand je regarde la source de l'image, la source est http://domaine.net:1152/vhcs2/themes/mo … round.jpg, enffet le 1152 est en trop (port ou est installé VHCS) car l'adresse http://domaine.net/vhcs2/themes/modern_ … ground.jpg marche impec. . .

Comment faire pour regler ce problème ?


Merci d'avance de votre réponse

Cordialement

Adrien

 

#2 2006-08-02 20:51:45

Adrien
Invité

Re: Quelques questions au sujet de VHCS...

Dsl du double post.. mais..

Un autre problème :S
Quand javais reformater ma Dedibox, j'avais sauvegarder les fichiers /gui/index.php, /gui/lostpw.php, /gui/chk_login.php

Je viens de remettre ces fichiers en place mais j n'avais pas sauvegarder et maintenant j'ai une erreur :


Warning: Unknown(/var/www/vhcs2/gui/lostpw.php): failed to open stream: Permission denied in Unknown on line 0

Warning: (null)() [function.include]: Failed opening '/var/www/vhcs2/gui/lostpw.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0

Qqn aurait les fichiers originaux à me passer svp ?
Car enffet j'avais traduit ces trois fichiers en FR

Voilà merci davance

Adrien

 

#3 2006-08-02 20:58:58

fredorama
Jeidi
Date d'inscription: 2006-05-14
Messages: 106

Re: Quelques questions au sujet de VHCS...

Après la réinstall de la box, penses à réinstaller VHCS2... après tu pourras le bidouiller.

Hors ligne

 

#4 2006-08-02 22:29:49

Adrien
Invité

Re: Quelques questions au sujet de VHCS...

Ba il est reinstallé hai remis les fichier davant et ca me met lerreur au dessu^^

 

#5 2006-08-03 13:04:59

Saiyan
Jeidi
Lieu: Metz
Date d'inscription: 2006-05-18
Messages: 174
Site web

Re: Quelques questions au sujet de VHCS...

J'ai exactement le même problème au Web FTP : pas d'images...

Hors ligne

 

#6 2006-08-04 00:47:16

Adrien
Invité

Re: Quelques questions au sujet de VHCS...

Personne ne sait ?

Car au pire je reformate ma dedi mais ca menbete ...

Merci davance de vs rep

++

Adrien

 

#7 2006-08-04 10:57:50

Saiyan
Jeidi
Lieu: Metz
Date d'inscription: 2006-05-18
Messages: 174
Site web

Re: Quelques questions au sujet de VHCS...

Adrien a écrit:

Personne ne sait ?

Car au pire je reformate ma dedi mais ca menbete ...

Merci davance de vs rep

++

Adrien

Je l'ai déjà fait 2 ou 3 fois, et ça n'a rien changé pour ma part !

Hors ligne

 

#8 2006-08-04 19:15:56

max12
Jeidi
Date d'inscription: 2006-06-30
Messages: 185
Site web

Re: Quelques questions au sujet de VHCS...

index.php

Code:

<?php
//   -------------------------------------------------------------------------------
//  |             VHCS(tm) - Virtual Hosting Control System                         |
//  |              Copyright (c) 2001-2005 be moleSoftware                                      |
//  |                   http://vhcs.net | http://www.molesoftware.com                                   |
//  |                                                                               |
//  | This program is free software; you can redistribute it and/or                 |
//  | modify it under the terms of the MPL General Public License                   |
//  | as published by the Free Software Foundation; either version 1.1              |
//  | of the License, or (at your option) any later version.                        |
//  |                                                                               |
//  | You should have received a copy of the MPL Mozilla Public License             |
//  | along with this program; if not, write to the Open Source Initiative (OSI)    |
//  | http://opensource.org | osi@opensource.org                                                                    |
//  |                                                                               |
//   -------------------------------------------------------------------------------


include 'include/vhcs-lib.php';

unset_user_login_data();


if (isset($_SESSION['user_theme_color'])) {

    global $cfg;
$theme_color = $cfg['USER_INITIAL_THEME'];

} else {

    $theme_color = $cfg['USER_INITIAL_THEME_COLOR'];

}

$tpl = new pTemplate();

$tpl -> define('page', $cfg['LOGIN_TEMPLATE_PATH'].'/index.tpl');

$tpl -> assign(

                array(
                        'TR_MAIN_INDEX_PAGE_TITLE' => tr('VHCS - Virtual Hosting Control System'),
                        'THEME_COLOR_PATH' => "themes/$theme_color",
                        'THEME_CHARSET' => tr('encoding'),
                        'TC_BLUE_SELECTED' => $theme_color === 'blue' ? 'selected' : '',
                        'TC_GREEN_SELECTED' => $theme_color === 'green' ? 'selected' : '',
                        'TC_YELLOW_SELECTED' => $theme_color === 'yellow' ? 'selected' : '',
                        'TC_RED_SELECTED' => $theme_color === 'red' ? 'selected' : '',
                        'TR_LOGIN' => tr('Login'),
                        'TR_USERNAME' => tr('Username'),
                        'TR_PASSWORD' => tr('Password'),
                        'TR_THEME_COLOR' => tr('Theme color'),
                        'TR_BLUE' => tr('Blue'),
                        'TR_GREEN' => tr('Green'),
                        'TR_YELLOW' => tr('Yellow'),
                        'TR_RED' => tr('Red'),
                                                'TR_LOSTPW' => tr('Lost password'),
                                                'TR_TIME' => date("g:i a"),
                                                'TR_DATE' => date("l dS of F Y"),
                        'TR_VHCS_LICENSE' => $cfg['VHCS_LICENSE']
                     )
              );

$tpl -> parse('PAGE', 'page');

$tpl -> prnt();

if (isset($cfg['DUMP_GUI_DEBUG'])) dump_gui_debug();

?>

lostpw.php

Code:

<?php
//   -------------------------------------------------------------------------------
//  |             VHCS(tm) - Virtual Hosting Control System                         |
//  |              Copyright (c) 2001-2005 be moleSoftware                                      |
//  |                   http://vhcs.net | http://www.molesoftware.com                                   |
//  |                                                                               |
//  | This program is free software; you can redistribute it and/or                 |
//  | modify it under the terms of the MPL General Public License                   |
//  | as published by the Free Software Foundation; either version 1.1              |
//  | of the License, or (at your option) any later version.                        |
//  |                                                                               |
//  | You should have received a copy of the MPL Mozilla Public License             |
//  | along with this program; if not, write to the Open Source Initiative (OSI)    |
//  | http://opensource.org | osi@opensource.org                                                                    |
//  |                                                                               |
//   -------------------------------------------------------------------------------
// Written by: Mark Henning (tirex) for Lostpw Mod

include 'include/vhcs-lib.php';
include 'include/lostpw.php';

unset_user_login_data();


if (isset($_SESSION['user_theme_color'])) {

    global $cfg;
$theme_color = $cfg['USER_INITIAL_THEME'];

} else {

    $theme_color = $cfg['USER_INITIAL_THEME_COLOR'];

}

if (isset($_GET['i'])) {
        if ($_GET['i'] != "") {
                $tpl = new pTemplate();
                $tpl -> define('page', $cfg['LOGIN_TEMPLATE_PATH'].'/lostpw_message.tpl');
                $tpl -> assign(array(
                        'TR_MAIN_INDEX_PAGE_TITLE' => tr('VHCS - Virtual Hosting Control System'),
                        'THEME_COLOR_PATH' => "themes/$theme_color",
                        'THEME_CHARSET' => tr('encoding'),
                        'TC_BLUE_SELECTED' => $theme_color === 'blue' ? 'selected' : '',
                        'TC_GREEN_SELECTED' => $theme_color === 'green' ? 'selected' : '',
                        'TC_YELLOW_SELECTED' => $theme_color === 'yellow' ? 'selected' : '',
                        'TC_RED_SELECTED' => $theme_color === 'red' ? 'selected' : '',
                        'TR_THEME_COLOR' => tr('Theme color'),
                        'TR_BLUE' => tr('Blue'),
                        'TR_GREEN' => tr('Green'),
                        'TR_YELLOW' => tr('Yellow'),
                        'TR_RED' => tr('Red'),
                                                                                                'TR_TIME' => date("g:i a"),
                                                                                                'TR_DATE' => date("l dS of F$
                        'TR_VHCS_LICENSE' => $cfg['VHCS_LICENSE']));

                if (sendpw($_GET['i'])) {
                        $tpl -> assign(array(
                                                                                                'TR_MESSAGE' => tr('Password$
                        'TR_LINK' => "<A CLASS=\"submenu\" href=\"index.php\">".tr('Login')."</A>" ));

                } else {
                        $tpl -> assign(array(
                                                                                                'TR_MESSAGE' => tr('ERROR: P$
                        'TR_LINK' => "<A CLASS=\"submenu\" href=\"index.php\">".tr('Login')."</A>" ));
                }
                $tpl -> parse('PAGE', 'page');

                $tpl -> prnt();

                if (isset($cfg['DUMP_GUI_DEBUG'])) dump_gui_debug();
                exit(0);
        }
}

if (isset($_POST['uname'])) {
        if (($_POST['uname'] != "") AND isset($_SESSION['image']) AND isset($_POST['capcode'])) {

                $tpl = new pTemplate();
                $tpl -> define('page', $cfg['LOGIN_TEMPLATE_PATH'].'/lostpw_message.tpl');
                $tpl -> assign(array(
                        'TR_MAIN_INDEX_PAGE_TITLE' => tr('VHCS - Virtual Hosting Control System'),
                        'THEME_COLOR_PATH' => "themes/$theme_color",
                        'THEME_CHARSET' => tr('encoding'),
                        'TC_BLUE_SELECTED' => $theme_color === 'blue' ? 'selected' : '',
                        'TC_GREEN_SELECTED' => $theme_color === 'green' ? 'selected' : '',
                        'TC_YELLOW_SELECTED' => $theme_color === 'yellow' ? 'selected' : '',
                        'TC_RED_SELECTED' => $theme_color === 'red' ? 'selected' : '',
                        'TR_THEME_COLOR' => tr('Theme color'),
                        'TR_BLUE' => tr('Blue'),
                        'TR_GREEN' => tr('Green'),
                        'TR_YELLOW' => tr('Yellow'),
                        'TR_RED' => tr('Red'),
                                                                                                'TR_TIME' => date("g:i a"),
                                                                                                'TR_DATE' => date("l dS of F$
                        'TR_VHCS_LICENSE' => $cfg['VHCS_LICENSE']));

                if ($_SESSION['image'] == $_POST['capcode']) {
                        if (lostpw($_POST['uname'])) {
                                $tpl -> assign(array(
                                                'TR_MESSAGE' => tr('The password was requested'),
                        'TR_LINK' => "<A CLASS=\"submenu\" href=\"index.php\">".tr('Login')."</A>" ));
                        } else {
                                $tpl -> assign(array(
                                                'TR_MESSAGE' => tr('ERROR: Unknown user'),
                        'TR_LINK' => "<A CLASS=\"submenu\" href=\"index.php\">".tr('Retry')."</A>" ));
                        }
                } else {
                        $tpl -> assign(array(
                                        'TR_MESSAGE' => tr('ERROR: Security code was not correct!'),
                        'TR_LINK' => "<A CLASS=\"submenu\" href=\"index.php\">".tr('Retry')."</A>" ));
                }
                $tpl -> parse('PAGE', 'page');

                $tpl -> prnt();

                if (isset($cfg['DUMP_GUI_DEBUG'])) dump_gui_debug();
                exit(0);
        }
}



$tpl = new pTemplate();

$tpl -> define('page', $cfg['LOGIN_TEMPLATE_PATH'].'/lostpw.tpl');

$tpl -> assign(
                array(
                        'TR_MAIN_INDEX_PAGE_TITLE' => tr('VHCS - Virtual Hosting Control System'),
                        'THEME_COLOR_PATH' => "themes/$theme_color",
                        'THEME_CHARSET' => tr('encoding'),
                        'TC_BLUE_SELECTED' => $theme_color === 'blue' ? 'selected' : '',
                        'TC_GREEN_SELECTED' => $theme_color === 'green' ? 'selected' : '',
                        'TC_YELLOW_SELECTED' => $theme_color === 'yellow' ? 'selected' : '',
                        'TC_RED_SELECTED' => $theme_color === 'red' ? 'selected' : '',
                        'TR_CAPCODE' => tr('Security code'),
                        'TR_IMGCAPCODE_DESCRIPTION' => tr('Imagecode description'),
                                                                                                'TR_IMGCAPCODE' => "<IMG SRC$
                                                                                                'TR_USERNAME' => tr('Usernam$
                        'TR_THEME_COLOR' => tr('Theme color'),
                        'TR_BLUE' => tr('Blue'),
                        'TR_GREEN' => tr('Green'),
                        'TR_YELLOW' => tr('Yellow'),
                        'TR_RED' => tr('Red'),
                                                                                                'TR_SEND' => tr('Request pas$
                                                                                                'TR_BACK' => tr('Back'),
                                                                                                'TR_TIME' => date("g:i a"),
                                                                                                'TR_DATE' => date("l dS of F$
                        'TR_VHCS_LICENSE' => $cfg['VHCS_LICENSE']
                     )
              );

$tpl -> parse('PAGE', 'page');

$tpl -> prnt();

if (isset($cfg['DUMP_GUI_DEBUG'])) dump_gui_debug();

?>

chk_login.php

Code:

<?php
//   -------------------------------------------------------------------------------
//  |             VHCS(tm) - Virtual Hosting Control System                         |
//  |              Copyright (c) 2001-2005 be moleSoftware                                      |
//  |                   http://vhcs.net | http://www.molesoftware.com                                   |
//  |                                                                               |
//  | This program is free software; you can redistribute it and/or                 |
//  | modify it under the terms of the MPL General Public License                   |
//  | as published by the Free Software Foundation; either version 1.1              |
//  | of the License, or (at your option) any later version.                        |
//  |                                                                               |
//  | You should have received a copy of the MPL Mozilla Public License             |
//  | along with this program; if not, write to the Open Source Initiative (OSI)    |
//  | http://opensource.org | osi@opensource.org                                                                    |
//  |                                                                               |
//   -------------------------------------------------------------------------------

include 'include/vhcs-lib.php';

if (isset($_POST['uname']) && isset($_POST['upass'])) {

        $uname = get_punny($_POST['uname']);

    if (register_user($uname, $_POST['upass'])) {

        if ($_SESSION['user_type'] == 'admin') {

            header("Location: admin/index.php");

        } else if ($_SESSION['user_type'] == 'reseller') {

            header("Location: reseller/index.php");

        } else if ($_SESSION['user_type'] == 'user') {

            header("Location: client/index.php");

        }
} else {

      header('Location: index.php');

}

exit(0);

?>

Hors ligne

 

#9 2006-08-07 18:56:28

Ancient
Membre
Date d'inscription: 2006-07-29
Messages: 10

Re: Quelques questions au sujet de VHCS...

Un p'tit explication Max12 s'il te plait ? (du genre quesque cela corrige ^^')

Hors ligne

 

Pied de page des forums

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson