<?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"; }
//this person is reffered by onother person //code here } else { //add new fs signup as invited user LookbookDatabase::AddInvitedUserSignup($email, $websiteOrBlog, $fullName, $invited_status, $invited_date, $location, $scrape_version, $signup_status, $timezone, $timezone_url); // ADD NEW ANONYMOUS USER //email not exist //insert: //get location by ip // email,domain,invited_Status=8,date_time='current date' echo "<br>email not exist"; echo '<br> <H3>This person is not exist to db</H3>'; } // send sign up email $mc->send_email_to_admin(' ' . LookbookDatabase::getFirstNameByEmail($email), null, $email, $websiteOrBlog); if ($mc->send_email_signup_to_user(' ' . LookbookDatabase::getFirstNameByEmail($email), $email, 'signup', $sender, 'Singup', 2)) { echo '<br>' . 'EMAIL SUCCESSFULLY SENT TO ' . $email; } else { echo '<br>' . 'EMAIL FAILLED SENT TO ' . $email; } break; case 'updateGender': if (mysql_query(" UPDATE fs_invited SET gender = '{$gender}' WHERE invited_id = {$invited_id} ")) { echo "<br>gender successfully updated mysql_query( ' UPDATE fs_invited SET gender = '{$gender}' WHERE invited_id = {$invited_id} ' )"; } else { echo "<br>gender failled to update mysql_query( ' UPDATE fs_invited SET gender = '{$gender}' WHERE invited_id = {$invited_id} ' ) "; } break; default: // init // LookbookDatabase::setInvitedById($invited_id)
<?php require_once "../../../fs_folders/php_functions/Database/Database.php"; require_once "../../../fs_folders/php_functions/Database/LookbookDatabase.php"; require_once "../../../fs_folders/php_functions/Extends/LookbookExtends.php"; require_once "../../../fs_folders/php_functions/Class/Lookbook.php"; require_once "../../../fs_folders/php_functions/String/String.php"; $string = new String(); $database = new Database(); $lookBook = new Lookbook(); $lookbookDatabase = new LookbookDatabase(); $database->connect(); //print_r($lookBook->getTopCityArray()); //echo "<pre>"; //print_r($lookBook->getTopCityTotalPages()); //echo "</pre>"; /** * i hear code query scrapping */ $iHeartMax = $database->selectV1('fs_invited', "*", "scrape_src LIKE '%heartifb%' ORDER BY invited_id desc limit 1"); $page_iHeart = $iHeartMax[0]['page']; $scrape_src_iHeart = $iHeartMax[0]['scrape_src']; // echo "this is amazing "; // print_r($iHeartMax); ?> <!----> <!--<!DOCTYPE html>--> <!--<html>--> <!--<head lang="en">--> <!-- <!--header meta for responsive mobile-->
$database = new Database(); // initialize class $database->connect(); // connect to db LookbookDatabase::$database = $database; // pass database accessor //email-redirect.php?email=mrjesuserwinsuarez@gmail.com&action=private-beta&redirect=TRUE //email-redirect.php?&email=mrjesuserwinsuarez@gmail.com&action=signup&redirect=TRUE //email-redirect.php?&email=mrjesuserwinsuarez@gmail.com&action=remove&redirect=TRUE //email-redirect.php?&email=mrjesuserwinsuarez@gmail.com&action=open&redirect //email-redirect.php?&email=mrjesuserwinsuarez@gmail.com&action=Recieved Invitation&redirect // $action = 'signup'; // $id = 1; // $email = '*****@*****.**'; //other initialized $defaultLink = 'http://fashionsponge.com/'; $action = String::isEmpty($_GET['action'], ''); $email = String::isEmpty($_GET['email'], ''); $redirect = String::isEmpty($_GET['redirect'], FALSE); $qid = !empty($_GET['qid']) ? $_GET['qid'] : 0; $fname = LookbookDatabase::getFullNameByEmail($email); //notification send to admin when email clicked action $to = Program::$adminEmail; //'mrjesuserwinsuarez@gmail.com,pecotrain1@gmail.com'; $subject = 'invited person clicked the email content ' . $action; $body = 'Email: ' . $email . "\n" . 'First Name: ' . $fname . "\n" . ' Action: ' . $action; $from = $email; $title = 'FS ' . $action; echo "<div style='display:none' >"; Program::emailInvitationClickedSaveActivityAndRedirectLocation($defaultLink, $action, $redirect, $to, $subject, $body, $from, $title, $qid, $email); echo "</div>";
public static function emailInvitationClickedSaveActivityAndRedirectLocation($defaultLink, $action, $redirect, $to, $subject, $body, $from, $title, $qid, $email) { echo "emailInvitationClickedSaveActivityAndRedirectLocation({$defaultLink}, {$action}, {$redirect}, {$to}, {$subject}, {$body}, {$from}, {$title}, {$qid})"; // $bool = FALSE; if (Email::setLink($action, $email, $defaultLink, $qid)) { if (LookbookDatabase::emailSaveAction($action, $qid)) { echo "<br>successfully added activity"; if (Email::sendToEmail($to, $subject, $body, $from, $title)) { echo "<br>Notification Email Success to send to admin"; $bool = TRUE; } else { echo "<br>Notification Email failled to send to admin"; } } else { echo "<br>failled added activity"; } } else { echo "<br>failled set link "; } echo 'Redired = ' . Email::getLink(); if ($redirect == TRUE) { JS::redirect(Email::getLink()); echo "\nRedirect"; } else { return $bool; echo '<br>Redirect disabled'; } }