Example #1
0
 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));
 }
 public static function singleton($caller)
 {
     printf("%s(%s)\n", __METHOD__, $caller);
     if (!self::$instance) {
         $c = __CLASS__;
         self::$instance = new $c($caller);
     }
     return self::$instance;
 }
Example #3
0
function toplook($from, $rows)
{
    $mc = new myclass();
    $date_dif = $mc->date_difference();
    if ($_SESSION['show'] == 'today') {
        $q = "SELECT * from postedlooks pl,fs_members fm where pl.mno=fm.mno and date_ > '{$date_dif['today']}' order by \n\t\t\t\t\t\t\t((select sum(r.rating) from ratings r where r.plno=pl.plno)+(select count(*) from pl_loves l where l.plno=pl.plno)) desc\n\t\t\t\t\t\tlimit {$from},{$rows} ";
    }
    if ($_SESSION['show'] == 'week') {
        $q = "SELECT * from postedlooks pl,fs_members fm where pl.mno=fm.mno and date_ > '{$date_dif['last_week']}' order by \n\t\t\t\t\t\t\t((select sum(r.rating) from ratings r where r.plno=pl.plno)+(select count(*) from pl_loves l where l.plno=pl.plno)) desc\n\t\t\t\t\t\tlimit {$from},{$rows} ";
    }
    if ($_SESSION['show'] == 'month') {
        $q = "SELECT * from postedlooks pl,fs_members fm where pl.mno=fm.mno and date_ > '{$date_dif['last_month']}' order by \n\t\t\t\t\t\t\t((select sum(r.rating) from ratings r where r.plno=pl.plno)+(select count(*) from pl_loves l where l.plno=pl.plno)) desc\n\t\t\t\t\t\tlimit {$from},{$rows} ";
    }
    if ($_SESSION['show'] == 'year') {
        $q = "SELECT * from postedlooks pl,fs_members fm where pl.mno=fm.mno and date_ > '{$date_dif['last_year']}' order by \n\t\t\t\t\t\t\t((select sum(r.rating) from ratings r where r.plno=pl.plno)+(select count(*) from pl_loves l where l.plno=pl.plno)) desc\n\t\t\t\t\t\tlimit {$from},{$rows} ";
    }
    if ($_SESSION['show'] == 'all') {
        $q = "SELECT * from postedlooks pl,fs_members fm where pl.mno=fm.mno order by \n\t\t\t\t\t\t\t((select sum(r.rating) from ratings r where r.plno=pl.plno)+(select count(*) from pl_loves l where l.plno=pl.plno)) desc\n\t\t\t\t\t\tlimit {$from},{$rows} ";
    }
    $ex = mysql_query($q) or die(mysql_error());
    $i = 1;
    while ($r = mysql_fetch_array($ex)) {
        $plinfo = $mc->posted_look_info($r[0]);
        $xx = mysql_query("select sum(rating) from ratings where plno={$r['0']}") or die(mysql_error());
        $rr = mysql_fetch_array($xx);
        $xxx = mysql_query("select count(rating) from ratings where plno={$r['0']}") or die(mysql_error());
        $rrr = mysql_fetch_array($xxx);
        $xxxx = mysql_query("select count(*) from posted_looks_comments where plno={$r['0']}") or die(mysql_error());
        $rrrr = mysql_fetch_array($xxxx);
        $x5 = mysql_query("select count(*) from pl_loves where plno={$r['0']}") or die(mysql_error());
        $r5 = mysql_fetch_array($x5);
        $memq = mysql_query("select * from fs_members fs,fs_member_accounts fa  where fs.mno=fa.mno and fs.mno=" . $r["mno"]) or die(mysql_error());
        $rsmemq = mysql_fetch_array($memq);
        $qr = mysql_query("select sum(r.rating) from ratings r, postedlooks pl where r.plno=pl.plno and pl.mno=" . $r["mno"]);
        $rsqr = mysql_fetch_array($qr);
        $qc = mysql_query("select count(*) from ratings r, postedlooks pl where r.plno=pl.plno and pl.mno=" . $r["mno"]);
        $rsqc = mysql_fetch_array($qc);
        $ql = mysql_query("select count(*) from pl_loves l, postedlooks pl where pl.plno=l.plno and pl.mno=" . $r["mno"]);
        $rsql = mysql_fetch_array($ql);
        $qf = mysql_query("select count(*) from friends f where mno2=" . $r["mno"]);
        $rsqf = mysql_fetch_array($qf);
        $qff = mysql_query("select count(*) from friends f where mno1=" . $r["mno"]);
        $rsqff = mysql_fetch_array($qff);
        echo "\n\t\t\t\t\t\t\t<style>\n\t\t\t\t\t\t\t\t.stands b{\n\t\t\t\t\t\t\t\t\tcolor:#000\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</style>\n\t\t\t\t\t\t";
        echo "\n\t\t\t\t\t\t\t\t<li >\n\t\t\t\t\t\t\t\t\t<div onmouseover=\"showRate({$r['0']},'block')\" onmouseout=\"showRate({$r['0']},'none')\" >\n\t\t\t\t\t\t\t\t\t\t<div style='position:absolute;display:none;' id='rate{$r['0']}'>\n\t\t\t\t\t\t\t\t\t\t\t<div style='position:absolute;'>\n\t\t\t\t\t\t\t\t\t\t\t\t<div style='position:relative;left:44px;top:-20px;'><img src='images/corner.png' /></div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div style='position:absolute;'>\n\t\t\t\t\t\t\t\t\t\t\t\t<div style=\"overflow:hidden;font:bold 12px 'arial';padding:10px;width:150px;position:relative;left:50px;top:15px;background:url('images/trans-back.png');width:218px;color:white\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<b style=\"font:bold 15px 'arial'\">" . $r["lookName"] . "</b>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<br><br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . $r["lookAbout"] . "<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\tTags: Polka Dot; Brand; <br>\n\t\t\t\t\t\t\t\t\t\t\t\t\tOther<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\tPrice: \$89<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\tWhere: Name of Store<br><br>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tPosted on " . $r["date_"] . "<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t04:15 pm\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class='rate' style='background:white;WIDTH:35px;padding:1px;position:relative;left:5px;top:-20px;border:1px solid #6d6d6d' >\n\t\t\t\t\t\t\t\t\t\t\t\t<div style=\"padding:5px 2px 5px 2px;background:#02c7ea;font:bold 11px 'arial';color:#fff\">" . @round($rr[0] / ($rrr[0] * 5) * 100) . "%</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div style=\"padding:0px;background:white;font:bold 11px 'helvetica (TT)';color:#3b3b3b\">RATE</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div id='r5' onclick=\"ratethis({$r['0']},5)\">5</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div id='r4' onclick=\"ratethis({$r['0']},4)\" >4</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div id='r3' onclick=\"ratethis({$r['0']},3)\" >3</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div id='r2' onclick=\"ratethis({$r['0']},2)\" >2</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div id='r1' onclick=\"ratethis({$r['0']},1)\" >1</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<div onclick=\"dripthis({$r['0']})\" style=\"background:white url('images/drip.png') center no-repeat\">&nbsp;</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div onclick=\"lovethis({$r['0']})\"  style=\"background:white url('images/love.png') center no-repeat\">&nbsp;</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<table border=0 width=100% >\n\t\t\t\t\t\t\t\t\t\t\t<td valign=top >\n\t\t\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img onclick=\"window.location='lookdetails.php?id={$r['0']}'\" src='images/members/posted looks/{$r['0']}.jpg' style='width:287px;height:450px' />\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t<div style='padding:5px;'></div>\n\t\t\t\t\t\t\t\t\t\t<table width=100% class='stands'>";
        if (file_exists("../images/members/{$rsmemq['mno']}.jpg")) {
            echo "<td width=1><a href='" . $rsmemq["username"] . "'><img src='images/members/" . $rsmemq["mno"] . ".jpg'  width=50px height=53px style='margin-top:6px;' /></a></td>";
        } else {
            echo "<td width=1><a href='" . $rsmemq["username"] . "'><img src='images/members/0.jpg' width=50px height=53px style='margin-top:6px;' /></a></td>";
        }
        echo "\t\n\t\t\t\t\t\t\t\t\t\t\t\t<td style='padding:5px;'> ";
        // echo "<a href='".$rsmemq["username"]."' style='color:#454545;font:15px helveticaBold;text-decoration:none;//text-transform:uppercase'>".$rsmemq["firstname"]." ".$rsmemq["lastname"]."</a><br>";
        echo "<a  style='color:#454545;font:12px helveticaBold;text-decoration:none;//text-transform:uppercase'>" . $rsmemq["firstname"] . " " . $rsmemq["lastname"] . " </a> <span style='font-size:11px'>posted a new look </span><br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span style='color:#454545;font:11px helvetica; font-weight:bold;' >" . $plinfo['tlrates'] . " Rates |  Ratings " . $plinfo['tlrpercent'] . " %</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<table style='width:auto;color:#454545;font:bold 11px helvetica' border=0>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><b>{$plinfo['tldrips']}</b></td><td><img src='images/drip.png' height=10 /></td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td> | <b>{$plinfo['tllove']}</b></td><td><img src='images/love.png' height=10 /></td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td> |  " . $plinfo['tlcomments'] . " Comments</b></td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span style='font-size:11px;font-weight:bold'>" . get_look_tview($r[0]) . " total Views</span>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td valign=center ><br><img src='images/look-icon.png' /></td>\n\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</li>\t\n\t\t\t\t\t\t\t\t";
        $i++;
    }
}
<?php

