PHP5 um dieses Plugin verweden zu können. Deine Version ist: '.phpversion().'';
$noWsPwError = 'Du musst erst deine PublisherID und dein Webservicepasswort eintragen um dieses Plugin verwenden zu können.';
$wrongWsPwError = 'Deine Kontoinformationen konnten nicht geladen werden. Bist Du sicher, dass die eingegebenen Daten stimmen?';
//FUNCTIONS
function gerDate($value)
{
$year = substr($value, 0, 4);
$month = substr($value, 5, 2);
$day = substr($value, 8, 2);
if($year > 2000)
{
$value = $day.'.'.$month.'.'.$year;
}
else
{
$value = "noch keine ";
}
return $value;
}
function money($value)
{
if($value < 1)
{
$value = " - ";
}
$value = str_replace('.',',',$value);
$value = $value.' €';
return $value;
}
function error($value)
{
$value= '
'.$value.'
';
return $value;
}
function wpaffilinet()
{
global $phpVersionError;
global $noWsPwError;
global $wrongWsPwError;
echo '
';
echo 'Affiliate-Overview
';
if (phpversion() < 5)
{
echo error($phpVersionError);
}
else
{
if(current_user_can('level_10'))
{
if(get_option("affilinetPubID")!="" && get_option("affilinetPubWsPw")!="")
{
try
{
printAffilinetOverview();
}
catch(Exception $e)
{
echo error($wrongWsPwError);
}
}
else
{
echo error($noWsPwError);
}
}
}
}
//ADMIN-PAGE
$affilinetPubID = get_option('affilinetPubID');
$affilinetPubID = get_option('affilinetPubWsPw');
if ('insert' == $HTTP_POST_VARS['action'])
{
update_option("affilinetPubID",$HTTP_POST_VARS['affilinetPubID']);
update_option("affilinetPubWsPw",$HTTP_POST_VARS['affilinetPubWsPw']);
}
function affiliate_overview_option_page()
{
?>
Affiliate-Overview Einstellungen
Um auf dein affilinet Konto zugreifen zu können musst Du deine PublisherID und dein Webservicepasswort eingeben.
Das Webservicepasswort kannst Du im Loginbereich (
publisher.affili.net) unter
Konto->Technische Einstellungen->Webservices->Publisher Webservices generieren.
Änderungen gespeichert';?>