Exemple #1
0
function reply_edit_update($plcrno, $replyEdited)
{
    echo "reply_edit_update( {$plcrno} , {$replyEdited} ) ";
    if (!empty($replyEdited)) {
        $replyUp = update1('fs_plcm_reply', 'plcr_message', tcleaner($replyEdited), array('plcr_no', $plcrno));
        if ($replyUp) {
            echo " replied comment successfully updated <br>";
        } else {
            echo " replied comment failledd to update <br>";
        }
    }
}
Exemple #2
0
function comment_edit_update($plcno, $commentEdited)
{
    echo "comment_edit_update( {$plcno} , {$commentEdited} ) ";
    if (!empty($commentEdited)) {
        $comUp = update1('posted_looks_comments', 'msg', tcleaner($commentEdited), array('plcno', $plcno));
        if ($comUp) {
            echo "main comment successfully updated <br>";
        } else {
            echo "main comment failledd to update <br>";
        }
    }
}
 public function account_save_profile($profile_row_name, $profile_row_name_val, $mno)
 {
     $mc = new myclass();
     $fullName = '';
     $isName = FALSE;
     echo "   profile_row_name_val =  {$profile_row_name_val}";
     $prn = explode(',', $profile_row_name);
     $prnv = explode('_new_', $profile_row_name_val);
     echo " rowname <br> ";
     print_r($prn);
     echo " values <br>";
     print_r($prnv);
     for ($i = 0; $i < count($prn); $i++) {
         #check if exist if its exist then return faild.
         $rn = $prn[$i];
         $rv = $prnv[$i];
         // $rv = str_replace('Your Firstname','',$rv);
         $rv = str_replace('Your Nickname / Alias', '', $rv);
         $rv = str_replace('Your Lastname', '', $rv);
         // if update the full name
         if ($rn == 'lastname' || $rn == 'firstname' || $rn == 'nickname' || $rn == 'middlename') {
             $rv = ucwords($rv);
             $isName = TRUE;
             $fullName .= $rv . ' ';
         }
         //if update the username
         if ($rn == 'username' || $rn == 'email') {
             update1('fs_member_accounts', $rn, $rv, array('mno', $mno));
         } else {
             update1('fs_members', $rn, $rv, array('mno', $mno));
         }
     }
     // If name is being updated then notify all the followers
     if ($isName == TRUE) {
         $_SESSION['noti_table_name'] = TRUE;
         $_SESSION['noti_type'] = 'change-name';
         $_SESSION['fullName'] = $fullName;
         $mc->send_notification_to_follower($mno);
         print 'send notification to follwers change name';
     } else {
         print 'failed to send notification maybe this is not changing name';
     }
     // add or updated keyword
     $mc->fs_search(array('type' => 'add-or-updated-keyword', 'table_name' => 'fs_members', 'table_id' => $mno));
 }
            checkConfigFile();
            header_html(sprintf(__('Step %d'), 2));
            step3($_POST["db_host"], $_POST["db_user"], $_POST["db_pass"], $_POST["update"]);
            break;
        case "Etape_3":
            // Create and fill database
            checkConfigFile();
            header_html(sprintf(__('Step %d'), 3));
            if (empty($_POST["databasename"])) {
                $_POST["databasename"] = "";
            }
            if (empty($_POST["newdatabasename"])) {
                $_POST["newdatabasename"] = "";
            }
            step4($_POST["databasename"], $_POST["newdatabasename"]);
            break;
        case "Etape_4":
            // finish installation
            header_html(sprintf(__('Step %d'), 4));
            step7();
            break;
        case "update_1":
            checkConfigFile();
            if (empty($_POST["databasename"])) {
                $_POST["databasename"] = "";
            }
            update1($_POST["databasename"]);
            break;
    }
}
footer_html();
 public function update_total_login($mno, $tlog = NULL, $bool = false)
 {
     // echo " update_total_login( $mno , $tlog=NULL , $bool=false ) ";
     if ($bool == false) {
         $mi = $this->get_specific_member_info($mno);
         $tlog = intval($mi[0]['tlog']);
         // echo " before added $tlog <br> ";
         $tlog = $tlog + 1;
         // echo " after added $tlog <br>";
     }
     // echo "tlog $tlog  <br> ";
     update1('fs_members', 'tlog', $tlog, array('mno', $mno));
 }