session_start();
require "fs_folders/php_functions/connect1.php";
require "fs_folders/php_functions/function.php";
require "fs_folders/php_functions/library.php";
require "fs_folders/php_functions/source.php";
require "fs_folders/php_functions/myclass.php";
require "fs_folders/dropdown/dropdown_php_file/dropdown.php";
$dd = new dropdown();
$mc = new myclass();
$ri = new resizeImage();
$mc->auto_detect_path();
$mno = $mc->get_cookie('mno', 136);
$_SESSION["mno"] = $mc->get_cookie('mno', 136);
require 'fs_folders/php_functions/Class/User.php';
require 'fs_folders/php_functions/Class/Email.php';
use App\Email;
$user = new User($mno, $db);
$email = new Email($mno, $db);
//print_r($user->getInfo());
if ($user->getInfo()[0]['status'] == 0) {
    $email->sendConfirmationEmail($user->getInfo()[0]['identity_email'], $mc->mno);
    print 'New confirmation email sent to ' . $user->getInfo()[0]['identity_email'];
} else {
    print 'User already confirmed.';
}
?>


Example #5
0
 <?php 
require "fs_folders/php_functions/connect.php";
require "fs_folders/php_functions/function.php";
require "fs_folders/php_functions/myclass.php";
require "fs_folders/php_functions/library.php";
require "fs_folders/php_functions/source.php";
require "fs_folders/php_functions/Class/User.php";
require "fs_folders/php_functions/Class/Brand.php";
require "fs_folders/php_functions/Class/Article.php";
require "fs_folders/php_functions/Class/Look.php";
require "fs_folders/php_functions/Class/UserProfilePic.php";
require 'fs_folders/php_functions/Database/post.php';
$_SESSION['post_a_look_is_look_upload_once_in_db'] = false;
use App\UserProfilePic;
use App\Article;
$mc = new myclass();
$article = new Article($mc->mno, $db);
$look = new Look($mc->mno, $db);
$userProfilePic = new UserProfilePic($mc->mno, $db);
$mc->post = new Post();
$mc->auto_detect_path();
$mc->save_current_page_visited();
# initlaized mno
// $is_cookie_set   =  $mc->set_cookie( 'mno' , 130 , time()+3600*24 );
$_SESSION['mno'] = $mc->get_cookie('mno', 136);
$mno = $mc->get_cookie('mno', 136);
# initialized the next viewed more modals
$_SESSION['counter'] = 3;
// echo " <bR><br><bR><Br>mno ".$_SESSION['mno'];
// $mc->automatic_insert(5);
// echo " id = ".$_GET["id"];
Example #6
0
parse error on class variable named 'default'

