Ejemplo n.º 1
0
<?php

BTXSocialFeed::sync();
$admin->growl("Social Feed", "Synced Stream");
BigTree::redirect(MODULE_ROOT);
Ejemplo n.º 2
0
<?php

BigTree::globalizePOSTVars();
if ($type == "Location") {
    list($lat, $lon) = explode(" ", $query);
    $query = array("latitude" => $lat, "longitude" => $lon, "radius" => $radius);
}
$id = BigTreeAutoModule::createItem("btx_social_feed_queries", array("service" => $service, "type" => $type, "query" => $query, "cached_info" => $cached_info), $category_parser);
BTXSocialFeed::sync($id);
$admin->growl("Social Feed", "Created Query");
BigTree::redirect(MODULE_ROOT . "view-queries/");
Ejemplo n.º 3
0
<?php

BTXSocialFeed::deleteQuery($bigtree["commands"][0]);
$admin->growl("Social Feed", "Deleted Query");
BigTree::redirect(MODULE_ROOT . "view-queries/");
Ejemplo n.º 4
0
<?php

BigTree::globalizePOSTVars();
if ($type == "Location") {
    list($lat, $lon) = explode(" ", $query);
    $query = json_encode(array("latitude" => $lat, "longitude" => $lon, "radius" => $radius));
}
BigTreeAutoModule::updateItem("btx_social_feed_queries", $bigtree["commands"][0], array("service" => $service, "type" => $type, "query" => $query, "cached_info" => $_POST["cached_info"]), $category_parser);
BTXSocialFeed::sync($bigtree["commands"][0]);
$admin->growl("Social Feed", "Updated Query");
BigTree::redirect(MODULE_ROOT . "view-queries/");