File indexing completed on 2024-12-22 05:33:23

0001 <?php
0002 
0003 include("gfx3/lib.php");
0004 
0005 $prevpage = EPageProperties::get_previous_page();
0006 
0007 $contentid = EHeaderDataParser::db_get("id");
0008 
0009 $client = new OCSClient();
0010 $client->set_auth_info(EUser::nick(),EUser::password());
0011 $addfan = $client->post("v1/fan/remove/$contentid");
0012 
0013 ELog::pd($client->get_last_raw_result());
0014 
0015 if($addfan["ocs"]["meta"]["statuscode"]=="100"){
0016   header("Location: $prevpage");
0017 } else {
0018   ELog::pd($addfan);
0019 }
0020 
0021 ?>