<?php 
class myclass
{
    var $default = 'test';
    function blah()
    {
        $this->default = 'meep';
    }
}
$c = new myclass();
$c->blah();
echo $c->default;
Example #7
0
<?php

@session_start();
require "fs_folders/php_functions/connect1.php";
require "fs_folders/php_functions/function.php";
require "fs_folders/php_functions/myclass.php";
require "fs_folders/php_functions/library.php";
require "fs_folders/php_functions/source.php";
$_SESSION['post_a_look_is_look_upload_once_in_db'] = false;
$mc = new myclass();
$article = new postarticle();
$image = new resizeImage();
$mc->auto_detect_path();
$_SESSION['mno'] = $mc->get_cookie('mno', 136);
$mno = $mc->get_cookie('mno', 136);
?>
     
	<!DOCTYPE html>
	<html> 
		<head>   
			<?php 
$mc->header_attribute("Log-in or Sign Up | Fashion Sponge");
?>
 	
		</head>
		<body style="padding:0px; margin:0px;" >
		
			<div id="login-container" >   

			</div>
Example #8
0
 <?php 
	require("fs_folders/php_functions/connect1.php");
	require("fs_folders/php_functions/function.php");
	require("fs_folders/php_functions/myclass.php"); 
	require("fs_folders/php_functions/library.php");
	require("fs_folders/php_functions/source.php");
	$mc  = new myclass( );
	 
	// echo " all ads connected here and redirect to their original websites and must be saved also to fs database in order to records the ads stat.";

	$ads_location = str_replace(" ",".", $_GET["loc"]); 
	$mc->get_visitor_info( "" , " [ advertisement clicked ] = link $ads_location " , "home" );  
	$ads_location = $mc->generate_url( $ads_location );
?>

	<?php  
			// $mc->header_attribute( 
 		// 		"Fashion Sponge | OOTD | Trends | Fashion Blogs | Beauty Tips | Fashion Inspiration " , 
 		// 		"FASHION SPONGE IS THE EASIEST AND FASTEST WAY TO... Show your OOTD, see the lastest trends, discover new fashion blogs, get beauty and style tips and get fashion inspiration.",
 		// 		"OOTD | Trends | Fashion Blogs | Beauty Tips | Fashion Inspiration "
 		// 	); 


			$mc->go($ads_location);



 			?>


