Ejemplo n.º 1
0
 * Time: 11:52 PM
 */
echo " counter = " . $_GET['counter'] . "<br>\n";
require_once "../../../fs_folders/php_functions/Database/Database.php";
require_once "../../../fs_folders/php_functions/Time/Time.php";
require_once "../../../fs_folders/php_functions/Database/InvitedActivity.php";
require_once "../../../fs_folders/php_functions/Database/InvitedQueue.php";
require_once "../../../fs_folders/php_functions/Database/Invited.php";
require_once "../../../fs_folders/php_functions/Database/InvitedLocation.php";
require_once "../../../fs_folders/php_functions/Color/Color.php";
//InvitedLocation
$database = new Database();
$database->connect();
$invitedActivity = new \Invitation\InvitedActivity();
$invitedQueue = new \Invitation\InvitedQueue();
$invited = new \Invitation\Invited();
$invitedLocation = new \FashionSponge\InvitedLocation();
$color = new \Design\Color();
$invitedActivity->setInvitedActivity("fs_invited_activity_id_pk > 0 order by fs_invited_activity_id_pk desc limit 20", $database);
$invitedUsers = $invitedActivity->getInvitedActivity();
?>





<!DOCTYPE html>
<html>
<head lang="en">

    <!--header meta for responsive mobile-->
Ejemplo n.º 2
0
<?php

/**
 * Created by PhpStorm.
 * User: jesus
 * Date: 1/27/2015
 * Time: 3:30 PM
 */
