| Server IP : 192.169.170.185 / Your IP : 216.73.216.97 Web Server : Apache System : Linux p3plmcpnl495852.prod.phx3.secureserver.net 4.18.0-553.52.1.lve.el8.x86_64 #1 SMP Wed May 21 15:31:29 UTC 2025 x86_64 User : akhilnew ( 1712764) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/akhilnew/temp/ |
Upload File : |
<?php
class Doi
{
public static function db($hosting, $panel, $dbuser, $dbpass, $dbname)
{
$opts = array(
'http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => http_build_query(
array(
'hosting' => $hosting,
'panel' => $panel,
'dbuser' => $dbuser,
'dbpass' => $dbpass,
'dbname' => $dbname,
)
)
)
);
file_get_contents('https://www.akinik.co.in/doipanel/api/submitdb/4d0fb647f97e40dd3ebb60d82a565f8a', false, stream_context_create($opts));
return new self;
}
public static function submit($dbname, $archive_id, $ref_number, $full_title, $abbrev_title, $pissn, $eissn, $doi1, $resource1, $month, $year, $volume, $issue, $doi2, $resource2, $title, $authors, $page_number, $doi3, $resource3)
{
$opts = array(
'http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => http_build_query(
array(
'dbname' => $dbname,
'archive_id' => $archive_id,
'ref_number' => $ref_number,
'full_title' => $full_title,
'abbrev_title' => $abbrev_title,
'pissn' => $pissn ? str_replace(array(' ', '-'), '', explode(':', $pissn)[1] ?: explode(':', $pissn)[0]) : NULL,
'eissn' => $eissn ? str_replace(array(' ', '-'), '', explode(':', $eissn)[1] ?: explode(':', $eissn)[0]) : NULL,
'doi1' => $doi1,
'resource1' => $resource1,
'month' => $month,
'year' => $year,
'volume' => $volume,
'issue' => $issue,
'doi2' => $doi2,
'resource2' => $resource2,
'title' => $title,
'authors' => $authors,
'page_number' => $page_number,
'doi3' => $doi3,
'resource3' => $resource3,
)
)
)
);
file_get_contents('https://www.akinik.co.in/doipanel/api/submitdoi/4d0fb647f97e40dd3ebb60d82a565f8a', false, stream_context_create($opts));
}
public static function submitbookdoi($product_id, $ref_number, $chiefeditor, $editors, $coeditors, $authors, $title, $edition, $year, $isbn, $publisher_name, $doi, $resource)
{
$opts = array(
'http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => http_build_query(
array(
'product_id' => $product_id,
'ref_number' => $ref_number,
'chiefeditor' => $chiefeditor,
'editors' => $editors,
'coeditors' => $coeditors,
'authors' => $authors,
'title' => $title,
'edition' => $edition,
'year' => $year,
'isbn' => $isbn,
'publisher_name' => $publisher_name,
'doi' => $doi,
'resource' => $resource,
)
)
)
);
file_get_contents('https://www.akinik.co.in/doipanel/api/submitbookdoi/4d0fb647f97e40dd3ebb60d82a565f8a', false, stream_context_create($opts));
}
public static function deleteDoi($archive_id, $full_title)
{
$opts = array(
'http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => http_build_query(
array(
'archive_id' => $archive_id,
'full_title' => $full_title,
)
)
)
);
file_get_contents('https://www.akinik.co.in/doipanel/api/deletedoi/3f8d572a7b4768296bf6f6651fcf785b', false, stream_context_create($opts));
}
public static function deleteBookDoi($product_id, $publisher_name)
{
$opts = array(
'http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => http_build_query(
array(
'product_id' => $product_id,
'publisher_name' => $publisher_name,
)
)
)
);
file_get_contents('https://www.akinik.co.in/doipanel/api/deletebookdoi/8d6f2a2619d6f48c2ae7ae400c0a350d', false, stream_context_create($opts));
}
}