本文整理汇总了PHP中myclass::go方法的典型用法代码示例。如果您正苦于以下问题:PHP myclass::go方法的具体用法?PHP myclass::go怎么用?PHP myclass::go使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myclass
的用法示例。
在下文中一共展示了myclass::go方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: basename
$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"];
// popularlatest
// popularlooks
// popularmembers
// populararticles
// popularmedia
// $_SESSION["mno"] = 134;
// echo " full url = ".basename($_SERVER["PHP_SELF"]);
// redirect when not login
if ($mno == 136) {
$mc->go('signup');
}
$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") {
$clock_style = "display:none";
} else {
$clock_style = "display:none";
}
?>
示例2: myclass
<?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);
?>
示例3: array
if ( $img_width > $width ) {
$mc->image(
array(
'type'=>"resize",
'osrc'=>"$mc->ppic_orginal/$mno.jpg",
'nsrc'=>"$mc->ppic_orginal/$mno.jpg",
'nw'=>$width
)
);
}
if($_GET['type'] == 'welcome') {
echo "welcome <br>";
$mc->go("photo.resize.php?type=profile-pic-welcome");
///header("location:photo.resize.php?type=profile-pic-welcome" );
//$mc->go('home');
} else {
echo "not welcome <br>";
}
} else {
echo "profile pic is empty <br>";
//header("location:" . $mc->get_username_by_mno($mno) );
$mc->go('home');
}
break;
}
// $mc->update_profile_pic( $mno );
echo " </div> ";
示例4: setcookie
// $_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");
}
?>
示例5:
'date_'
),
array(
$_SESSION['mno'],
$dateTime
),
'plno'
);
$lplno = $mc->get_last_id( 'postedlooks' , 'plno' );
move_uploaded_file($_FILES["image"]["tmp_name"], "$mc->look_folder/$lplno.jpg");
}
switch ($rotate) {
case 'rotate':
echo "Please wait ... while redirect crop and rotate a look..";
$mc->go("post-look-crop-rotate");
break;
default:
echo "Please wait ... while redirect to look labelling..";
$mc->go("post-look-label");
break;
}
}
else{
$err="<br>Look image size must be at least 140 x 140<br><br>";
}
}
else {
$err="<br>(Image should be jpeg or jpg extention only )<br><br>";
}
示例6: array
echo "bname = {$bname} bcno = {$bcno} <br>";
$b = $db->select('fs_brands', '*', '', "bname = '{$bname}' and bcno = '{$bcno}' ");
$tres = $db->numRows();
echo "tres {$tres} <br>";
if ($tres > 0) {
echo "Failed inserted {$bname} {$gender} exist<br>";
} else {
$b = $db->insert('fs_brands', array('bname' => $bname, 'visible' => $visible, 'bcno' => $bcno, 'page' => $brand_show_page));
if ($b) {
echo "Successfully inserted {$bname} <br>";
} else {
echo "Failed inserted {$bname} <br>";
}
}
}
}
$_SESSION['error'] = "List successfully uploaded<br>";
$redirect = 'uploadBrandPhoto.php';
} else {
echo " Category = {$bc_name} and gender = {$gender} not found <br>";
$_SESSION['error'] = " Category = {$bc_name} and gender = {$gender} not found <br>";
//$redirect = 'http://localhost/fs/new_fs/alphatest/admindashboard?p=uploadbrands';
$redirect = 'http://dev.fashionsponge.com/admindashboard?p=uploadbrands';
}
} else {
$_SESSION['error'] = "Please select where to display this {$brand_type}. <br>";
//$redirect = 'http://localhost/fs/new_fs/alphatest/admindashboard?p=uploadbrands';
$redirect = 'http://dev.fashionsponge.com/admindashboard?p=uploadbrands';
}
$mc->go($redirect);
示例7: resizeImage
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";
$ri = new resizeImage();
$mc = new myclass();
$mc->auto_detect_path();
$_SESSION['mno'] = $mc->get_cookie('mno', 136);
$mno = $mc->get_cookie('mno', 136);
if (!empty($_SESSION['adm_no'])) {
#can edit
} else {
if (empty($_SESSION['mno'])) {
$mc->go('home');
}
}
$_SESSION['post_a_look_is_look_upload_once_in_db'] = false;
// echo " this is is to be edited look = ".tobe_edite_look_id().'<br>';
if (is_edit_look(tobe_edite_look_id())) {
// echo "edite look";
$plno = tobe_edite_look_id();
$pl_info = $mc->posted_look_info($plno);
// print_r($pl_info);
// echo 'lnmae '.$pl_info['lookName'].' ldesc'.$pl_info['lookAbout'];
// echo " total tags = ".count($pl_info['pltags']);
// for ($i=0; $i < count($pl_info['pltags']) ; $i++) {
// $pl_info[$i][]
// echo " pltags = ";
// }
示例8: Facebook
<script>
FB.init({
appId: '528594163842974',
cookie: true,
status: true,
xfbml: true
});
</script><?php
require 'fs_folders/API/facebook-php-sdk-master/src/facebook.php';
$facebook = new Facebook(array(
'appId' => '528594163842974',
'secret' => 'a411c8a3c4361556491b2c2ddf38bf21',
));
$user = $facebook->getUser();
if ( empty($user) ) {
$mc->go( 'login' );
}
if ( $user ) {
try {
} catch (FacebookApiException $e) {
$mc->go( 'login' );
error_log($e);
$user = null;
}
}
if ($user) {
$logoutUrl = $facebook->getLogoutUrl();
} else {
$_SESSION['fb-login-status'] = 'failled';
$mc->go( 'login' );
}
示例9: myclass
<?php
session_start();
require '../../php_functions/myclass.php';
$mc = new myclass();
unset($_SESSION['adm_no']);
$mc->go("../../../adminlogin");
示例10:
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script src="fs_folders/labellok_items/js/plugin.js"></script>
<?php
if (empty($_SESSION['mno'])) {
$mc->go('../betatest/login.php');
}
$err="";
$errors=0;
// if($_SERVER["REQUEST_METHOD"] == "POST")
// {
if ( isset($_POST['uploadNow']) ) {
// echo " posted";
}
else {
// echo " not posted ";
}
示例11: myclass
<?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();
if (!empty($_SESSION['adm_no'])) {
$mc->go("admindashboard");
} else {
if (isset($_POST['admin_submit_login'])) {
$admin_username = $mc->clean_input($_POST['admin_username']);
$admin_password = $mc->clean_input($_POST['admin_password']);
$logIn = $mc->set_Login_admin($admin_username, $admin_password, array('tableName' => 'admin', 'userRow' => 'adm_user', 'passRow' => 'adm_pass'));
if ($logIn) {
// echo"login";
$_SESSION['adm_no'] = 1;
$mc->go("admindashboard");
} else {
$_SESSION['admin'] = 0;
// echo"Invalid info";
}
}
}
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="fs_folders/admin/css/adminlogin.css">
<title> admin | log in</title>
示例12: resizeImage
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");
$ri = new resizeImage ( );
$mc = new myclass();
$mc->auto_detect_path();
$_SESSION['mno'] = $mc->get_cookie( 'mno' , 136 );
$mno = $mc->get_cookie( 'mno' , 136 );
if (!empty($_SESSION['adm_no'])) {
#can edit
}
else if ($mno == 136 ) {
$mc->save_current_page_visited( 'post-look-upload' );
$mc->go('login');
}
echo "<div style='display:none' >";
$_SESSION['post_a_look_is_look_upload_once_in_db'] = false;
// echo " this is is to be edited look = ".tobe_edite_look_id().'<br>';
示例13: myclass
<?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();
if (!empty($_GET['code'])) {
$c = $_GET['code'];
// get code to db
$mi = selectV1('*', 'fs_members', array('identity_generated_code' => $c));
// update user account as verified
if (!empty($mi)) {
$mno = intval($mi[0]['mno']);
$mc->confirm_mem_account($mno);
if ($b) {
echo " successfully verified <br> ";
$_SESSION['temp_mno'] = $mno;
$_SESSION['lastpagevisited'] = 'account';
$mc->go('login-authentication.php');
} else {
echo " failed verified <br> ";
}
} else {
echo " code not found ";
}
} else {
echo " query required in the url <br>";
}
示例14: myclass
$page_viewer = "";
if (empty($page_viewer)) {
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();
}
//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 " );
示例15: array
$response = $mc->resize_image(
array(
'id' =>$table_id,
'source' => "$mc->ppic_orginal/$mno.jpg",
'destination1' => "$mc->ppic_profile/$mppno.jpg",
'destination2' => "$mc->ppic_thumbnail/$mppno.jpg",
'width1' => 420,
'width2' => 170
)
);
// $mc->set_notification_info( 'fs_members' , $mno , null , null , 0 , 'change-profile' );
// $mc->set_session_notification( $mno , 'fs_member_profile_pic' , $mppno , 'updated' , null , null , 'change-profile' , 0 );
$mc->set_notification_info( 'fs_member_profile_pic' , $mppno , null , null , null , 0 , 'change-profile' );
//$mc->go( $mc->get_username_by_mno( $mno ) );
$mc->go( 'home' );
break;
case 'profile-pic-welcome':
echo " profile pic <br>";
$mppno = $mc ->member_profile_pic_change( $mno );
// $mc->resize_profile_pic_thumbnail_and_profile( $mno , $mppno );
$response = $mc->resize_image(
array(
'id' =>$table_id,
'source' => "$mc->ppic_orginal/$mno.jpg",
'destination1' => "$mc->ppic_profile/$mppno.jpg",
'destination2' => "$mc->ppic_thumbnail/$mppno.jpg",
'width1' => 420,