Exemple #6
0
<?php

session_start();
require "connect.php";
include "../function.php";
// $_GET['lname']= 'lastname1';
// $_GET['fname'] = 'firsname1';
// $_SESSION['mno']=134;
if (!empty($_GET['fname'])) {
    if (update1('fs_members', 'firstname', $_GET['fname'], array('mno', $_SESSION['mno']))) {
        echo "Your First Name Succesfully Updated ";
    }
}
if (!empty($_GET['lname'])) {
    // updateArray('fs_members',array('lastname'),$_GET['lname'],'mno',$_SESSION['mno']);
    if (update1('fs_members', 'lastname', $_GET['lname'], array('mno', $_SESSION['mno']))) {
        echo "Your Last Name Succesfully Updated ";
    }
}
Exemple #7
0
                        echo '[' . $ar_data[$i] . ']';
                        update1('postedlooks', 'occasion', $ar_data[$i], array('plno', $_SESSION['last_look_uploaded']));
                    } else {
                        if ($c1 == 5) {
                            #look season
                            echo '[' . $ar_data[$i] . ']';
                            update1('postedlooks', 'season', $ar_data[$i], array('plno', $_SESSION['last_look_uploaded']));
                        } else {
                            if ($c1 == 6) {
                                #look style
                                # this is the update for the style row from the label field.
                                /*
                                					 	 echo '['.$ar_data[$i].']';
                                					 	 update1('postedlooks','style',$ar_data[$i],array('plno',$_SESSION['last_look_uploaded']));
                                */
                                update1('postedlooks', 'style', $_SESSION['look_style'], array('plno', $_SESSION['last_look_uploaded']));
                            }
                        }
                    }
                }
            }
        }
    }
}
// print_r($Tlist);
// pltg	plno	plt_color	plt_brand	plt_garment	plt_material	plt_pattern	plt_price	plt_purchased_at	plt_x	plt_y	plt_date
for ($i = 0; $i < count($Tlist); $i++) {
    $Tpos = location($Tlist[$i][8]);
    // print_r($Tpos);
    echo "x " . $Tpos[1] . ' y = ' . $Tpos[3] . '<br>';
    insert('fs_pltag', array('plno', 'plt_color', 'plt_brand', 'plt_garment', 'plt_material', 'plt_pattern', 'plt_price', 'plt_purchased_at', 'plt_x', 'plt_y', 'plt_date'), array($plno, $Tlist[$i][1], $Tlist[$i][2], $Tlist[$i][3], $Tlist[$i][4], $Tlist[$i][5], $Tlist[$i][6], $Tlist[$i][7], $Tpos[1], $Tpos[3], date("Y-m-d")), 'pltgno');
 public function update_follower($tfollower, $mno)
 {
     update1('fs_members', 'tfollower', $tfollower, array('mno', $mno));
 }
require 'core/init.php';
is_logged_in();
if (isset($_GET['page_id'])) {
    if ($_GET['page_id'] == 1 || $_GET['page_id'] == 2) {
        $id = $_GET['page_id'];
    } else {
        header("location:/root5/admin/template/index.php");
    }
}
$id = isset($_GET['id']) ? $_GET['id'] : '';
$val = view_data1($id);
if (empty($_POST) === false) {
    $title = $_POST["offered"];
    $description = trim($_POST["description"]);
    $id = $_POST["id"];
    $update1 = update1($title, $description, $id);
    if ($update1) {
        header('location:hotel2_galery.php?page_id=2 && msg=Edited Sucessfully');
    }
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>Edit Page</title>
    <!-- Bootstrap Core CSS -->
Exemple #10
0
            break;
        case "Etape_2":
            // mysql settings ok, go test mysql settings and select database.
            header_html($LANG['install'][77] . " 2");
            step3($_POST["db_host"], $_POST["db_user"], $_POST["db_pass"], $_POST["update"]);
            break;
        case "Etape_3":
            // Create and fill database
            header_html($LANG['install'][77] . " 3");
            if (empty($_POST["databasename"])) {
                $_POST["databasename"] = "";
            }
            if (empty($_POST["newdatabasename"])) {
                $_POST["newdatabasename"] = "";
            }
            step4($_POST["db_host"], $_POST["db_user"], $_POST["db_pass"], $_POST["databasename"], $_POST["newdatabasename"]);
            break;
        case "Etape_4":
            // finish installation
            header_html($LANG['install'][77] . " 4");
            step7();
            break;
        case "update_1":
            if (empty($_POST["databasename"])) {
                $_POST["databasename"] = "";
            }
            update1($_POST["db_host"], $_POST["db_user"], $_POST["db_pass"], $_POST["databasename"]);
            break;
    }
}
footer_html();
Exemple #11
0
function change_pass()
{
    mail(get_mail($_SESSION['mno']), "Password Succesfully Change - from FashionSponge.com", "Your previous Password {$_GET['lastPass']} and Succesfully change to {$_GET['Npass']} ", "Dear " . firstname($_SESSION['mno']) . ",");
    update1('fs_member_accounts', 'pass', $_GET['Npass'], array('mno', $_SESSION['mno']));
}
Exemple #12
0
 public function update_table_to_active($tablename, $rowname, $rowval, $idname, $idval)
 {
     /* 
     		    	$mc->update_table_to_active( 
             "postedlooks" ,  #table name 
             "active"  ,  #active 
             1 ,  #active val
             "plno"  ,  #rowname id 
             $plno  #row name val
         );
     */
     update1($tablename, $rowname, $rowval, array($idname, $idval));
 }