require_once "../Database/Database.php";
require_once "../Database/Invited.php";
require_once "../Database/InvitedQueue.php";
require_once "../Log/Log.php";
$invited = new Invitation\Invited();
$invitedQueue = new \Invitation\InvitedQueue();
$database = new Database();
$database->connect();
//    $invited->setInvitedInfoByEmail($email,$database);
//    if($invited->isEmailExist($email))
//        $invitedQueue->setInvitedQueueById($qId,$database);
//        $invited->updateInvitedStatus($invitedQueue->getInvitedId(), 6);
//    }
//initialized
$signUp = false;
$qId = 107;
$email = '*****@*****.**';
// 6 = is sign up pending
echo "\n test remove the email ";
//validate and conditions
//validate and conditions
// condition
if (!empty($qId) and !empty($email)) {
Ejemplo n.º 3
0
require "../../../fs_folders/php_functions/source.php";
require "../../../fs_folders/php_functions/myclass.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";
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;
Ejemplo n.º 4
0
<?php

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;
Ejemplo n.º 5
0
 * Time: 9:02 PM
 */
/**
 * official sign up = 2
 * official member = 3
 * sign up pending = 7
 * send sent = 12
 */
//requires
require_once "../Database/Database.php";
require_once "../Database/Invited.php";
require_once "../Database/InvitedQueue.php";
require_once "../Log/Log.php";
require_once "../Email/Email.php";
//class
$invited = new Invitation\Invited();
$invitedQueue = new \Invitation\InvitedQueue();
$database = new Database();
$database->connect();
//initialized
//$email = '*****@*****.**';
//$from  = '*****@*****.**';
//$subject = "Fs Signup";
//$body = "";
//$blog = 'fashionsponge.com';
$email = !empty($_GET['email']) ? $_GET['email'] : '*****@*****.**';
//'*****@*****.**';
$from = '*****@*****.**';
$subject = "Fs Signup";
$body = "";
$blog = !empty($_GET['email']) ? $_GET['email'] : 'Fashionsponge.com';
Ejemplo n.º 6
0
<?php

/**
 * Created by PhpStorm.
 * User: jesus
 * Date: 1/28/2015
 * Time: 1:30 PM
 */
require_once "../Database/Invited.php";
require_once "../Database/Database.php";
$database = new Database();
$invited = new \Invitation\Invited();
$database->connect();
$invited->_setInvitedTotals($database);
echo 'total pending ' . $invited->getTotalPending_() . "\n" . 'official signup ' . $invited->getTotalOfficialSignUp_() . "\n" . 'official member' . $invited->getTotalOfficialMember_() . "\n" . 'pending signup' . $invited->getTotalPendingSignUp_() . "\n" . 'send sent' . $invited->getTotalSendSent_() . "\n";
Ejemplo n.º 7
0
<?php

/**
 * Created by PhpStorm.
 * User: jesus
 * Date: 1/28/2015
 * Time: 5:12 PM
 */
require_once "../Database/Invited.php";
require_once "../Database/Database.php";
$database = new Database();
$invited = new \Invitation\Invited();
$database->connect();
$invited->_setInvitedTotals($database);
echo "delete duplicate in db";
echo "delete = " . $invited->deleteDuplicateDb();
echo "<h1> delete duplicate by name </h1>";
$response = $database->selectV1('fs_invited', "count(*) as total , max(invited_id), invited_id, invited_fn, invited_email", " invited_status > 0 GROUP BY invited_fn");
echo "<pre>";
for ($i = 0; $i < count($response); $i++) {
    if ($response[$i]['total'] > 1) {
        print_r($response[$i]);
        $name = $response[$i]['invited_fn'];
        $id = $response[$i]['invited_id'];
        $email = $response[$i]['invited_email'];
        if ($database->delete('fs_invited', "invited_id <> {$id} and invited_fn =\n        '{$name}'")) {
            echo " deleted \n";
        } else {
            echo "failed deleted \n";
        }
    }
Ejemplo n.º 8
0
$time = '../../../fs_folders/php_functions/Time';
$Message = '../../../fs_folders/php_functions/Message';
$Admin = '../../../fs_folders/php_functions/Admin';
$Email = '../../../fs_folders/php_functions/Email';
require_once "{$db}/Database.php";
require_once "{$db}/Invited.php";
require_once "{$db}/InvitedActivity.php";
require_once "{$db}/InvitedLocation.php";
require_once "{$db}/InvitedQueue.php";
require_once "{$time}/Time.php";
require_once "{$Message}/Alert.php";
require_once "{$Admin}/Admin.php";
require_once "{$Email}/Email.php";
//initialized
$database = new Database();
$invited = new Invitation\Invited();
$invitedActivity = new Invitation\InvitedActivity();
$invitedQueue = new Invitation\InvitedQueue();
$invitedLocation = new FashionSponge\InvitedLocation();
$alert = new Message\Alert();
$admin = new \Administrator\Admin();
$email = new Email();
//connect
$database->connect();
//set
$invitedQueue->_setAllInvitedInTheQueueWhoWillReceiveAnInviteEmail(0, 'fs_invited_queue_id_pk desc', 200, $database);
//var_dump($invitedQueue->getAllInvitedInTheQueueWhoWillReceiveAnInviteEmail_());
$admin->_setAdminEmail('*****@*****.**');
//init
$dateTime = '';
$counter = 1;
Ejemplo n.º 9
0
 * problem of the distribution of the query because its possible that the last query will be less in value
 * so the result will be not enough
 */
echo "counter = " . $_GET['counter'] . "<br>";
// requires
$db = '../../../fs_folders/php_functions/Database';
$time = '../../../fs_folders/php_functions/Time';
require_once "{$db}/Database.php";
require_once "{$db}/Invited.php";
require_once "{$db}/InvitedActivity.php";
require_once "{$db}/InvitedLocation.php";
require_once "{$db}/InvitedQueue.php";
require_once "{$time}/Time.php";
//initialized
$database = new Database();
$invited = new Invitation\Invited();
$invitedActivity = new Invitation\InvitedActivity();
$invitedQueue = new Invitation\InvitedQueue();
$invitedLocation = new FashionSponge\InvitedLocation();
//connect
$database->connect();
//get total lacking invited to in queue
$totalLackingInTheQueue = $invitedQueue->getTotalLackingInTheQueue(200, $database);
echo " Total invited needs to be in the queue is =  " . $totalLackingInTheQueue . "<br> \n ";
echo " Total queueing are " . $invitedQueue->getTotalQueueing($database) . "<br> \n";
echo " Total queued are " . $invitedQueue->getTotalQueued($database) . "<br> \n <hr>";
//set and get the new invited in the queue
// $invited->setInvitedForTheQueue($totalLackingInTheQueue, $database, $invited);
$invited->_setInvitedForTheQueueRandom($totalLackingInTheQueue, $database);
/**
 * print the status of getting the location invited
Ejemplo n.º 10
0
  require 'fs_folders/php_functions/Database/LookbookDatabase.php';
  require_once ("fs_folders/php_functions/Database/Invited.php");
  require_once ("fs_folders/php_functions/Database/InvitedQueue.php");
  require_once ("fs_folders/php_functions/Log/Log.php");





 $invited      = new Invitation\Invited();
 $invitedQueue = new \Invitation\InvitedQueue();
 $mc           = new myclass();



$invited      = new Invitation\Invited();
$invitedQueue = new \Invitation\InvitedQueue();
$database     = new Database();
$database->connect();


//    $invited->setInvitedInfoByEmail($email,$database);
//    if($invited->isEmailExist($email))
//        $invitedQueue->setInvitedQueueById($qId,$database);
//        $invited->updateInvitedStatus($invitedQueue->getInvitedId(), 6);
//    }


//initialized
$signUp = false;
$qId    = (!empty($_GET['qId']) ? $_GET['qId'] : 0 ); //107;
Ejemplo n.º 11
0
<?php

/**
 * Created by PhpStorm.
 * User: jesus
 * Date: 02/02/2015
 * Time: 5:17 PM
 */
require_once "../Database/Database.php";
require_once "../Database/Invited.php";
$invited = new Invitation\Invited();
$database = new Database();
$database->connect();
if ($invited->resetData($database)) {
    echo "Reset execution successfully \n <br>";
}
Ejemplo n.º 12
0
<?php

/**
 * Created by PhpStorm.
 * User: jesus
 * Date: 1/29/2015
 * Time: 7:57 PM
 */
require_once "../Database/Database.php";
require_once "../Database/Invited.php";
echo "this is the get activity by invited ";
$invited = new Invitation\Invited();
$database = new Database();
$database->connect();
$iId = 1;
$invited->_setActivity(1, $database);
print_r($invited->getActivity_());
Ejemplo n.º 13
0
 * Date: 1/23/2015
 * Time: 11:52 PM
 */
require_once "../../../fs_folders/php_functions/Database/Database.php";
require_once "../../../fs_folders/php_functions/Time/Time.php";
require_once "../../../fs_folders/php_functions/Database/InvitedActivity.php";
require_once "../../../fs_folders/php_functions/Database/InvitedQueue.php";
require_once "../../../fs_folders/php_functions/Database/Invited.php";
require_once "../../../fs_folders/php_functions/Database/InvitedLocation.php";
require_once "../../../fs_folders/php_functions/Color/Color.php";
//InvitedLocation
$database = new Database();
$database->connect();
$invitedActivity = new \Invitation\InvitedActivity();
$invitedQueue = new \Invitation\InvitedQueue();
$invited = new \Invitation\Invited();
$invitedLocation = new \FashionSponge\InvitedLocation();
$color = new \Design\Color();
$invitedActivity->setInvitedActivity(20, $database);
$invitedUsers = $invitedActivity->getInvitedActivity();
foreach ($invitedUsers as $key => $value) {
    $id = $value['fs_invited_activity_id_pk'];
    $qid = $value['fs_invited_queue_id_fk'];
    $action = $value['fs_invited_activity_action'];
    $date = $value['fs_invited_activity_date'];
    $invitedQueue->setInvitedQueueById($qid, $database);
    $invitedLocation->setInvitedLocationInfo($invitedQueue->getLocationId(), $database);
    $invited->setInvitedInfoById($invitedQueue->getInvitedId(), $database);
    echo "\n this is the invited id " . $invitedQueue->getInvitedId();
    echo "aid = {$id} qid = {$qid} action {$action} date {$date}\n";
    echo "\n This is the full name = " . $invited->getFullName();