<?php chdir(constant("PHP_DIR")) or exit( "Fatal Runtime Error." );$toggleDisableStr = "<span class=\"toggleDisabledField\"><input type=\"checkbox\" name=\"prefix|change\" /></span></p>";$p2s = new clix_paid_to_share();$p2s_model = new clix_paid_to_share_model();if( !$p2s_model->is_enabled() ) { header("Location: " . ADMIN_URI . "plugins"); exit();}
$p2s->plugin_path;$p2s->asset_path;$errors = new Errors();$errors->setOpenWrapper("<p class=\"multi-errors\">");$errors->setCloseWrapper("</p>");echo "\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $p2s->asset_path . "css/clix_paid_to_share_admin.css\"/>\r\n<div class=\"clix-paid-to-share\">\r\n<h2>Paid To Share Plugin</h2>\r\n<a href=\"" . ADMIN_URI . "plugin&name=" . $plugin_name . "\">Links</a> |\r\n<a href=\"" . ADMIN_URI . "plugin&name=" . $plugin_name . "&actionp=recommended_hosts\">Recommended hosts</a> |\r\n<a href=\"" . ADMIN_URI . "plugin&name=" . $plugin_name . "&actionp=affiliate_networks\">Affiliate Networks</a> |\r\n<a href=\"" . ADMIN_URI . "plugin_settings&name=" . $plugin_name . "\">Settings</a> \r\n<hr>";switch( $_GET["actionp"] ) { case "recommended_hosts": $gurl = ADMIN_URI . "plugin&name=" . $plugin_name . "&actionp=recommended_hosts&p2stype="; echo "<a href=\"" . $gurl . "browse\">Browse</a> |\r\n <a href=\"" . $gurl . "create\">Create</a>\r\n "; require($plugin_path . "admin_pages/recommended_hosts.php"); break; case "affiliate_networks": $gurl = ADMIN_URI . "plugin&name=" . $plugin_name . "&actionp=affiliate_networks&p2stype="; echo "\r\n <a href=\"" . $gurl . "browse\">Affiliate Networks</a> |\r\n <a href=\"" . $gurl . "create\">Add Affiliate Network</a> |\r\n <a href=\"" . $gurl . "postbacklog\">Postback Log</a> |\r\n <a href=\"" . $gurl . "transactionlog\">Transaction Log</a>"; require($plugin_path . "admin_pages/networks.php"); break; case "links": default: $gurl = ADMIN_URI . "plugin&name=" . $plugin_name . "&actionp=links&p2stype="; echo "<a href=\"" . $gurl . "browse\">Browse</a> |\r\n <a href=\"" . $gurl . "create\">Create</a>\r\n "; require($plugin_path . "admin_pages/links.php"); break;}echo "</div>";