Visit Website'); // Signature data function tssig_add_option_pages() { if (function_exists('add_options_page')) { add_options_page("3 Sheep Signatures", '3 Sheep Signatures', '', __FILE__, 'tssig_options_page'); } } function tssig_trim_sig($sig) { return trim($sig, "*"); } function tssig_alterCount($oldCount, $newCount) { if ($oldCount < $newCount) { for ($pos = $oldCount; $pos < $newCount; ++$pos) { add_option('tssig_data' . $pos ,'Written by %FIRST% %LAST% - Visit Website'); // Signature data update_option('tssig_data' . $pos ,'Written by %FIRST% %LAST% - Visit Website'); // Signature data } } else if ($oldCount > $newCount) { for ($pos = $newCount; $pos < $oldCount; ++$pos) { delete_option('tssig_data' . $pos); } } } function tssig_options_page() { global $tssig_version; $oldSigCount = get_option('tssig_count'); if (isset($_POST['set_defaults'])) { echo '
'; update_option('tssig_count', 1); update_option('tssig_data0', 'Written by %FIRST% %LAST% - Visit Website'); // Signature data echo 'Default Options Loaded!'; echo '
'; update_option('tssig_count', $sig_count); update_option('tssig_data0', '*' . (string)$_POST["tssig_data0"] . '*'); for ($pos = 1; $pos < $sig_count; ++$pos) { update_option('tssig_data' . $pos, '*' . (string)$_POST["tssig_data" . $pos] . '*'); } echo 'Configuration Updated!'; echo '