Example #9
0
    require "fs_folders/php_functions/library.php";
    require "fs_folders/php_functions/source.php";
    require "fs_folders/php_functions/myclass.php";
    $mc = new myclass();
    $ri = new resizeImage();
}
//capture the id and to be change to slug
@setcookie('plno', !empty($_GET['id']) ? $_GET['id'] : $_SESSION['table_id'], time() + 3600 * 24);
echo " <div style='display:none' > ";
if ($_GET['id'] = helper::get_table_id(!empty($_GET['id']) ? $_GET['id'] : null, $_SESSION['table_id'])) {
    if (!$_GET['id']) {
        $mc->go("/");
    }
    unset($_SESSION['table_id']);
}
$mc = new myclass();
$ri = new resizeImage();
$mc->save_current_page_visited();
# initialize 1
$_SESSION['mno'] = $mc->get_cookie('mno', 136);
$mno = $mc->get_cookie('mno', 136);
// echo " <bR><br><bR><Br>mno ".$_SESSION['mno'];
// echo " $mno ";
/*
if ( empty($_GET['id'])) {
   $mc->go("/");
   $looks        = $mc-> retreive_specific_user_all_looks( $mno  , "order by plno desc " );
   $_GET['id']   = $looks[0]["plno"];
}else{
}
*/
Example #10
0
 public function display_array_result_of_checking_blog()
 {
     $mc = new myclass();
     $start = 0;
     $end = 100;
     $url = $this->get_url_of_the_scrapped_users($start, $end);
     $mc->print_r1($url);
     for ($i = 0; $i < count($url); $i++) {
         $url1 = $url[$i];
         for ($j = 0; $j < count($url1); $j++) {
             $url2 = $url1[$j]['url'];
             echo " <br>url:{$url2}";
             $response = $this->get_emails_from_the_page($url2);
             $mc->print_r1($response);
         }
         echo "<br>next----------------------------------------";
     }
 }
 <?php  
    require ("fs_folders/php_functions/connect.php"); 
    require ("fs_folders/php_functions/function.php");
    require ("fs_folders/php_functions/library.php");
    require ("fs_folders/php_functions/source.php");
    require ("fs_folders/php_functions/myclass.php"); 

    require ("fs_folders/php_functions/Time/Time.php"); 
    require ("fs_folders/php_functions/Database/LookbookDatabase.php");  
    require ("fs_folders/php_functions/Extends/LookbookExtends.php");  
    require ("fs_folders/php_functions/Class/Lookbook.php");  


    $mc              =  new myclass();     
    $pa              =  new postarticle( ); 
    $ri              =  new resizeImage (); 
    $sc              =  new scrape();   
    $lookbook        =  new lookbook();   

    LookbookDatabase::$database = $db;  
    if($mc->send_email_signup_to_user('Rico', '*****@*****.**', 'signup', '*****@*****.**' , 'this is a test for dev')) { 
    	// echo "<br>succesfully sent send";
    } else {  
    	// echo "<br>failled to send";
    }
 
Example #12
0
<?php

