コード例 #1
0
ファイル: Article.php プロジェクト: jesus143/fs-dev
 public function totalUploaded($category, $mno)
 {
     //$response = select_v3($this->table, 'count(*) as total', "mno = $mno and category = '$category'  order by artno desc");
     $response = select_v3($this->table, 'count(*) as total', "mno = {$mno} order by artno desc");
     // print_r($response);
     return $response[0]['total'];
 }
コード例 #2
0
ファイル: lookdetails-popup.php プロジェクト: jesus143/fs-dev
        $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 {
        if ($table_name == 'fs_postedarticles') {
            $response = select_v3('fs_postedarticles', '*', " plcno = {$plcno} and plcld_action = '{$action}' ");
            echo "postedarticles<br>";
            echo "<pre>";
            print_r($response);
            echo "</pre>";
        } else {
            echo "else " . $table_name . ' <br>';
        }
    }
}
// $_SESSION['posted_link'] = 'http://stylecaster.com/best-free-blog-sites/';
// $link = $_SESSION['posted_link'];
?>
<!--slider source http://www.elated.com/articles/elegant-sliding-image-gallery-with-jquery/-->
<!DOCTYPE html>
<html lang="en">
コード例 #3
0
ファイル: Look.php プロジェクト: jesus143/fs-dev
 public function totalUploaded($style, $mno)
 {
     //      $response = select_v3($this->table, 'count(*) as total', "mno = $mno and style = '$style'  order by plno desc");
     $response = select_v3($this->table, 'count(*) as total', "mno = {$mno} order by plno desc");
     // print_r($response);
     return $response[0]['total'];
 }
コード例 #4
0
ファイル: fs.console.source.php プロジェクト: jesus143/fs-dev
 public function update_timezone($country, $tz)
 {
     $response = select_v3('fs_invited', '*', " description LIKE '%{$country}%' order by invited_id ");
     echo "total {$ky} scrapped" . count($response) . '<br>';
     // print_r($response);
     for ($i = 0; $i < count($response); $i++) {
         $id = $response[$i]['invited_id'];
         echo " {$id} .) ";
         if (mysql_query("UPDATE fs_invited SET timezone='{$tz}' WHERE invited_id={$id} ")) {
             echo "<br><span style='color:green'>success</span> COUNTRY: {$country} ";
         } else {
             echo "<br><span style='color:red'>failled</span> COUNTRY: {$country} ";
         }
     }
 }
コード例 #5
0
ファイル: uploadBrandView.php プロジェクト: jesus143/fs-dev
    <div class="row">

        <div class="col-lg-12">
            <h1 class="page-header">Brand Gallery</h1>
        </div>
        <?php 
$path = '../../../fs_folders/images/uploads/brands';
for ($i = 0; $i < count($res); $i++) {
    //get brand
    $bno = $res[$i]['bno'];
    $bcno = $res[$i]['bcno'];
    $bname = $res[$i]['bname'];
    $page = $res[$i]['page'];
    //echo "$i $bno $bcno<br>";
    //select category
    $res1 = select_v3('fs_brand_category', '*', 'bcno = ' . $bcno);
    $type = $res1[0]['type'];
    $imgPath = $path . "/{$bno}" . "_{$type}.jpg";
    ?>
            <div class="col-lg-3 col-md-4 col-xs-6 thumb">
                <?php 
    echo $bname;
    ?>
                <a class="thumbnail" href="#">
                    <img class="img-responsive" src="<?php 
    echo $imgPath;
    ?>
" alt="">
                </a>
            </div> <?php 
}
コード例 #6
0
ファイル: collect-email.php プロジェクト: jesus143/fs-dev
echo " \n        <table style='display:block'> \n          <tr> \n            <th> any link in lookbook </th> <th> user profile link in lookbook </th> <tr>\n            <td>\n              <form METHOD='POST' ACTION='{$_SERVER['PHP_SELF']}' >  \n                <input type='text' name='url' /> \n                <input type='submit' />  \n              </form>\n            </td> \n\n            <td>\n              <form METHOD='POST' ACTION='{$_SERVER['PHP_SELF']}' >  u\n                <input type='text' name='url1' /> \n                <input type='submit' />  \n              </form>\n            </td>\n        </table>    \n      ";
#init
if (!empty($_POST['url'])) {
    $sc->retrieve_multiple_username_and_Add($_POST['url'] . '?page=1', $mc);
} else {
    if (!empty($_POST['url1'])) {
        $sc->email_mining($_POST['url1'], $mc);
    } else {
    }
}
# add new  info invited person
$sc->add_new_invited_info(array('fullname' => !empty($_POST['fullname']) ? $_POST['fullname'] : null, 'email' => !empty($_POST['email']) ? $_POST['email'] : null, 'wob' => !empty($_POST['wob']) ? $_POST['wob'] : null, 'occupation' => !empty($_POST['occupation']) ? $_POST['occupation'] : null, 'style' => !empty($_POST['style']) ? $_POST['style'] : null, 'description' => !empty($_POST['description']) ? $_POST['description'] : null, 'status' => !empty($_POST['status']) ? $_POST['status'] : null), $mc);
/**
 * get total approved
 */