Exemple #13
0
$mc = new myclass();
$mc->auto_detect_path();
$categoryid = $_GET['categoryid'];
$brandname = $_GET['brandname'];
$brand_id = intval($_GET['brand_id']);
$bcsno = $_GET['brand_id'];
$gender = $_GET['gender'];
$genderName = $retVal = $_GET['gender'] != 0 ? 'Male' : 'Female';
$catSelected = $_GET['catSelected'];
$action = $_GET['action'];
$bcname = '';
echo " \n\t\t<br>\n\t\tbrand category Selected: {$catSelected} <br>\n\t\taction: {$action}  <br> \n\t\tbrand number ( bno ): {$brand_id}  <br>\n\t\tgender: {$genderName} <br>\n\t";
$catSelected = explode(',', $catSelected);
// print_r($catSelected);
if ($action == 'save') {
    if (update1('fs_brands', 'bname', $brandname, array('bno', $brand_id))) {
        echo " and brand name  {$brandname} <br> <span class='green' > successfully updated </span> <br>";
    } else {
        echo " brand name  {$brandname} <span class='red' > failled to update </span> <br>";
    }
    if (delete('fs_brand_category_selected', array('bno', $brand_id))) {
        echo "<br> previous brand assign to brand category <span class='green' > successfully deleted </span> <br>";
    } else {
        echo "<br> previous brand assign to brand category <span class='red' > failled to delete </span> <br>";
    }
    for ($i = 0; $i < count($catSelected); $i += 2) {
        $bcnoSelcted = !empty($catSelected[$i + 1]) ? $catSelected[$i + 1] : 0;
        if ($bcnoSelcted != 0) {
            $bcno = !empty($catSelected[$i]) ? $catSelected[$i] : "";
            $exist = selectV1('*', 'fs_brand_category_selected', array('bno' => $brand_id, 'operand1' => 'and', 'bcno' => $bcno, 'operand2' => 'and', 'bcs_gender' => $gender));
            // print_r($exist);
Exemple #14
0
function add_look_tview($ltv, $plno)
{
    $ltv++;
    update1('postedlooks', 'tview', $ltv, array('plno', $plno));
    // print_r($ltv);
}
Exemple #15
0
function chang_email()
{
    mail($_GET['lastMail'], "New Email Succesfully Change - from FashionSponge.com", "Your previous email {$_GET['lastMail']} and Succesfully change to {$_GET['Nmail']} ", "Dear " . firstname($_SESSION['mno']) . ",");
    update1('fs_member_accounts', 'email', $_GET['Nmail'], array('mno', $_SESSION['mno']));
}