@session_start();
// $_SESSION['temp_mno'] = 754; //
// $_SESSION['temp_mno'] = 133; // rico
// $_SESSION['temp_mno'] = 134;  kayab
// $_SESSION['temp_mno'] = 135;
// $_SESSION['temp_mno'] = 1169;
$lastpagevisited = !empty($_GET['url']) ? $_GET['url'] : $lastpagevisited;
if ($_SESSION['temp_mno'] != null) {
    setcookie('mno', $_SESSION['temp_mno'], time() + 10 * 365 * 24 * 60 * 60);
    require "fs_folders/php_functions/connect1.php";
    require "fs_folders/php_functions/function.php";
    require "fs_folders/php_functions/myclass.php";
    $mc = new myclass();
    $lastpagevisited = !empty($_SESSION['lastpagevisited']) ? $_SESSION['lastpagevisited'] : '/';
    $_SESSION['mno'] = $_SESSION['temp_mno'];
    // echo "succesfully authenticated, please wait.....";
    $mc->update_total_login($_SESSION['mno'], 1);
    $mc->confirm_mem_account($_SESSION['mno']);
    // echo "  lastpagevisited $lastpagevisited ";
    $mc->add_new_member_profile_pic($_SESSION['mno']);
    // $mc->add_new_member_time_lime( $_SESSION['mno'] );
    $db->update('fs_members', array('logtime' => "{$mc->date_time}"), "mno={$_SESSION['mno']}");
    //update logtime everylogin
    $db->update('fs_members', array('logstat' => 1), "mno={$_SESSION['mno']}");
    //update logtime everylogin
    $mc->go("{$lastpagevisited}");
} else {
    echo " failled to authenticate, sorry for inconvenience we are redirecting you to login area..";
    $mc->go("home");
Example #13
0
require "fs_folders/php_functions/connect.php";
include "fs_folders/php_functions/Time/Time.php";
include "fs_folders/php_functions/Database/LookbookDatabase.php";
include "fs_folders/php_functions/Extends/LookbookExtends.php";
include "fs_folders/php_functions/Class/Lookbook.php";
require "fs_folders/php_functions/function.php";
require "fs_folders/php_functions/library.php";
require "fs_folders/php_functions/source.php";
require "fs_folders/php_functions/myclass.php";
require_once "fs_folders/php_functions/Database/Invited.php";
$database = new Database();
$invited1 = new \Invitation\Invited();
$database->connect();
$invited1->_setInvitedTotals($database);
echo "<div style='display:none' >";
$mc = new myclass();
$pa = new postarticle();
$sc = new scrape();
$lookbook = new lookbook();
$mc->header_attribute();
$mc->auto_detect_path();
$mno = 968;
$plno = 509;
$plcno = 14;
$mppno = 111;
$mptno = 1;
$comment = 'this is the test comment';
$mno = 135;
$mno1 = 134;
$limit_start = 0;
$limit_end = 2;
Example #14
0
<?php 
  require("fs_folders/php_functions/connect.php");    
  require("fs_folders/php_functions/function.php");
  require("fs_folders/php_functions/myclass.php");
  require("fs_folders/php_functions/library.php");
  require("fs_folders/php_functions/source.php"); 
  $mc = new myclass();
  $ri = new resizeImage();  
  $_SESSION['mno'] =  $mc->get_cookie( 'mno' , 136 );  
  $mno             =  $mc->get_cookie( 'mno' , 136 );   
  $width           = $_SESSION['width_crop_size_limit']; 
  $type            =  ( !empty($_SESSION['type']) ) ? $_SESSION['type'] : null ; ;
  $type1           =  ( !empty($_GET['type']) ) ? $_GET['type'] : null ;
                    if ( !empty($type1) )$type = $type1;              
                     
                    // $type = 'profile-timeline';


//$mno = 1016;

//echo "mno - " . $mno;



    echo " <div id='fs-general-ajax-response' style='color:#fff;position:fixed;background-color:#000;z-index:200;display:none' >  ";
      // $mc->unlink_profile_pics( $mno );
      echo "Type = " .  $type . '<br>';
      switch ( $type ) {
        case 'new-member-fb-login':  
                echo " new member fb login <br> ";
                $mppno = $mc ->member_profile_pic_query( array('mno'=>$mno  , 'type'=>'get-latest-mppno' ) ); 
Example #15
0
<?php

session_start();
require "../../../php_functions/connect.php";
require "../../../php_functions/function.php";
require "../../../php_functions/library.php";
require "../../../php_functions/source.php";
require "../../../php_functions/myclass.php";
$mc = new myclass();
$date_time = $mc->date_difference();
$comment = str_replace('\'', "\"", $_GET["comment"]);
// $plno=$_GET["plno"];
$dtime = $date_time['date_time'];
$mno = $_SESSION['mno'];
$plno = $_SESSION['plno'];
// echo "comment was $comment ";
save_comment($plno, $mno, $comment, $dtime);
function save_comment($plno, $mno, $comment, $dtime)
{
    if (strlen($comment) > 0) {
        insert('posted_looks_comments', array('plno', 'mno', 'date_', 'msg'), array($plno, $mno, $dtime, tcleaner($comment)), 'plcno');
        // echo "<span style='color:green'> succesfully post comment </span>";
    } else {
        // echo " <span  style='color:red' > failled to post comment </span>" ;
    }
}
$posted_comment = true;
require 'commentDesign.php';
// echo " <li> comment design <li> ";
?>
	
Example #16
0
/**
 * @param string $email The email hash
 * @param string $s Size in pixels, defaults to 80px [ 1 - 512 ]
 * @param string $d Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ]
 * @param string $r Maximum rating (inclusive) [ g | pg | r | x ]
 * for more info : http://gravatar.com/site/implement/images/php/ 
 */
	function get_gravatar( $email, $s = 20, $d = 'identicon', $r = 'g') {
		
		$obj = new myclass();
		$sql = "SELECT members.*,member_photos.photo, member_photos.Approve FROM members LEFT JOIN member_photos ON members.id = member_photos.member_id WHERE md5(members.email_id)='".$email."'";
		$sql_res=$obj->select($sql);
				
		$path = "upload/".$sql_res[0]['photo'];
		
		if(!empty($sql_res[0]['photo']) && $sql_res[0]['Approve']==1)
		{
			if (file_exists($path)) 
			{
				$avatarSrc=$path;
			}
			else
			{
				if($sql_res[0]['gender']=='M')
				{
					$avatarSrc='images/male-user1.png';
				}
				else
				{
					$avatarSrc='images/female-user1.png';
				}
			}
		}
		else
		{
			if($sql_res[0]['gender']=='M')
			{
				$avatarSrc='images/male-user1.png';
			}
			else
			{
				$avatarSrc='images/female-user1.png';
			}
		}
		
		//$url = 'gravatar.com/avatar/';
	    //$url .= "$email?s=$s&d=$d&r=$r";
	    //return $url;
		return $avatarSrc;
	}
Example #17
0
require "../../../fs_folders/php_functions/Database/LookbookDatabase.php";
require "../../../fs_folders/php_functions/Extends/LookbookExtends.php";
require "../../../fs_folders/php_functions/Class/Lookbook.php";
require_once "../../../fs_folders/php_functions/Database/Invited.php";
require '../../../fs_folders/php_functions/Class/Article.php';
require '../../../fs_folders/php_functions/Class/Look.php';
//Facebook Config
require '../../../fs_folders/API/facebook-php-sdk-master/src/facebook.php';
$config = array('appId' => '528594163842974', 'secret' => 'a411c8a3c4361556491b2c2ddf38bf21');
$facebook = new Facebook($config);
$user_id = $facebook->getUser();
use App\Article;
$database = new Database();
$invited1 = new \Invitation\Invited();
$database->connect();
$mc = new myclass();
$pa = new postarticle();
$ri = new resizeImage();
$sc = new scrape();
$lookbook = new lookbook();
$article1 = new Article($db, $mc->mno);
$look1 = new Look($mc->mno, $db);
LookbookDatabase::$database = $db;
// initialized
$_SESSION['mno'] = $mc->get_cookie('mno', 136);
$mno = $mc->get_cookie('mno', 136);
$mno2 = 134;
// owner of the modal
$action = !empty($_GET['action']) ? $_GET['action'] : null;
$process = !empty($_GET['process']) ? $_GET['process'] : null;
$step = !empty($_GET['step']) ? $_GET['step'] : null;
Example #18
0
 <?php 
require "fs_folders/php_functions/connect.php";
require "fs_folders/php_functions/function.php";
require "fs_folders/php_functions/myclass.php";
require "fs_folders/php_functions/library.php";
require "fs_folders/php_functions/source.php";
$_SESSION['post_a_look_is_look_upload_once_in_db'] = false;
$mc = new myclass();
$mc->auto_detect_path();
$mc->save_current_page_visited();
// $is_cookie_set   =  $mc->set_cookie( 'mno' , 130 , time()+3600*24 );
$_SESSION['mno'] = $mc->get_cookie('mno', 136);
$mno = $mc->get_cookie('mno', 136);
// echo " <bR><br><bR><Br>mno ".$_SESSION['mno'];
// $mc->automatic_insert(5);
// echo " id = ".$_GET["id"];
// popularlatest
// popularlooks
// popularmembers
// populararticles
// popularmedia
// $_SESSION["mno"] = 134;
// echo " full url =  ".basename($_SERVER["PHP_SELF"]);
$fs_home_tab = basename($_SERVER["PHP_SELF"]);
$fs_home_tab = str_replace(".php", "", $fs_home_tab);
if ($fs_home_tab == "index") {
    $fs_home_tab = "latest";
}
// echo " fs tab = $fs_home_tab <br>";
$mc->get_visitor_info("", "home tab: {$fs_home_tab} ", "home");
if ($fs_home_tab == "index") {
Example #19
0
<?php 
	require("fs_folders/php_functions/connect.php");    
	require("fs_folders/php_functions/function.php");
	require("fs_folders/php_functions/myclass.php");
	require("fs_folders/php_functions/library.php");
 	require("fs_folders/php_functions/source.php");
 	$mc = new myclass();   
 	$_SESSION['mno'] =  $mc->get_cookie( 'mno' , 136 );  
 	$mno 			 =  $mc->get_cookie( 'mno' , 136 );  

 	#retrieved ads based on the category  
	if ( $mno != 136 ) {   
		$look_style = $mc->get_look_style_and_save_look_keyword( ); 
		$ads = $mc->retrieved_ads_based_on_categories( $look_style );   
	} else{
		$mc->save_current_page_visited( 'post-look-upload' );
	}  



?>  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html>  
	<head>

 

	
		<?php 
			$mc->header_attribute( 
Example #20
0
<?php 
	require("fs_folders/php_functions/connect.php");
	require("fs_folders/php_functions/function.php");
	require("fs_folders/php_functions/myclass.php");
	require("fs_folders/php_functions/library.php");
	require("fs_folders/php_functions/source.php"); 
    require ('fs_folders/php_functions/Class/User.php');
    require('fs_folders/php_functions/Helper/helper.php');
    // $base_url = 'http://localhost/fs/new_fs/alphatest';
	$base_url = 'http://dev.fashionsponge.com/'; 
 	// $db	= new Database();
    $ri = new resizeImage ( );
	$mc = new myclass();
	$mc->auto_detect_path();  
	$_SESSION['mno'] =  $mc->get_cookie( 'mno' , 136 );  
 	$mno 			 =  $mc->get_cookie( 'mno' , 136 );
    is_allow_redirect('home', $mc->mno);

echo "<div style='display:none' >";

//echo "<pre>";
    $user              = new User($mno, $db);
  //print_r( $user->getMyInfo() );
    $user->getMyInfo();

//  echo "</pre>";
//echo  " post agree " . $user->post_look_agree;

if (!empty($_SESSION['adm_no'])) {
		#can edit
	}
Example #21
0
<?php

require "fs_folders/php_functions/connect.php";
require "fs_folders/php_functions/function.php";
require "fs_folders/php_functions/library.php";
require "fs_folders/php_functions/source.php";
require "fs_folders/php_functions/myclass.php";
$mc = new myclass();
if (isset($_POST['submit'])) {
    // echo "submit clicked!";
    $invited_fn = $_POST['invited_fn'];
    $invited_ln = $_POST['invited_ln'];
    $invited_email = $_POST['invited_email'];
    $invited_wob = $_POST['invited_wob'];
    $invited_occu = $_POST['invited_occu'];
    $invited_style = $_POST['invited_style'];
    $invited_offer = $_POST['invited_offer'];
    $mc->insert_invited($invited_fn, $invited_ln, $invited_email, $invited_wob, $invited_occu, $invited_style, $invited_offer);
    $mc->send_email_to_admin($invited_fn, $invited_ln, $invited_email, $invited_wob, $invited_occu, $invited_style, $invited_offer);
    $mc->send_email_to_user($invited_fn, $invited_ln, $invited_email, $invited_wob, $invited_occu, $invited_style, $invited_offer);
    $response_text = true;
} else {
    $mc->get_visitor_info("", "invite");
    $response_text = false;
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head> 

<?php

require "../../../fs_folders/php_functions/connect.php";
require "../../../fs_folders/php_functions/function.php";
require "../../../fs_folders/php_functions/library.php";
require "../../../fs_folders/php_functions/source.php";
require "../../../fs_folders/php_functions/myclass.php";
$mc = new myclass();
$mc->auto_detect_path();
$facebook = $mc->fb_init('../../API/facebook-php-sdk-master/src/facebook.php');
$_SESSION['mno'] = $mc->get_cookie('mno', 136);
$mno = $_SESSION['mno'];
$mno1 = !empty($_GET['mno1']) ? intval($_GET['mno1']) : "";
$spnp = !empty($_GET['select_page_next_prev']) ? intval($_GET['select_page_next_prev']) : "";
$action = !empty($_GET['action']) ? $_GET['action'] : "";
$account_seettings_tab = $_GET['account_seettings_tab'];
echo " mno = {$mno} and mno1 = {$mno1} <br>";
/**
 * created: jan 22 , 2014
 * by jesus erwin suarezs
 */
class account_settings extends account_settings_codes
{
    function __construct()
    {
    }
    public function account_settings_brand_next_page($spnp, $mc, $brand_selected, $all_brands)
    {
        // $mc->auto_detect_path();
        $c = 0;
        $x = $spnp;
Example #23
0
    require "fs_folders/php_functions/function.php";
    require "fs_folders/php_functions/library.php";
    require "fs_folders/php_functions/source.php";
    require "fs_folders/php_functions/myclass.php";
    $mc = new myclass();
    $ri = new resizeImage();
}
@setcookie('plno', !empty($_GET['id']) ? $_GET['id'] : $_SESSION['table_id'], time() + 3600 * 24);
echo " <div style='display:none' > ";
if ($_GET['id'] = helper::get_table_id(!empty($_GET['id']) ? $_GET['id'] : null, $_SESSION['table_id'])) {
    if (!$_GET['id']) {
        $mc->go("/");
    }
    unset($_SESSION['table_id']);
}
$mc = new myclass();
$ri = new resizeImage();
$mc->save_current_page_visited();
# initialize 1
$_SESSION['mno'] = $mc->get_cookie('mno', 136);
$mno = $mc->get_cookie('mno', 136);
// echo " <bR><br><bR><Br>mno ".$_SESSION['mno'];
// echo " $mno ";
/* 
if ( empty($_GET['id'])) { 
	$mc->go("/");   
	$looks        = $mc-> retreive_specific_user_all_looks( $mno  , "order by plno desc " ); 
	$_GET['id']   = $looks[0]["plno"]; 
}else{   
} 
*/
Example #24
0
<?php

$mc = new myclass();
//    session_start();
$path = '';
$path1 = 'fs_folders/login/pages/welcome-v1/slider';
//    include( $path . 'fs_folders/php_functions/Database/Database.php');
//    $database = new Database();
//    $database->connect();
//    $mno = $_SESSION['mno'];
//    $user_account = $database->selectV1('fs_member_accounts', '*', "mno = $mno");
//    $user_profile = $database->selectV1('fs_members', '*', "mno = $mno");
//    $lastname     = (!empty($user_profile[0]['lastname']) ? $user_profile[0]['lastname']  : '');
//    $firstname    = (!empty($user_profile[0]['firstname'])? $user_profile[0]['firstname'] : '');
//    $username     = (!empty($user_account[0]['username']) ? $user_account[0]['username']  : '');
$blogName = $mc->blog_name;
$blogUrl = $mc->blogdom;
$firstname = $mc->firstname;
$lastname = $mc->lastname;
$username = $mc->identity_username;
$gender = $mc->gender;
$plus_blogger = $mc->plus_blogger;
//     echo "<h2>
//     mno = $mc->mno <br>
//     fullname = $mc->fullname <br>
//     gender = $mc->gender   <br>
//     plus_blogger = $mc->plus_blogger <br>
//     lastname = $mc->lastname <br>
//     firstname = $mc->firstname <br>
//     identity_username = $mc->identity_username <br>
//     blog_name = $mc->blog_name <br>
Example #25
0
<?php

require "../../../php_functions/connect.php";
require "../../../php_functions/function.php";
require "../../../php_functions/myclass.php";
require "../../../php_functions/library.php";
require "../../../php_functions/source.php";
$mc = new myclass();
$am = new admin();
$mc->auto_detect_path();
$am->look_views(12);
// echo " start = $am->start stop = $am->stop ssd <br>";
// selectV1($select='*',$tableName=null, $where=null,$orderby=null,$limit=null)
$all_looks = selectV1('*', 'postedlooks', array("active" => 1), 'order by plno desc');
// echo "total look = ".count($all_looks);
$c = 0;
echo " \n\t\t\t\t<table border='0' cellspadding='5' cellspacing='5'  id='ad_look_table' >";
for ($i = $am->start; $i < $am->stop; $i++) {
    if (count($all_looks) > $i) {
        $c++;
        $plno = $all_looks[$i]['plno'];
        echo " \n\t\t\t\t\t\t\t\t<td id='ad_look_container_td{$plno}'   >\n\t\t\t\t\t\t\t\t\t<a href='lookdetails?id={$plno}' target='_blank' > \n\t\t\t\t\t\t\t\t\t\t<img  src='{$mc->look_folder_home}/{$plno}.jpg' /> \n\t\t\t\t\t\t\t\t\t</a> \n\t\t\t\t\t\t\t\t\t<br> \n\t\t\t\t\t\t\t\t\t\t<table border='0' cellspadding='5' cellspacing='5' id='look_image_settings' >\n\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t<td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t<span onclick='deleteNow(\"{$plno}\",\"looks\")' >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdelete\n\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t<span id='update' >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href='post-look-label?kooldi={$plno}&type=admin' > update </a> \n\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t";
        if ($c % 4 == 0) {
            echo "</tr>";
        }
    }
}
echo "</table> \n\t\t\t\t\t\t</center> ";
 function babyclass()
 {
     parent::myclass();
     $this->firstvar++;
 }
Example #27
0
<?php

session_start();
require "fs_folders/php_functions/connect.php";
require "fs_folders/php_functions/function.php";
require "fs_folders/php_functions/library.php";
require "fs_folders/php_functions/source.php";
require "fs_folders/php_functions/myclass.php";
$mc = new myclass();
$ri = new resizeImage();
$table_name = !empty($_GET['table_name']) ? $_GET['table_name'] : '';
$table_id = !empty($_GET['table_id']) ? $_GET['table_id'] : '';
// echo "table name = $table_name, table id = $table_id <br>";
if (!empty($table_name)) {
    if ($table_name == 'postedlooks') {
        // echo "postedlooks <br>";
        $li = $mc->posted_look_info($table_id);
        $mno = $_SESSION["mno"];
        $lookOwnerName = $li["lookOwnerName"];
        $pltags = $li['pltags'];
        $plstyle = $li['style'];
        $Ttag = count($li['pltags']);
        $lookName = $li["lookName"];
        $lookAbout = $li["lookAbout"];
        $pltvotes = $li["pltvotes"];
        $trating = $li["trating"];
        $pltcomment = $li["pltcomment"];
        $link = $li["article_link"];
        $modal['table_id'] = $table_id;
        $modal['table_name'] = $table_name;
    } else {
Example #28
0
<?php

session_start();
require "../../php_functions/connect.php";
require "../../php_functions/function.php";
require "../../php_functions/myclass.php";
require "../../php_functions/library.php";
require "../../php_functions/source.php";
// require('../../connect.php');
// require('../../function.php');
$mc = new myclass();
# $_SESSION['look_keyword']  , $_SESSION['look_style'] => this are generated from post-look-read and selected through the popup posting.
echo " last look uploaded " . $_SESSION['last_look_uploaded'] . '<br>';
$plno = $_SESSION['last_look_uploaded'];
if ($_SESSION['look_edit']) {
    // delete previous
    delete('fs_pltag', array('plno', $plno));
} else {
    $plno = $mc->insert_activity_wall_posted("postedlooks", "Posted", $_SESSION['mno'], 1, "postedlooks", "plno");
    // new save no deletes happens
    $mc->update_table_to_active("postedlooks", "active", 1, "plno", $plno);
    update1('postedlooks', 'plkeyword', $_SESSION['look_keyword'], array('plno', $_SESSION['last_look_uploaded']));
}
// echo "save all labels HERE ";
// echo "not converte = ".$_GET['data'].'<br>';
// $data=str_replace("'", '',$_GET['data']);
// echo " data ".$_GET['data'];
$ar_data = explode('-next-', $_GET['data']);
// print_r($ar_data);
$Ttagged = get_total_tagged($ar_data);
echo "Total tagged = " . get_total_tagged($ar_data);
Example #29
0
<?php

require "fs_folders/php_functions/connect.php";
require "fs_folders/php_functions/function.php";
require "fs_folders/php_functions/myclass.php";
require "fs_folders/php_functions/library.php";
require "fs_folders/php_functions/source.php";
$mc = new myclass();
$mc->auto_detect_path();
$mc->save_current_page_visited();
// $is_cookie_set   =  $mc->set_cookie( 'mno' , 130 , time()+3600*24 );
$_SESSION['mno'] = $mc->get_cookie('mno', 136);
$mno = $mc->get_cookie('mno', 136);
$variables = array();
// $mno = 133;
$limit_start = 0;
$limit_end = 10;
// response from table fs_message and lits of your all messages
$variables['response'] = $mc->fs_message(array('type' => 'get-all-message-id', 'mno' => $mno, 'orderby' => 'order by date asc', 'limit_start' => $limit_start, 'limit_end' => $limit_end));
// $mc->print_r1( $variables['response'] );
//  your all messages len
$variables['len'] = count($variables['response']);
?>

<table border="1" cellpadding="0" cellspacing="0" >
	<?php 
$limit_start = 0;
$limit_end = 1;
for ($i = 0; $i < $variables['len']; $i++) {
    //  each msgno
    $variables['msgno'] = intval($variables['response'][$i]['msgno']);
    $database = new Database();
    $post = new Post();
    $mc = new myclass();
    $ri = new resizeImage();
    $database->connect();
}
//capture the id and to be change to slug
// @setcookie( 'plno' , (!empty($_GET['id'])) ? $_GET['id'] : $_SESSION['table_id']  ,  time()+3600*24 );
echo "<div style='display:none' >";
if ($_GET['id'] = helper::get_table_id(!empty($_GET['id']) ? $_GET['id'] : null, $_SESSION['table_id'])) {
    if (!$_GET['id']) {
        $mc->go("/");
    }
    unset($_SESSION['table_id']);
}
$mc = new myclass();
$ri = new resizeImage();
$mc->save_current_page_visited();
# initialize 1
$_SESSION['mno'] = $mc->get_cookie('mno', 136);
$mno = $mc->get_cookie('mno', 136);
// echo " <bR><br><bR><Br>mno ".$_SESSION['mno'];
// echo " $mno ";
/*
if ( empty($_GET['id'])) {
   $mc->go("/");
   $looks        = $mc-> retreive_specific_user_all_looks( $mno  , "order by plno desc " );
   $_GET['id']   = $looks[0]["plno"];
}else{
}
*/