$invited = select_v3('fs_invited', 'count(*)', " invited_status = 1 and scrape_version = 1");
$totalApprovedEmail = $invited[0][0];
// print_r( $invited );
echo "</div>";
$mc->fs_popup_container_and_response('display:none');
?>
 
  <!DOCTYPE html>
  <html>
  <head>
    <title></title> 
    <!-- new innir script  auto scroll down page when oppen-->   
  <script type="text/javascript" src='fs_folders/js/Scrape.js' ></script>
  </head>
  <body style="padding:0px; margin:0px;" onload="invited_person ( 'invited-person' , 'change-content' , '' , '#invited-people-sort' )" id='ThisIsTheBody' >  
コード例 #7
0
ファイル: gen.modals.func.php プロジェクト: jesus143/fs-dev
        break;
    case 'rate-posted-modals-view':
        // this case is not in used because its being replaced with the new one case: fs-modal-popup
        $limit_start = 0;
        $limit_end = 10;
        // print_r($response);
        switch ($process) {
            case 'view-more':
                // retrieve rate information
                $response = select_v3('fs_rate_modals', '*', " table_name = '{$table_name}' and table_id = {$table_id} order by rmno desc limit {$limit_start} , {$limit_end} ");
                // print rate info
                $mc->notification_design_rating($response, '../../../', $mno);
                break;
            default:
                // retrieve rate information
                $response = select_v3('fs_rate_modals', '*', " table_name = '{$table_name}' and table_id = {$table_id} order by rmno desc limit {$limit_start} , {$limit_end} ");
                ?>
 

					   	   	<!-- main design  -->

								<center>
				 					<div id="notification-container" class="notification-activity" style="display:block !important; margin-left:200px;" >  
								 			<table id="notification-main-table" border="0" cellpadding="0" cellspacing="0"  style="width:344px;"  >
								 				<tr> 
								 					<td id="notification-header"  style="padding-left:10px;" > 
								 						<div> <b>Ratings<b> </div>
								 					</td>  
								 					<td>
								 						<a  onclick=" fs_popup( 'close' ) " > ( x ) </a>
								 					</td>
コード例 #8
0
ファイル: Brand.php プロジェクト: jesus143/fs-dev
 public function Save($brand = NULL)
 {
     $bool = false;
     // echo $brand;
     $brand1 = explode('-', $brand);
     // print_r($brand1);
     foreach ($brand1 as $bno) {
         if (!empty($bno)) {
             print $bno . "\n";
             /**
              * check if exist
              * if not then insert to fs_records.fs_brand_category_selected
              * else ignore
              */
             if (!select_v3('fs_brand_member_selected', '*', "mno = {$this->mno} and bno = {$bno}")) {
                 if ($this->db->insert('fs_brand_member_selected', array('mno' => $this->mno, 'bno' => $bno))) {
                     echo "inserted<br>";
                     $bool = true;
                 } else {
                     echo "failed to insert<br>";
                 }
             } else {
                 echo "exist<br>";
             }
         }
     }
     return $bool;
 }
コード例 #9
0
ファイル: rate-look.php プロジェクト: jesus143/fs-dev
									 					</select>
									 				</td> 
									 				<td>
									 					<select>
									 						<option>all bloggers</option>
                                                            <option>plus size</option>
									 					</select>
									 				</td>   
									 		</table>
								 		</center>
								 	</div>
								</td>
				 			<tr>
								<td>    
									<?php 
$looks = select_v3('postedlooks', '*', "active = 1 limit 10");
$np = $mc->generate_next_prev_numbers(count($looks), 25);
?>
   
									<table border="0" cellpadding="0" cellspacing="0" style="margin-top:-10px;" >
 										<tr> 
											<td id="rate-next-prev-up" > 
												<?php 
$mc->print_next_prev_numbers($np, null, 'rate-look', 'loader-down');
?>
  
											</td>
										<tr> 
											<td> 
									 			<div id="rate-look-res" >
									 				<!-- rate-look-res -->
コード例 #10
0
$_SESSION['mno'] = $mc->get_cookie('mno', 136);
$mno = $mc->get_cookie('mno', 136);
$pagenum = intval($_GET['pagenum']);
$rate_style = mysql_real_escape_string($_GET['rate_style']);
$rate_looks = $_GET['rate_looks'];
$rate_status = $_GET['rate_status'];
$rate_limit = intval($_GET['rate_limit']);
$retrievedas = !empty($_GET['retrievedas']) ? $_GET['retrievedas'] : null;
echo " <span  style='color:black'> ";
switch ($retrievedas) {
    case 'rate-next-prev':
        //this is set that the user can't view his own modal uploaded because of mno<>$mno
        if ($rate_style == 'All Style') {
            $looks = select_v3('postedlooks', '*', "active = 1 and mno <> {$mno} ");
        } else {
            $looks = select_v3('postedlooks', '*', "active = 1 and  style = '{$rate_style}' and mno <> {$mno}");
        }
        $mylookrated = $mc->get_all_my_rated_looks_by_month($mno, $mc->date_dif['month_firstday']);
        $plnos = $mc->remove_rated_looks($looks, $mylookrated, $rate_status);
        $tres = count($plnos);
        $np = $mc->generate_next_prev_numbers(intval($tres), $rate_limit);
        echo "<nextprev1>";
        $mc->print_next_prev_numbers($np, null, 'rate-look', 'loader-down');
        echo "<nextprev1>";
        echo "<nextprev2>";
        $mc->print_next_prev_numbers($np, null, 'rate-look', 'loader-up');
        echo "<nextprev2>";
        echo "<span style='display:none' ><tres>{$tres}<tres></span>";
        break;
    default:
        // modals
コード例 #11
0
ファイル: myclass.php プロジェクト: jesus143/fs-dev
 public function check_if_already_followed($follower, $followed)
 {
     // echo "check_if_already_followed( $follower , $followed )";
     // $followed = selectV1('*', 'fs_follow' , array('mno'=> intval($follwer),'operand1'=>'and','mno1'=> intval($follwed) )  );
     $follower = intval($follower);
     $followed = intval($followed);
     // $followed = select_v3( 'fs_follow' , '*' , " mno = $follower and mno1 = $followed " );
     $followed = select_v3('fs_follow', '*', "mno = {$follower} and mno1 = {$followed}");
     // print_r($followed);
     return $followed;
 }
コード例 #12
0
$comment = $mc->text_cleaner($comment);
// echo " <li>  htis is adfasdf </li> ";
$comment = str_replace('[-double-dot-]', ':', $comment);
// domain url
if ($plcld_action == 'Thumb-Up') {
    $rate = 'like';
} else {
    $rate = 'dislike';
}
switch ($type) {
    case 'thumbs-up-or-down':
        $mc->add_look_comment_thumb_up_or_down($plcno, $mno, $plcld_action, $dtime);
        // $action =   "<span class='fs-text-red'> commented </span> ";
        // $mc->set_session_notification( $mno , $table_name , $table_id , $action , $comment );
        // $mc->set_notification_info( 'postedlooks' , $plno , "<span class='fs-text-red'>$rate</span> a comment" , $mno2 , 0 );
        $response = select_v3('posted_looks_comments', '*', "plcno = {$plcno}");
        $mno2 = $response[0]['mno'];
        $comment = $response[0]['msg'];
        $mc->set_notification_info('postedlooks', $plno, $rate, null, null, 0, 'rate_comment', $mno2, $comment);
        break;
    default:
        // echo " default";
        //this is the new version comment
        // lookdetails-dev.php is using this one
        $mc->print_look_comment_v1($mno, $plno, $comment, $post_comment, $dtime, $st, $nexprev, $_SESSION['sort_comment'], '../../../');
        /*
        	//this is the old version comment 
        	//lookdetails.php is using this one
        	$mc->post_look_comment(  $mno , $plno , $comment , $post_comment , $dtime , $st , $nexprev ,  $_SESSION['sort_comment'] , '../../../'  ); 	 
        */
        // $mc->set_notification_info( 'postedlooks' , $plno , "  <span class='fs-text-red'>commented</span> says: $comment " , $mno2 , 0 );
コード例 #13
0
ファイル: modals.php プロジェクト: jesus143/fs-dev
$user_total_lookuploaded = count($mc->retreive_specific_user_all_looks($mno1));
// $mno = $_SESSION['mno'] = 133;
// $mc->add_user_profile_view( $mno  , $mno1 ,  $mc->date_time );
$mppno = $mc->member_profile_pic_query(array('mno' => $mno1, 'type' => 'get-latest-mppno'));
$total['activity'] = $mc->fs_activity(array('type' => 'get-tactivity'));
$total['looks'] = $mc->posted_modals_postedlooks_Query(array('postedlooks_query' => 'get-all-tlook'));
$total['followers'] = $mc->get_total_follower($mno1);
$total['following'] = $mc->get_total_following($mno1);
$total['favorites'] = count(selectV1('*', 'fs_favorite_modals', array('mno' => $mno1)));
$total['articles'] = count($mc->fs_postedarticles(array('aticle_type' => 'select', 'limit_start' => 0, 'limit_end' => 10000, 'where' => "mno > 0")));
$total['media'] = 0;
$total['comment'] = 0;
$total['comment_made'] = 0;
$total['comment_recieved'] = 0;
$total['member'] = count(select_v3('fs_members', '*', " mno > 0 "));
$total['flag'] = count(select_v3('fs_flag', '*', 'flno > 0'));
$total['rating'] = 200;
# set view and add
// $mc->view(
// 	array(
// 		'table_name'=>$modal['table_name'],
// 		'table_id'=>$modal['table_id'],
// 		'mno'=> $mno,
// 		'type'=> 'add-view'
// 	)
// );
echo "</div>";
?>
 
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
コード例 #14
0
ファイル: validate-login.php プロジェクト: jesus143/fs-dev
$sc = !empty($_GET['sc']) ? $_GET['sc'] : null;
$status = false;
$login_error = false;
switch ($type) {
    case 'login':
        $pass = $_GET['pass'];
        $mail = $_GET['mail'];
        if (!empty($pass) and !empty($mail)) {
            //$npass = $mc->encrypt_password( $pass , 1000 );
            //$mno = $mc->set_Login( $mail , $npass ,  array('tableName'=>'fs_member_accounts' , 'userRow'=>'email' , 'passRow'=>'pass' )   );
            /*
            	echo " pass: $pass and  npass: $npass <br> ";
            	echo " email: $mail <br> "; 
            	echo " mno: $mno ";   
            */
            $r = select_v3('fs_members', '*', "identity_email = '{$mail}' and identity_login = '******'");
            $mno = $r[0]['mno'];
        }
        if (!empty($mno)) {
            $_SESSION['temp_mno'] = $mno;
            $login_error = false;
        } else {
            $login_error = "Ohhps! username and password combination is not correct !";
        }
        break;
    case 'signup':
        // echo "signup result <br>";
        $fname = $_GET['fname'];
        $mail = $_GET['mail'];
        $pass = $_GET['pass'];
        $uanswer = $_GET['uanswer'];
コード例 #15
0
ファイル: Test-code.php プロジェクト: jesus143/fs-dev

$mno = 137;
// $category = 'streetwear';
$category = 'entertainment';
$table_name = 'fs_postedarticles';
// $table_name = 'postedlooks';
$table_id   = 44;
$url='www.fashionsponge.com/index.php';
$sc->get_site_last_update($url);


//$db->delete('fs_notification', "table_name = '" . $table_name."' and table_id = ". $table_id." and mno1 = " . $mno );
$response = select_v3( 
	'fs_notification', 
	'count(nno), nno', 
	"table_name = '" . $table_name."' and table_id = ". $table_id." and mno1 = " . $mno 
);

 
echo "<pre>";
print_r($response);


echo "total " . $response[0]['count(nno)'] . '<br>';

$notification_total = $response[0]['count(nno)']; 


if($notification_total > 1) { 
	//update all notification to status = 2 where status = 1;
コード例 #16
0
ファイル: UserProfilePic.php プロジェクト: jesus143/fs-dev
 public function profileComplete()
 {
     $response = select_v3($this->table, '*', " mno = {$this->mno} order by mppno desc limit 1");
     return !empty($response[0]['mppno']) ? $response[0]['mppno'] : 0;
 }