コード例 #1
0
ファイル: fb_post.php プロジェクト: laiello/cartonbank
function make_post($post_id)
{
    global $theAccessToken, $app_id;
    global $cartoon_id, $cartoon_name, $cartoon_description, $cartoon_additional_description, $cartoon_image, $cartoon_kategoria, $cartoon_brand;
    get_cartoon($post_id);
    $cartoon_link = 'http://cartoonbank.ru/?page_id=29&cartoonid=' . $post_id;
    $apprequest_url = "https://graph.facebook.com/cartoonbank.of.russia/feed";
    $parameters = "?" . $theAccessToken . "&message=" . urlencode($cartoon_brand . ". " . $cartoon_kategoria) . "&name=" . urlencode(stripslashes($cartoon_name)) . "&description=" . urlencode(stripslashes($cartoon_description) . " [" . stripslashes($cartoon_additional_description) . "]") . "&link=" . urlencode($cartoon_link) . "&picture=http://cartoonbank.ru/wp-content/plugins/wp-shopping-cart/product_images/" . $cartoon_image . "&method=post" . "&caption=" . urlencode("New cartoon in Cartoonbank.ru");
    $myurl = $apprequest_url . $parameters;
    //echo $myurl;
    if ($cartoon_id != '') {
        $result = file_get_contents($myurl);
        //echo "result = " . $result;
    } else {
        //echo ('<br>no image to post');
    }
}
コード例 #2
0
ファイル: index - Copy.php プロジェクト: laiello/cartonbank
<?php

include "/home/www/cb3/ales/config.php";
global $imagepath;
$integer = rand(1, 10);
$fraction = rand(0, 10) / 10;
$rate = $integer + $fraction;
$rate = $integer;
$tagsarray = get_cartoon($rate);
?>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <script type="text/javascript" src="http://cartoonbank.ru/wp-includes/js/jquery/jquery.js"></script>
  <script type="text/javascript" src="http://cartoonbank.ru/wp-includes/js/jquery/jquery.cookie.js"></script>
  <title> Сравните два рисунка</title>
<script>
function login(){
    jQuery("body").append('<div class="modalOverlay">');
    jQuery('#login').center();
    jQuery('#login').css("visibility","visible");
    jQuery("#name input[name=username]").focus();
}
function loading(){
    jQuery("body").append('<div class="modalOverlay">');
    jQuery('#loading').center();
    jQuery('#loading').css("visibility","visible");
}
コード例 #3
0
ファイル: words.php プロジェクト: laiello/cartonbank
<?php

include "/home/www/cb3/ales/config.php";
global $imagepath;
if (isset($_GET['id']) && $_GET['id'] != '') {
    $id = urlencode(trim($_GET['id']));
} else {
    $id = '11354';
}
$tagsarray = get_cartoon($id);
//$tagsarray = array();
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <script type="text/javascript" src="http://cartoonbank.ru/wp-includes/js/jquery/jquery.js"></script>
  <title> Ассоциации </title>

<script language="JavaScript">
<!--
	function sendup(wrd,id)
   {
		var oldtext = jQuery('#currenttags').html();
		jQuery('#currenttags').html(oldtext + '<span class="td" onclick="senddown(this.innerText,' + id + ');var z=&quot;&quot;;jQuery(this).html(z);return false;">' + wrd + '</span>');
		wrd = encodeURIComponent(wrd);
		jQuery.post("http://cartoonbank.ru/ales/wordassociations/add_tag.php?id="+id+"&wrd="+wrd);
   }

	function senddown(wrd,id)
コード例 #4
0
ファイル: fb_post_db.php プロジェクト: laiello/cartonbank
function make_post($post_id)
{
    global $theAccessToken, $app_id, $app_id_target;
    global $cartoon_id, $cartoon_name, $cartoon_description, $cartoon_additional_description, $cartoon_image, $cartoon_kategoria, $cartoon_brand;
    //$apprequest_url = "https://graph.facebook.com/".$app_id_target."/feed";
    //$apprequest_url = "https://graph.facebook.com/feed";
    $apprequest_url = "https://graph.facebook.com/feed";
    get_cartoon($post_id);
    //$theMessage = 'Дубовский Александр';
    //$name = urlencode('Семья наркоманов');
    $caption = 'Cartoonbank';
    $description = $cartoon_kategoria . ": " . urlencode($cartoon_description) . " " . $cartoon_additional_description;
    $link = 'http://cartoonbank.ru/?page_id=29&cartoonid=' . $cartoon_id;
    $picture = 'http://cartoonbank.ru/wp-content/plugins/wp-shopping-cart/product_images/' . $cartoon_image;
    //$parameters = "?" . $theAccessToken . "&message=" . $cartoon_brand . "&method=post" . "&picture=" . $picture . "&link=" . $link . "&name=" . $cartoon_name . "&description=" . $description . "&caption=" . $caption;
    $parameters = "?" . $theAccessToken . "&message=777" . "&name=Name2";
    $myurl = $apprequest_url . $parameters;
    ee($myurl, "myurl");
    $result = file_get_contents($myurl);
    ee($result, "result");
}