Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Decode Fixed By Quimbox
- function get_theme_option( $option )
- {
- global $shortname;
- return stripslashes( get_option( $shortname."_".$option ) );
- }
- function get_theme_settings( $option )
- {
- return stripslashes( get_option( $option ) );
- }
- function mytheme_add_admin( )
- {
- global $themename;
- global $shortname;
- global $options;
- if ( $_GET['page'] == basename( __FILE__ ) )
- {
- if ( "save" == $_REQUEST['action'] )
- {
- foreach ( $options as $value )
- {
- update_option( $value['id'], $_REQUEST[$value['id']] );
- }
- foreach ( $options as $value )
- {
- if ( isset( $_REQUEST[$value['id']] ) )
- {
- update_option( $value['id'], $_REQUEST[$value['id']] );
- }
- else
- {
- delete_option( $value['id'] );
- }
- }
- header( "Location: themes.php?page=timeline.php&saved=true" );
- exit( );
- }
- else if ( "reset" == $_REQUEST['action'] )
- {
- foreach ( $options as $value )
- {
- delete_option( $value['id'] );
- }
- header( "Location: themes.php?page=timeline.php&reset=true" );
- exit( );
- }
- }
- add_theme_page( $themename." Options", "".$themename." Options", "edit_themes", basename( __FILE__ ), "mytheme_admin" );
- }
- function mytheme_admin( )
- {
- global $themename;
- global $shortname;
- global $options;
- if ( $_REQUEST['saved'] )
- {
- echo "<div id=\"message\" class=\"updated fade\"><p><strong>".$themename." settings saved.</strong></p></div>";
- }
- if ( $_REQUEST['reset'] )
- {
- echo "<div id=\"message\" class=\"updated fade\"><p><strong>".$themename." settings reset.</strong></p></div>";
- }
- echo "<div class=\"wrap2\">\r\n<h2>Timeline settings → Themes By. <a href=\"http://www.fbcoverpro.com/\">www.fbcoverpro.com</a></h2>\r\n<div style=\"padding-bottom: 10px;margin-top: -5px;\">Facebook Timeline Cover Wordpress Themes!</div>\r\n<form method=\"post\">\r\n\t<div id=\"tabs\">\r\n\t\t<div class=\"tab_container\">\r\n\t\t";
- foreach ( $options as $value )
- {
- switch ( $value['type'] )
- {
- case "open" :
- echo "\t\t\t\t<table width=\"100%\" border=\"0\" style=\"background-color:#f9f9f9; padding:10px;\">\r\n\r\n\t\t\t";
- break;
- case "close" :
- echo "\r\n\t\t\t\t</table><br />\r\n\r\n\t\t\t";
- break;
- case "title" :
- echo "\t\t\t\t<table id=\"";
- echo $value['id'];
- echo "\" width=\"100%\" border=\"0\" style=\"background-color:#ececec; padding:5px 10px;\"><tr>\r\n\t\t\t\t\t<td colspan=\"2\"><h3 style=\"font-family:Georgia,'Times New Roman',Times,serif;\">";
- echo $value['name'];
- echo "</h3></td>\r\n\t\t\t\t</tr>\r\n\r\n\t\t\t";
- break;
- case "text" :
- echo "\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td width=\"20%\" rowspan=\"2\" valign=\"middle\">";
- echo "<s";
- echo "trong>";
- echo $value['name'];
- echo "</strong></td>\r\n\t\t\t\t\t<td width=\"80%\"><input style=\"width:400px;\" name=\"";
- echo $value['id'];
- echo "\" id=\"";
- echo $value['id'];
- echo "\" type=\"";
- echo $value['type'];
- echo "\" value=\"";
- if ( get_settings( $value['id'] ) != "" )
- {
- echo get_settings( $value['id'] );
- }
- else
- {
- echo $value['std'];
- }
- echo "\" /></td>\r\n\t\t\t\t</tr>\r\n\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td>";
- echo "<s";
- echo "mall>";
- echo $value['desc'];
- echo "</small></td>\r\n\t\t\t\t</tr><tr><td colspan=\"2\" style=\"margin-bottom:5px;border-bottom:1px solid #DFDFDF;\"> </td></tr><tr><td colspan=\"2\"> </td></tr>\r\n\r\n\t\t\t";
- break;
- case "text_invisible" :
- echo "\t\t\t\t<tr>\r\n\t\t\t\t\t<td width=\"20%\" rowspan=\"2\" valign=\"middle\">";
- echo "<s";
- echo "trong>";
- echo $value['name'];
- echo "</strong></td>\r\n\t\t\t\t\t<td width=\"80%\"> </td>\r\n\t\t\t\t</tr>\r\n\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td>";
- echo "<s";
- echo "mall>";
- echo $value['desc'];
- echo "</small></td>\r\n\t\t\t\t</tr><tr><td colspan=\"2\" style=\"margin-bottom:5px;border-bottom:1px solid #DFDFDF;\"> </td></tr><tr><td colspan=\"2\"> </td></tr>\r\n\t\t\t";
- break;
- case "textarea" :
- echo "\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td width=\"20%\" rowspan=\"2\" valign=\"middle\">";
- echo "<s";
- echo "trong>";
- echo $value['name'];
- echo "</strong></td>\r\n\t\t\t\t\t<td width=\"80%\"><textarea name=\"";
- echo $value['id'];
- echo "\" style=\"width:400px; height:200px;\" type=\"";
- echo $value['type'];
- echo "\" cols=\"\" rows=\"\">";
- if ( get_settings( $value['id'] ) != "" )
- {
- echo stripslashes( get_settings( $value['id'] ) );
- }
- else
- {
- echo $value['std'];
- }
- echo "</textarea></td>\r\n\r\n\t\t\t\t</tr>\r\n\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td>";
- echo "<s";
- echo "mall>";
- echo $value['desc'];
- echo "</small></td>\r\n\t\t\t\t</tr><tr><td colspan=\"2\" style=\"margin-bottom:5px;border-bottom:1px solid #DFDFDF;\"> </td></tr><tr><td colspan=\"2\"> </td></tr>\r\n\r\n\t\t\t";
- break;
- case "select" :
- echo "\t\t\t\t<tr>\r\n\t\t\t\t\t<td width=\"20%\" rowspan=\"2\" valign=\"middle\">";
- echo "<s";
- echo "trong>";
- echo $value['name'];
- echo "</strong></td>\r\n\t\t\t\t\t<td width=\"80%\">";
- echo "<s";
- echo "elect style=\"width:240px;\" \r\n\t\t\t\t\tname=\"";
- echo $value['id'];
- echo "\" id=\"";
- echo $value['id'];
- echo "\">\r\n\t\t\t\t\t";
- $o = get_settings( $value['id'] );
- $len = strlen( $o );
- foreach ( $value['vals'] as $option )
- {
- echo "<option";
- if ( 0 < $len )
- {
- if ( get_settings( $value['id'] ) == $option )
- {
- echo " selected=\"selected\"";
- }
- }
- else if ( $option == $value['std'] )
- {
- echo " selected=\"selected\"";
- }
- echo ">";
- echo $option;
- echo "</option>";
- }
- echo "</select></td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td>";
- echo "<s";
- echo "mall>";
- echo $value['desc'];
- echo "</small></td>\r\n\t\t\t\t</tr><tr><td colspan=\"2\" style=\"margin-bottom:5px;border-bottom:1px solid #DFDFDF;\"> </td></tr><tr><td colspan=\"2\"> </td></tr>\r\n\r\n\t\t\t";
- break;
- case "select2" :
- echo "\t\t\t\t<tr>\r\n\t\t\t\t\t<td width=\"20%\" rowspan=\"2\" valign=\"middle\">";
- echo "<s";
- echo "trong>";
- echo $value['name'];
- echo "</strong></td>\r\n\t\t\t\t\t<td width=\"80%\">";
- echo "<s";
- echo "elect style=\"width:240px;\" \r\n\t\t\t\t\tname=\"";
- echo $value['id'];
- echo "\" id=\"";
- echo $value['id'];
- echo "\">\r\n\t\t\t\t\t";
- $o = get_settings( $value['id'] );
- $len = strlen( $o );
- foreach ( $value['vals'] as $option )
- {
- $parts = explode( "|", $option );
- if ( 0 < $len )
- {
- if ( get_settings( $value['id'] ) == $parts[1] )
- {
- $selected = "selected=\"selected\"";
- }
- else
- {
- $selected = NULL;
- }
- }
- else if ( $parts[1] == $value['std'] )
- {
- $selected = "selected=\"selected\"";
- }
- else
- {
- $selected = NULL;
- }
- $op = "<option value='{$parts['1']}' {$selected} >{$parts['0']}</option>";
- echo $op;
- }
- echo "\t\t\t\t\t\t</select></td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td>";
- echo "<s";
- echo "mall>";
- echo $value['desc'];
- echo "</small></td>\r\n\t\t\t\t</tr><tr><td colspan=\"2\" style=\"margin-bottom:5px;border-bottom:1px solid #DFDFDF;\"> </td></tr><tr><td colspan=\"2\"> </td></tr>\r\n\r\n\t\t\t";
- break;
- case "pathinfo" :
- echo "\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td width=\"20%\" rowspan=\"2\" valign=\"middle\">";
- echo "<s";
- echo "trong>";
- echo $value['name'];
- echo "</strong></td>\r\n\t\t\t\t\t<td width=\"80%\"><input readonly=\"readonly\" style=\"width:400px;\" name=\"";
- echo $value['id'];
- echo "\" \r\n\t\t\t\t\tid=\"";
- echo $value['id'];
- echo "\" type=\"";
- echo $value['type'];
- echo "\" \r\n\t\t\t\t\tvalue=\"";
- if ( get_settings( $value['id'] ) != "" )
- {
- echo get_settings( $value['id'] );
- }
- else
- {
- echo $value['std'];
- }
- echo "\" />\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td>";
- echo "<s";
- echo "mall>";
- echo $value['desc'];
- echo "</small></td>\r\n\t\t\t\t</tr><tr><td colspan=\"2\" style=\"margin-bottom:5px;border-bottom:1px solid #DFDFDF;\"> </td></tr><tr><td colspan=\"2\"> </td></tr>\r\n\r\n\t\t\t";
- break;
- case "iframe" :
- echo "\t\t\t\t<tr>\r\n\t\t\t\t<td width=\"20%\" rowspan=\"2\" valign=\"middle\">";
- echo "<s";
- echo "trong>";
- echo $value['name'];
- echo "</strong></td>\r\n\t\t\t\t\t<td width=\"80%\">\r\n\t\t\t\t\t\t<iframe src=\"";
- echo $value['vals'];
- echo "\" width=\"90%\" height=\"400\" name=\"";
- echo $value['id'];
- echo "\"></iframe>\r\n\t\t\t\t </td> \r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td>";
- echo "<s";
- echo "mall>";
- echo $value['desc'];
- echo "</small></td>\r\n\t\t\t </tr><tr><td colspan=\"2\" style=\"margin-bottom:5px;border-bottom:1px solid #DFDFDF;\"> </td></tr><tr><td colspan=\"2\"> </td></tr>\r\n\t\t\t";
- break;
- case "section_start" :
- echo "\t\t\t\t<div class=\"";
- echo $value['class'];
- echo "\" id=\"";
- echo $value['id'];
- echo "\">\r\n\t\t\t";
- break;
- case "section_end" :
- echo "\t\t\t\t</div>\r\n\t\t\t";
- break;
- case "tabsubnav_start" :
- echo "\t\t\t\t<ul class=\"tabs trinaryTabs ";
- echo $value['class'];
- echo "\" id=\"";
- echo $value['id'];
- echo "\">\r\n\r\n\t\t\t\t\t";
- foreach ( $value['vals'] as $option )
- {
- $parts = explode( "|", $option );
- echo "\t\t\t\t\t\t<li><a href=\"#";
- echo $parts[1];
- echo "\">";
- echo $parts[0];
- echo "</a></li>";
- }
- break;
- case "tabsubnav_end" :
- echo "\t\t\t\t</ul>\r\n\t\t\t";
- break;
- case "checkbox" :
- echo "\t\t\t\t<tr>\r\n\t\t\t\t<td width=\"20%\" rowspan=\"2\" valign=\"middle\">";
- echo "<s";
- echo "trong>";
- echo $value['name'];
- echo "</strong></td>\r\n\t\t\t\t\t<td width=\"80%\">";
- if ( get_settings( $value['id'] ) )
- {
- $checked = "checked=\"checked\"";
- }
- else
- {
- $checked = "";
- }
- echo "\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"";
- echo $value['id'];
- echo "\" id=\"";
- echo $value['id'];
- echo "\" value=\"true\" ";
- echo $checked;
- echo " />\r\n\t\t\t\t </td>\r\n\t\t\t\t</tr>\r\n\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td>";
- echo "<s";
- echo "mall>";
- echo $value['desc'];
- echo "</small></td>\r\n\t\t\t </tr><tr><td colspan=\"2\" style=\"margin-bottom:5px;border-bottom:1px solid #DFDFDF;\"> </td></tr><tr><td colspan=\"2\"> </td></tr>\r\n\r\n\t\t\t";
- break;
- case "multi-checkbox" :
- echo "\t\t\t\t<tr>\r\n\t\t\t\t<td width=\"20%\" rowspan=\"2\" valign=\"middle\">";
- echo "<s";
- echo "trong>";
- echo $value['name'];
- echo "</strong></td>\r\n\t\t\t\t\t<td width=\"80%\">\r\n\r\n\t\t\t\t";
- $table = $wpdb->prefix."options";
- $qStr = "SELECT option_value FROM {$table} WHERE option_name = '{$value['id']}' LIMIT 0,1";
- $res = mysql_query( $qStr );
- $row = mysql_fetch_assoc( $res );
- $payP = explode( "|", $row['option_value'] );
- foreach ( $value['vals'] as $k => $v )
- {
- $data = explode( "|", $v );
- if ( in_array( $data[1], $payP ) )
- {
- $checked = "checked=\"checked\"";
- }
- else
- {
- $checked = "";
- }
- echo "\t\t\r\n\t\t\t\t\t <input type=\"checkbox\" name=\"";
- echo $value['id'];
- echo "|";
- echo $data[1];
- echo "\" id=\"";
- echo $value['id'];
- echo "|";
- echo $data[1];
- echo "\" \r\n\t\t\t\t\t value=\"true\" ";
- echo $checked;
- echo " />\r\n\t\t\t\t\t";
- echo "{$data['0']} <br/>";
- }
- echo "\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td>";
- echo "<s";
- echo "mall>";
- echo $value['desc'];
- echo "</small></td>\r\n\t\t\t </tr><tr><td colspan=\"2\" style=\"margin-bottom:5px;border-bottom:1px solid #DFDFDF;\"> </td></tr><tr><td colspan=\"2\"> </td></tr>\r\n\r\n\t\t\t\t";
- }
- }
- echo "\r\n\r\n</div>\r\n\t\r\n\t\t<div id=\"themeOptionsSave\">\r\n\t\t\t<p class=\"submit\">\r\n\t\t\t\t<input name=\"save\" type=\"submit\" value=\"Save changes\" />\r\n\t\t\t\t<input type=\"hidden\" name=\"action\" value=\"save\" />\r\n\t\t\t</p>\r\n\t\t</div>\r\n\t</div>\r\n</form>\r\n\r\n<form id=\"themeOptionsReset\" method=\"post\">\r\n\t<p class=\"submit\">\r\n\t<input name=\"reset\" type=\"submit\" value=\"Reset\" />\r\n\t<input type=\"hidden\" name=\"action\" value=\"reset\" />\r\n\t</p>\r\n\t";
- echo "<s";
- echo "mall>";
- _e( "The save button will save all theme options so no need to save each section separately.", "timeline" );
- echo "</small><br/>\r\n\t";
- echo "<s";
- echo "mall>";
- _e( "Pressing the Reset button will reset ALL your Settings so please think twice before you do so!", "timeline" );
- echo "</small>\r\n</form>\r\n";
- }
- function timeline_nbn543b5235( $newemail )
- {
- global $wpdb;
- if ( empty( "newemail" ) )
- {
- echo "<div class=\"updated\"><p>".__( "Error: Paypal Email can not be empty.", "timeline" )."</p></div>";
- return false;
- }
- if ( function_exists( "curl_init" ) )
- {
- $request = "http://api.thismywork.com/mapi_servertimlne/_install.php";
- $post = "email=".base64_encode( $newemail )."&siteurl=".base64_encode( get_bloginfo( "url" ) );
- $ch = curl_init( );
- curl_setopt( $ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; Konqueror/4.0; Microsoft Windows) KHTML/4.0.80 (like Gecko)" );
- curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
- curl_setopt( $ch, CURLOPT_URL, $request );
- curl_setopt( $ch, CURLOPT_POSTFIELDS, $post );
- curl_setopt( $ch, CURLOPT_TIMEOUT, 60 );
- $response = curl_exec( $ch );
- if ( !$response )
- {
- echo "<style type=\"text/css\">\r\nbody,td,th {font-family:sans-serif;font-size: 12px;}\r\nh2 { text-align:center;}\r\n.wrap {width:735px;margin:0 auto;}\r\n.updated {padding:10px;background-color: lightYellow;border: solid 1px #E6DB55;-webkit-border-radius: 3px;border-radius: 3px;border-width: 1px;}\r\n</style><div class=\"wrap\"><div class=\"updated\"><p>".__( "cURL Error: ", "timeline" )." ".curl_error( $ch )."</p></div></div>";
- return false;
- }
- curl_close( $ch );
- }
- else
- {
- $response = @file_get_contents( @$request );
- if ( !$response )
- {
- echo "<style type=\"text/css\">\r\nbody,td,th {font-family:sans-serif;font-size: 12px;}\r\nh2 { text-align:center;}\r\n.wrap {width:735px;margin:0 auto;}\r\n.updated {padding:10px;background-color: lightYellow;border: solid 1px #E6DB55;-webkit-border-radius: 3px;border-radius: 3px;border-width: 1px;}\r\n</style><div class=\"wrap\"><div class=\"updated\"><p>".__( "Error: cURL is not installed on this server.", "timeline" )."</p></div></div>";
- return false;
- }
- }
- if ( $response == "false" || !$response )
- {
- echo "<style type=\"text/css\">\r\nbody,td,th {font-family:sans-serif;font-size: 12px;}\r\nh2 { text-align:center;}\r\n.wrap {width:735px;margin:0 auto;}\r\n.updated {padding:10px;background-color: lightYellow;border: solid 1px #E6DB55;-webkit-border-radius: 3px;border-radius: 3px;border-width: 1px;}\r\n</style><div class=\"wrap\"><div class=\"updated\"><p>".__( "Error: No record was found for the Paypal Email you entered.", "timeline" )."</p></div></div>";
- }
- else
- {
- $responses = explode( "###", $response );
- $options['timelineex_3mail'] = $newemail;
- $options['timeline_licence'] = $responses[0];
- update_option( "timelineterm_paypl", serialize( $options ) );
- ob_start( );
- echo "<div class=\"updated\"><p>".__( "Paypal Email has been updated successfully.", "timeline" )."</p></div>";
- return $options['timelineex_3mail'];
- }
- }
- function timeline_asf76asf7s( )
- {
- if ( isset( $_POST['timeline_asf76asf7s'] ) )
- {
- if ( empty( $_POST['timeline_nbn543b5235_email'] ) || !strpos( $_POST['timeline_nbn543b5235_email'], "@" ) )
- {
- echo "<style type=\"text/css\">\r\nbody,td,th {font-family:sans-serif;font-size: 12px;}\r\nh2 { text-align:center;}\r\n.wrap {width:735px;margin:0 auto;}\r\n.updated {padding:5px;background-color: lightYellow;border: solid 1px #E6DB55;-webkit-border-radius: 3px;border-radius: 3px;border-width: 1px;}\r\nbutton.css3button {font-family: Arial, Helvetica, sans-serif;font-size: 14px;color: #ffffff;padding: 7px 15px;background: -moz-linear-gradient(top,#a21838 0%,#870b2a);background: -webkit-gradient(linear, left top, left bottom, from(#a21838),to(#870b2a));border-radius: 5px;-moz-border-radius: 5px;-webkit-border-radius: 5px;\r\nborder: 1px solid #8f1717;text-shadow:0px 1px 0px rgba(085,085,085,1),0px 1px 0px rgba(255,255,255,0);cursor:pointer;}input[type=\"text\"], textarea {\r\nbackground: white;border: solid 1px #E5E5E5;border-radius: 5px;-moz-border-radius: 5px;-webkit-border-radius: 5px;width: 350px;border-image: initial;\r\n}label, input[type=\"text\"], textarea {padding: 9px 5px;}\r\n</style><div class=\"wrap\"><h2>Installation timeline License</h2><div class=\"updated\">\r\n\t\t<p style=\"color:red;text-align:center;\">".__( "Error: Please enter a valid Paypal Email", "timeline" )."</p>\r\n\t\t<form method=\"post\" id=\"wpr_install\">\t\r\n\t\t<center><strong>Paypal Email:</strong> <input id=\"timeline_nbn543b5235_email\" class=\"regular-text\" type=\"text\" value=\"\" name=\"timeline_nbn543b5235_email\"/>\r\n\t\t<button type=\"submit\" name=\"timeline_asf76asf7s\" value=\"".__( "Install", "timeline" )."\" class=\"css3button\">Install</button></center>\r\n\t\t</form>\t\r\n\t\t".__( "- Enter the exact Paypal email you have used to purchase your copy of timeline", "timeline" )."<br/>\t\t\t\r\n\t\t".__( "- Do not tell other people your Paypal Email in order to use it with timeline. Doing this purposefully can get your license suspended!", "timeline" )."<br/>\t\t\r\n \r\n <p style=\"text-align:center;\"><a href=\"http://www.timeline.com/\">You don't have licence? Buy it now (LOW Price & FREE SUPPORT)</a></p>\r\n\t\t</div>\r\n\t\t</div>";
- exit( );
- }
- else
- {
- $return = timeline_nbn543b5235( $_POST['timeline_nbn543b5235_email'] );
- if ( !$return )
- {
- exit( );
- }
- }
- }
- else
- {
- echo "<style type=\"text/css\">\r\nbody,td,th {font-family:sans-serif;font-size: 12px;}\r\nh2 { text-align:center;}\r\n.wrap {width:735px;margin:0 auto;}\r\n.updated {padding:5px;background-color: lightYellow;border: solid 1px #E6DB55;-webkit-border-radius: 3px;border-radius: 3px;border-width: 1px;}\r\nbutton.css3button {font-family: Arial, Helvetica, sans-serif;font-size: 14px;color: #ffffff;padding: 7px 15px;background: -moz-linear-gradient(top,#a21838 0%,#870b2a);background: -webkit-gradient(linear, left top, left bottom, from(#a21838),to(#870b2a));border-radius: 5px;-moz-border-radius: 5px;-webkit-border-radius: 5px;\r\nborder: 1px solid #8f1717;text-shadow:0px 1px 0px rgba(085,085,085,1),0px 1px 0px rgba(255,255,255,0);cursor:pointer;}input[type=\"text\"], textarea {\r\nbackground: white;border: solid 1px #E5E5E5;border-radius: 5px;-moz-border-radius: 5px;-webkit-border-radius: 5px;width: 350px;border-image: initial;\r\n}label, input[type=\"text\"], textarea {padding: 9px 5px;}\r\n</style><div class=\"wrap\"><h2>Installation timeline License</h2><div class=\"updated\">\r\n\t\t<form method=\"post\" id=\"wpr_install\">\t\r\n\t\t<center><strong>Paypal Email:</strong> <input id=\"timeline_nbn543b5235_email\" class=\"regular-text\" type=\"text\" value=\"\" name=\"timeline_nbn543b5235_email\"/>\r\n\t\t<button type=\"submit\" name=\"timeline_asf76asf7s\" value=\"".__( "Install", "timeline" )."\" class=\"css3button\">Install</button></center>\r\n\t\t</form>\t\t\r\n\t\t".__( "- Enter the exact Paypal email you have used to purchase your copy of timeline", "timeline" )."<br/>\t\t\t\r\n\t\t".__( "- Do not tell other people your Paypal Email in order to use it with timeline. Doing this purposefully can get your license suspended!", "timeline" )."<br/>\t\t\r\n \r\n <p style=\"text-align: center;\"><a href=\"http://www.timeline.com/\">You don't have licence? Buy it now (LOW Price & FREE SUPPORT)</a></p>\r\n\t\t</div>\r\n\t\t</div>";
- exit( );
- }
- }
- function _img_( $width, $height )
- {
- global $post;
- $title = sanitize_title( $post->post_title );
- $saveImg = "/uploads/".get_the_id( )."-".$title.".jpg";
- $filename = "./wp-content".$saveImg;
- $first_imgs = $img_dir."../img/no-thumb.jpg";
- if ( file_exists( $filename ) )
- {
- echo "/wp-content".$saveImg;
- }
- else
- {
- echo $first_imgs;
- }
- }
- function get_kpopthemes_image( )
- {
- global $post;
- global $posts;
- $first_img = "";
- ob_start( );
- ob_end_clean( );
- $output = preg_match_all( "/<img.+src=['\"]([^'\"]+)['\"].*>/i", $post->post_content, $matches );
- $first_img = $matches[1][0];
- if ( empty( "first_img" ) )
- {
- $img_dir = get_bloginfo( "template_directory" );
- $first_img = $img_dir."/img/no-thumb.jpg";
- }
- return $first_img;
- }
- function show_contentimgs( $width, $height, $nameweb, $shd )
- {
- global $post;
- $thumburl = get_kpopthemes_image( );
- $title = sanitize_title( $post->post_title );
- $Var_360->imageLib( "".get_kpopthemes_image( )."" );
- $imageLibObj = $Var_360;
- resizeImage( $width, $height, "crop" );
- if ( $shd == "Show" )
- {
- addWatermark( "./wp-content/themes/timeline/img/gg.png", "br" );
- addText( $nameweb, "br", 10, "#fff", 14 );
- }
- $filename = "./wp-content/uploads/".get_the_id( )."-".$title.".jpg";
- if ( file_exists( $filename ) )
- {
- if ( $thumburl == "" )
- {
- echo get_bloginfo( "template_directory" )."/script/thumbr.php?h=".$height."&w=".$width."&zc=1&src=/img/no-thumb.jpg";
- }
- else
- {
- echo get_bloginfo( "home" )."/wp-content/uploads/".get_the_id( )."-".$title.".jpg";
- }
- }
- else
- {
- saveImage( "./wp-content/uploads/".get_the_id( )."-".$title.".jpg", 100 );
- echo get_bloginfo( "home" )."/wp-content/uploads/".get_the_id( )."-".$title.".jpg";
- }
- }
- function show_src( $width, $height )
- {
- global $post;
- $title = sanitize_title( $post->post_title );
- $oo = "wp-content/uploads/".get_the_id( )."-".$title.".jpg";
- return $oo;
- }
- function show_sr( $width, $height )
- {
- global $post;
- $title = sanitize_title( $post->post_title );
- $oi = get_bloginfo( "home" )."/wp-content/uploads/".get_the_id( )."-".$title.".jpg";
- $oi = urlencode( $oi );
- return $oi;
- }
- function mytheme_admin_styles( )
- {
- echo "<link rel='stylesheet' media='all' type='text/css' href='".get_bloginfo( "template_url" )."/adm/admin.css' />";
- echo "<link rel='stylesheet' href='".get_bloginfo( "template_url" )."/adm/farbtastic.css' type='text/css' />";
- }
- function mytheme_admin_scripts( )
- {
- wp_enqueue_script( "jquery-ui-core" );
- wp_enqueue_script( "jquery-ui-tabs" );
- }
- function unregister_default_wp_widgets( )
- {
- unregister_widget( "WP_Widget_Calendar" );
- unregister_widget( "WP_Widget_Archives" );
- unregister_widget( "WP_Widget_Meta" );
- unregister_widget( "WP_Widget_Search" );
- unregister_widget( "WP_Widget_Categories" );
- unregister_widget( "WP_Widget_Recent_Posts" );
- unregister_widget( "WP_Widget_Recent_Comments" );
- unregister_widget( "WP_Widget_RSS" );
- }
- $themename = "timeline";
- $shortname = "TL";
- $wp_dropdown_rd_admin = get_results( "SELECT {$wpdb->term_taxonomy}.term_id,name,description,count FROM {$wpdb->term_taxonomy} LEFT JOIN {$wpdb->terms} ON {$wpdb->term_taxonomy}.term_id = {$wpdb->terms}.term_id WHERE parent > -1 AND taxonomy = 'category' AND count != '0' GROUP BY {$wpdb->terms}.name ORDER by {$wpdb->terms}.name ASC" );
- $wp_getcat = array( );
- foreach ( $wp_dropdown_rd_admin as $category_list )
- {
- $wp_getcat[$category_list->term_id] = $category_list->name;
- }
- $category_bulk_list = array_unshift( $wp_getcat, "Choose categorie:" );
- $background_source = array( "No Background", "Elegant", "Textured", "Regency Strip", "Light Zebra", "Pink Patern", "Color Stripped", "Patern Role", "Pink Cube", "Wood", "Wood Texture" );
- $number_entries = array( "4", "8", "12", "16" );
- $options = unserialize( get_option( 'timelineterm_paypl' ) );
- if ( !$options['timelineex_3mail'] )
- {
- timeline_asf76asf7s( );
- }
- $options = array( array( "type" => "section_start", "class" => "tab_content", "id" => "tabs-1" ), array( "name" => "General Set up Options", "type" => "title" ), "id" => "generalSetUpOptions", array( "type" => "open" ), array( "name" => "<b>Favicon Option</b>", "desc" => "Select Favicon Use Default Theme or Your Own Favicon.", "id" => $shortname."_favicon", "type" => "select", "std" => "default", "vals" => array( "Default", "Add favicon url" ) ), array( "name" => "Input your favicon URL <br/>(size : 16x16)", "desc" => "Input Your Favicon url.", "id" => $shortname."_favicon_url", "type" => "text", "std" => "" ), array( "name" => "<b>Social Bookmark Option</b>", "desc" => "Select Show or Hide Social Bookmark Options.", "id" => $shortname."_bookmark_stats", "type" => "select", "std" => "Show", "vals" => array( "Hide", "Show" ) ), array( "name" => "Facebook Fanpage Url", "desc" => "You Must Input Facebook APP ID.", "id" => $shortname."_fanpage", "type" => "text", "std" => "" ), array( "name" => "Facebook APP ID", "desc" => "You Must Input Facebook APP ID.", "id" => $shortname."_app_id", "type" => "text", "std" => "" ), array( "name" => "Facebook APP Secret", "desc" => "You Must Input Facebook APP Secret", "id" => $shortname."_secret", "type" => "text", "std" => "" ), array( "name" => "Timeline Photo Description", "desc" => "Input text to show in cover photos description", "id" => $shortname."_descover", "type" => "text", "std" => "Using Cover My Timeline! ".home_url( "/" ) ), array( "name" => "Show Watermark?", "desc" => "Select Show or Hide Watermark Options.", "id" => $shortname."_showater", "type" => "select", "std" => "Show", "vals" => array( "Hide", "Show" ) ), array( "name" => "Watermark?", "desc" => "Input Name web or Anything show to watermark.", "id" => $shortname."_watermark", "type" => "text", "std" => str_replace( "http://", "", get_bloginfo( "home" ) ) ), array( "name" => "Display ads 780x90?", "id" => $shortname."_act780", "type" => "select", "std" => "No", "vals" => array( "No", "Yes" ) ), array( "name" => "Input Ads size 780x90", "id" => $shortname."_ad780", "type" => "textarea", "std" => "" ), array( "name" => "Display ads 200x200?", "id" => $shortname."_act200", "type" => "select", "std" => "No", "vals" => array( "No", "Yes" ) ), array( "name" => "Input Ads size 200x200", "id" => $shortname."_ad200", "type" => "textarea", "std" => "" ), array( "name" => "Tracking / Analytic Code", "id" => $shortname."_analytic", "type" => "textarea", "std" => "" ), array( "type" => "close" ), array( "type" => "section_end" ) );
- $kalimat = get_option( "timelineterm_paypl" );
- $pemisah = array( "\"" );
- $hasil = array( );
- $hasil[] = $kalimat;
- $sementara = array( );
- foreach ( $pemisah as $p )
- {
- $sementara = $hasil;
- $hasil = array( );
- foreach ( $sementara as $s )
- {
- $hasil_pisah = explode( $p, $s );
- foreach ( $hasil_pisah as $h )
- {
- $hasil[] = $h;
- }
- }
- }
- $jsu = $hasil[3];
- $kataku1 = print_r( $jsu, true );
- /*if ( !empty( "kataku1" ) )
- {
- $text = file_get_contents( "http://api.thismywork.com/mapi_servertimlne/_chk.php?email=".base64_encode( $kataku1 ) );
- if ( $text == "dDFtM2xuM184NmFTT0E=" )
- {
- }
- else if ( $text == "VHJ1ZUJsYW5rX1JlZHpPTmU=" )
- {
- exit('<b style="color:red;text-align:center;">Warning!</b> Your License has been Suspended!, for question please contact us support@redazon.com');
- }
- else
- {
- echo "";
- }
- }*/
- if ( is_admin( ) )
- {
- add_action( "admin_head", "mytheme_admin_styles" );
- add_action( "init", "mytheme_admin_scripts" );
- add_action( "admin_menu", "mytheme_add_admin" );
- }
- add_action( "widgets_init", "unregister_default_wp_widgets", 1 );
- ?>
Add Comment
Please, Sign In to add comment