1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress encrypted footer&functions

Discussion in 'Blogging' started by Paraderain, Sep 26, 2011.

  1. Paraderain

    Paraderain Newbie

    Joined:
    Jun 25, 2011
    Messages:
    32
    Likes Received:
    30
    Wondering if anybody would be kind enough to have a bash at cleaning up some encrypted code on a theme I need to use.

    The footer.php is encrypted, as well as the entire funtions.php, here they are...

    Footer: http://pastebin.com/zVENNbjm

    Funtions: http://pastebin.com/05FRnzqU
     
  2. atif089

    atif089 Registered Member

    Joined:
    Oct 18, 2008
    Messages:
    85
    Likes Received:
    40
    Footer Page

    Code:
    <?php
    //allows the theme to get info from the theme options page
    global $options;
    foreach ($options as $value) {
        if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; }
        else { $$value['id'] = get_option( $value['id'] ); }
        }
    ?> <?if ($iView_analytics_enable == "true") { ?>
    <SCRIPT type=text/javascript>
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </SCRIPT>
    
    <SCRIPT type=text/javascript src="http://www.google-analytics.com/ga.js"></SCRIPT>
    
    <SCRIPT type=text/javascript>
    try {
    var pageTracker = _gat._getTracker("<?php echo $iView_analytics; ?>");
    pageTracker._trackPageview();
    } catch(err) {}</SCRIPT>
    <? } ?>
    <DIV class=footer>
    <P>Theme designed by <A title="Reseller Web Hosting" href="http://www.5shadesreseller.com" target=_blank>Reseller Web Hosting</A> in collaboration with <A title="Web Templates" href="http://www.5shadestemplates.com" target=_blank>Web Templates</A> | <A title="Dog Training Advice" href="http://www.pupdogtraining.com" target=_blank>Dog Training Advice</A> | <A title="Dream Dictionary" href="http://www.dreaminterpretationguide.com/dream-dictionary.html" target=_blank>Dream Dictionary</A>. </P></DIV>
    <SCRIPT type=text/javascript>
    <!--
    
    	var message="";
    	function clickIE() {if (document.all) {(message);return false;}}
    	function clickNS(e) {if 
    	(document.layers||(document.getElementById&&!document.all)) {
    	if (e.which==2||e.which==3) {(message);return false;}}}
    	if (document.layers) 
    	{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
    	else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
    	document.oncontextmenu=new Function("return false")
    
    // --> 
    </SCRIPT>
    <NOSCRIPT></NOSCRIPT><?php wp_footer(); ?>


    Functions Page

    Code:
    <?php
    
    $themename = "iView Theme";
    $shortname = "iView";
    
    
    $options = array(
    array(
    "name" => "GENERAL SETTING", 
    "type" => "title"), 
    array(
    "type" => "open"),
    array(
    "name" => "Disable slideshow", 
    "desc" => "Check this box if you want to disable slideshow below header.", 
    "id" => $shortname . "_slider_disable", 
    "type" => "checkbox", 
    "std" => "false"), 
    array(
    "name" => "Enable Google Analytics", 
    "desc" => "Check this box if you want to enable google analytics at footer column.", 
    "id" => $shortname . "_analytics_enable", 
    "type" => "checkbox", 
    "std" => "false"), 
    array(
    "name" => "Google Analytics ID",
    "desc" => "Enter your google analytics ID here, 
    start with UA-. Please leave it blank if you uncheck analytics in general settings",
    "id" => $shortname . "_analytics", 
    "std" => "", 
    "type" => "text"), 
    array(
    "name" => "Blog Description", 
    "desc" => "Enter short description of your blog here.", 
    "id" => $shortname . "_description", 
    "std" => "Short description of your blog here", 
    "type" => "textarea"), 
    array(
    "name" => "SLIDESHOW SETTING", 
    "type" => "title"), 
    array(
    "type" => "open"), 
    array(
    "name" => "Movie #1 Image",
    "desc" => "Must be 932px width and 200px height. If you are not clear and need our help, 
    please kindly contact us at http://www.zinruss.com/themes/contact-us",
    "id" => $shortname . "_slider1image", 
    "std" => "http://www.zinruss.com/movie-wordpress-themes/iView/wp-content/themes/iView/ads/1.jpg", 
    "type" => "text"), 
    array(
    "name" => "Movie #1 Description", 
    "desc" => "Enter Movie #1 detail here.", 
    "id" => $shortname . "_slider1description", 
    "std" => "<B>TRON LEGACY</B><BR><B>Synopsis:</B> Following the 1982 original, 
    this reupdate is a 3-D cyber adventure set in a digital world where Sam Flynn (Garrett Hedlund), 
    the tech-savvy 27-year-old son of Kevin Flynn (Jeff Bridges), 
    looks into his father's disappearance and finds himself pulled into the same world of fierce programmes and gladiatorial games where his father has been living for 25 years. Along with Kevin's loyal confidante (Olivia Wilde), 
    both father and son embark on a life-or-death journey across a visually-stunning cyber universe that has become far more advanced and exceedingly dangerous. ",
    "type" => "textarea"), 
    array(
    "name" => "Movie #1 URL", 
    "id" => $shortname . "_slider1url", 
    "std" => "#", 
    "type" => "text"), 
    array(
    "name" => "Movie #1 Image ALT Text", 
    "desc" => "Enter alt text for Movie #1 here, 
    for SEO purposes. Off course, 
    you can leave it blank.", 
    "id" => $shortname . "_slider1alt", 
    "std" => "", 
    "type" => "text"), 
    array(
    "name" => "Movie #1 Title Tag",
    "desc" => "Enter title tag for Movie #1 here, for SEO purposes. Off course, you can leave it blank.",
    "id" => $shortname . "_slider1title", 
    "std" => "", 
    "type" => "text"), 
    array(
    "name" => "Movie #2 Image", 
    "desc" => "Must be 932px width and 200px height. If you are not clear and need our help, please kindly contact us at http://www.zinruss.com/themes/contact-us",
    "id" => $shortname . "_slider2image", 
    "std" => "http://www.zinruss.com/movie-wordpress-themes/iView/wp-content/themes/iView/ads/2.jpg", 
    "type" => "text"), 
    array(
    "name" => "Movie #2 Description", 
    "desc" => "Enter Movie #2 detail here.", 
    "id" => $shortname . "_slider2description", 
    "std" => "<B>TAKERS</B><BR><B>Synopsis:</B> TAKERS takes you into the world of a notorious group of criminals (Idris Elba, Paul Walker, T.I., Chris Brown, Hayden Christensen and Michael Ealy) who continue to baffle police by pulling off perfectly executed bank robberies. They are in and out like clockwork, 
    leaving no evidence behind and laying low between heists. But when they attempt to pull off one last job with more money at stake than ever before, 
    the crew may find their plans interrupted by a hardened detective (Matt Dillon) who is hell-bent on solving the case.",
    "type" => "textarea"), 
    array(
    "name" => "Movie #2 URL", 
    "id" => $shortname . "_slider2url", 
    "std" => "#", 
    "type" => "text"), 
    array(
    "name" => "Movie #2 Image ALT Text", 
    "desc" => "Enter alt text for Movie #2 here, 
    for SEO purposes. Off course, 
    you can leave it blank.", 
    "id" => $shortname . "_slider2alt", 
    "std" => "", 
    "type" => "text"), 
    array(
    "name" => "Movie #2 Title Tag",
    "desc" => "Enter title tag for Movie #2 here, 
    for SEO purposes. Off course, 
    you can leave it blank.",
    "id" => $shortname . "_slider2title", 
    "std" => "", 
    "type" => "text"), 
    array(
    "name" => "Movie #3 Image", 
    "desc" => "Must be 932px width and 200px height. If you are not clear and need our help, 
    please kindly contact us at http://www.zinruss.com/themes/contact-us",
    "id" => $shortname . "_slider3image", 
    "std" => "http://www.zinruss.com/movie-wordpress-themes/iView/wp-content/themes/iView/ads/3.jpg", 
    "type" => "text"), 
    array(
    "name" => "Movie #3 Description", 
    "desc" => "Enter Movie #3 detail here.", 
    "id" => $shortname . "_slider3description", 
    "std" => "<B>ALPHA AND OMEGA</B><BR><B>Synopsis:</B> Puppy love takes on a new meaning in this animated film featuring a slew of celebrity voices. Kate (Hayden Panettiere, 
    HEROES) is a dominant and driven female wolf, 
    while hairy Humphrey (Justin Long, 
    LIVE FREE OR DIE HARD) lives for the moment. But when the two young wolves are captured by park rangers and taken far away, 
    they bond despite their differences. ALPHA AND OMEGA also boasts the vocal talents of Christina Ricci, 
    Danny Glover, 
    Dennis Hopper, 
    and Larry Miller.",
    "type" => "textarea"), 
    array(
    "name" => "Movie #3 URL", 
    "id" => $shortname . "_slider3url", 
    "std" => "#", 
    "type" => "text"), 
    array(
    "name" => "Movie #3 Image ALT Text", 
    "desc" => "Enter alt text for Movie #3 here, 
    for SEO purposes. Off course, 
    you can leave it blank.", 
    "id" => $shortname . "_slider3alt", 
    "std" => "", 
    "type" => "text"), 
    array(
    "name" => "Movie #3 Title Tag",
    "desc" => "Enter title tag for Movie #3 here, 
    for SEO purposes. Off course, 
    you can leave it blank.",
    "id" => $shortname . "_slider3title", 
    "std" => "", 
    "type" => "text"), 
    array(
    "name" => "Movie #4 Image", 
    "desc" => "Must be 932px width and 200px height. If you are not clear and need our help, 
    please kindly contact us at http://www.zinruss.com/themes/contact-us",
    "id" => $shortname . "_slider4image", 
    "std" => "http://www.zinruss.com/movie-wordpress-themes/iView/wp-content/themes/iView/ads/4.jpg", 
    "type" => "text"), 
    array(
    "name" => "Movie #4 Description", 
    "desc" => "Enter Movie #4 detail here.", 
    "id" => $shortname . "_slider4description", 
    "std" => "<B>DEVIL</B><BR><B>Synopsis:</B> Supernatural thriller Devil (also known as The Night Chronicles: Devil) is the first of three features that M. Night Shyamalan will produce through The Night Chronicles. The first instalment surrounds a group of people trapped in an elevator, 
    who soon realise that the devil is among them in human form.",
    "type" => "textarea"), 
    array(
    "name" => "Movie #4 URL", 
    "id" => $shortname . "_slider4url", 
    "std" => "#", 
    "type" => "text"), 
    array(
    "name" => "Movie #4 Image ALT Text", 
    "desc" => "Enter alt text for Movie #4 here, 
    for SEO purposes. Off course, 
    you can leave it blank.", 
    "id" => $shortname . "_slider4alt", 
    "std" => "", 
    "type" => "text"), 
    array(
    "name" => "Movie #4 Title Tag",
    "desc" => "Enter title tag for Movie #4 here, 
    for SEO purposes. Off course, 
    you can leave it blank.",
    "id" => $shortname . "_slider4title", 
    "std" => "", 
    "type" => "text"), 
    array(
    "name" => "Movie #5 Image", 
    "desc" => "Must be 932px width and 200px height. If you are not clear and need our help, 
    please kindly contact us at http://www.zinruss.com/themes/contact-us",
    "id" => $shortname . "_slider5image", 
    "std" => "http://www.zinruss.com/movie-wordpress-themes/iView/wp-content/themes/iView/ads/5.jpg", 
    "type" => "text"), 
    array(
    "name" => "Movie #5 Description", 
    "desc" => "Enter Movie #5 detail here.", 
    "id" => $shortname . "_slider5description", 
    "std" => "<B>LEGEND OF THE GUARDIANS: THE OWLS OF GA'HOOLE</B><BR><B>Synopsis:</B> Based on the first three Guardians of Ga'Hoole book series by Kathryn Lasky, 
    it tells of Soren (Jim Sturgess), 
    a young barn owl who is kidnapped by owls of St. Aggie's, 
    ostensibly an orphanage where owlets are brainwashed into becoming soldiers. He and new friends escape to the island of Ga'Hoole, 
    to assist its noble, 
    wise owls who fight the army being created by the wicked rulers of St. Aggie's.",
    "type" => "textarea"), 
    array(
    "name" => "Movie #5 URL", 
    "id" => $shortname . "_slider5url", 
    "std" => "#", 
    "type" => "text"), 
    array(
    "name" => "Movie #5 Image ALT Text", 
    "desc" => "Enter alt text for Movie #5 here, 
    for SEO purposes. Off course, 
    you can leave it blank.", 
    "id" => $shortname . "_slider5alt", 
    "std" => "", 
    "type" => "text"), 
    array(
    "name" => "Movie #5 Title Tag",
    "desc" => "Enter title tag for Movie #5 here, 
    for SEO purposes. Off course, 
    you can leave it blank.",
    "id" => $shortname . "_slider5title", 
    "std" => "", 
    "type" => "text"), 
    array(
    "type" => "close")
    );
    
    
    function mytheme_add_admin() {
    global $themename, $shortname, $options;
    if ($_GET['page'] == basename('C:\Users\Mohd Ameenuddin Atif\AppData\Local\Temp\~Untitled 1')) {
    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=functions.php&saved=true");
    die;
    } else
    if ('reset' == $_REQUEST['action']) {
    foreach ($options as $value) {
    delete_option($value['id']);
    }
    header("Location: themes.php?page=functions.php&reset=true");
    die;
    }
    }
    add_theme_page($themename . " Options", "" . $themename . " Options", 'edit_themes', basename('C:\Users\Mohd Ameenuddin Atif\AppData\Local\Temp\~Untitled 1'),
    'mytheme_admin');
    }
    function mytheme_admin() {
    global $themename, $shortname, $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>'; ?> 
    <DIV class=wrap>
    <H2><?php echo $themename; ?>by <A title="Reseller Web Hosting" href="http://www.5shadesreseller.com" target=_blank>Reseller Web Hosting</A> in collaboration with <A title="Web Templates" href="http://www.5shadestemplates.com" target=_blank>Web Templates</A> | <A title="Dog Training Advice" href="http://www.pupdogtraining.com" target=_blank>Dog Training Advice</A> | <A title="Dream Dictionary" href="http://www.dreaminterpretationguide.com/dream-dictionary.html" target=_blank>Dream Dictionary</A></H2>
    <FORM method=post><?php foreach ($options as $value) {
    switch ($value['type']) {
    
    case "open":
    ?>
    <TABLE style="BORDER-BOTTOM: #e3e3e3 1px solid; BORDER-LEFT: #e3e3e3 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: #f1f1f1; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: #e3e3e3 1px solid; BORDER-RIGHT: #e3e3e3 1px solid; PADDING-TOP: 10px" border=0 width="100%"><?php break;
    
    case "close":
    ?>
    <TBODY></TBODY></TABLE><BR><?php break;
    
    case "title":
    ?>
    <TABLE style="PADDING-BOTTOM: 5px; BACKGROUND-COLOR: #464646; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 5px" border=0 width="100%">
    <TBODY>
    <TR>
    <TD colSpan=2>
    <H3 style="FONT-FAMILY: Georgia,'Times New Roman',Times,serif; COLOR: #ffffff"><?php echo $value['name']; ?></H3></TD></TR><?php break;
    
    case 'text':
    ?>
    <TR>
    <TD vAlign=center rowSpan=2 width="20%"><STRONG><?php echo $value['name']; ?></STRONG></TD>
    <TD width="80%"><INPUT style="WIDTH: 600px" id="<?php echo $value['id']; ?>" value="<?php if (get_settings
    ($value['id']) != " type=" < ? php echo $value['type']; ?>" name="<?php echo $value['id']; ?>" ? } $value[?std?]; echo { else ); $value[?id?] get_settings( ?)>" /></TD></TR>
    <TR>
    <TD><SMALL><?php echo $value['desc']; ?></SMALL></TD></TR>
    <TR>
    <TD style="BORDER-BOTTOM: #000000 1px dotted; MARGIN-BOTTOM: 5px" colSpan=2> </TD></TR>
    <TR>
    <TD colSpan=2> </TD></TR><?php
    break; case 'textarea' :
    
    ?>
    <TR>
    <TD vAlign=center rowSpan=2 width="20%"><STRONG><?php echo $value['name']; ?></STRONG></TD>
    <TD width="80%"><TEXTAREA style="WIDTH: 400px; HEIGHT: 200px" name="<?php echo $value['id']; ?>" type="<?php echo
    $value['type']; ?>"><?php if ( get_settings( $value['id'] ) != "") { echo get_settings( $value['id'] ); } else { echo $value['std']; } ?></TEXTAREA></TD></TR>
    <TR>
    <TD><SMALL><?php echo $value['desc']; ?></SMALL></TD></TR>
    <TR>
    <TD style="BORDER-BOTTOM: #000000 1px dotted; MARGIN-BOTTOM: 5px" colSpan=2> </TD></TR>
    <TR>
    <TD colSpan=2> </TD></TR><?php
    break; case 'select' :
    
    ?>
    <TR>
    <TD vAlign=center rowSpan=2 width="20%"><STRONG><?php echo $value['name']; ?></STRONG></TD>
    <TD width="80%"><SELECT style="WIDTH: 300px" id="<?php echo $value['id']; ?>" name="<?php echo $value['id']; ?>"><OPTION<?PHP ? }
    echo {
    $value[ ? id ? ]get_settings( ?; selected = "selected"$value[ ? std ? ])($option = "=" elseif $option))
    = "="(if >> < / SELECT > < / TD > < / TR > < TR > < TD > < SMALL > < ? php echo $value['desc']; ?></SMALL></TD></TR>
    <TR>
    <TD style="BORDER-BOTTOM: #000000 1px dotted; MARGIN-BOTTOM: 5px" colSpan=2> </TD></TR>
    <TR>
    <TD colSpan=2> </TD></TR><?php
    break; case "checkbox" :
    
    ?>
    <TR>
    <TD vAlign=center rowSpan=2 width="20%"><STRONG><?php echo $value['name']; ?></STRONG></TD>
    <TD width="80%"><?php if (get_option($value['id'])) {
    $checked = "checked=\"checked\""; }
    else {
    $checked = ""; } ?><INPUT id="<?php echo $value['id']; ?>" value=true type=checkbox name="<?php echo
    $value['id']; ?>" ? echo $checked; <? php > / > < / TD > < / TR > < TR > < TD > < SMALL > < ? php
    echo $value['desc']; ?></SMALL></TD></TR>
    <TR>
    <TD style="BORDER-BOTTOM: #000000 1px dotted; MARGIN-BOTTOM: 5px" colSpan=2> </TD></TR>
    <TR>
    <TD colSpan=2> </TD></TR><?php break; }
    }
    ?>
    <P class=submit><INPUT value="Save changes" type=submit name=save> <INPUT value=save type=hidden name=action> 
    <P></P></FORM>
    <FORM method=post>
    <P class=submit><INPUT value=Reset type=submit name=reset> <INPUT value=reset type=hidden name=action> </P></FORM><?php
    }
    
    add_action('admin_menu', 'mytheme_add_admin'); ?><?php
    function advertisement() {
    include (TEMPLATEPATH . "/advertisement.php"); }
    if (function_exists('register_sidebar'))register_sidebar(array('before_widget' => '
    <UL>', 'after_widget' => '</UL>', 'before_title' => '
    <H2>', 'after_title' => '</H2>', )); function limitLength($text, $length = 100) { // Change to the number of characters you want to display $chars_limit = $length; $chars_text = strlen($text); $text = $text." "; $text = substr($text,0,$chars_limit); $text = substr($text,0,strrpos($text,' ')); // If the text has more characters that your limit,
    //add ... so the user knows the text is actually longer if ($chars_text > $chars_limit) { $text = $text."..."; } return $text; } function Limit_the_title($more_link_text = null,
    $stripteaser = 0) {
    $title = get_the_title($more_link_text, $stripteaser);
    $title = apply_filters('the_title', $title);
    $title = str_replace(']]>', ']]>', $title); // Letca call the Trimming function and limit the character length to 150 characters $title= limitLength($title,16); echo $title; } function wp_version() { global $wp_db_version; if ( $wp_db_version < 3582 ) { return '20'; } else { return '21'; } } function menucenter() { global $internetsharing; if (isset($internetsharing->option['tabs'])) { print 82 * $internetsharing->option['tabs'] . 'px'; } else { print '95%'; } } ?></P></TBODY></DIV>
     
    • Thanks Thanks x 1
  3. Paraderain

    Paraderain Newbie

    Joined:
    Jun 25, 2011
    Messages:
    32
    Likes Received:
    30
    Edited: Nevermind, the guy above me is a pro, thanks atif +rep
     
    Last edited: Sep 26, 2011
  4. Paraderain

    Paraderain Newbie

    Joined:
    Jun 25, 2011
    Messages:
    32
    Likes Received:
    30


    Code:
    function mytheme_add_admin() {
    global $themename, $shortname, $options;
    if ($_GET['page'] == basename('C:\Users\[B][SIZE=4]Mohd Ameenuddin [U]Atif[/U][/SIZE][/B]\AppData\Local\Temp\~Untitled 1')) {
    if ('save' == $_REQUEST['action']) {
    foreach ($options as $value) {
    update_option($value['id'], $_REQUEST[$value['id']]);
    
    What's this?
     
  5. atif089

    atif089 Registered Member

    Joined:
    Oct 18, 2008
    Messages:
    85
    Likes Received:
    40
    I simple decoded those pages, I didnt test them, so they may have some syntax error.

    Use error_reporting(E_ALL);

    and tell me what error are you getting
     
  6. Paraderain

    Paraderain Newbie

    Joined:
    Jun 25, 2011
    Messages:
    32
    Likes Received:
    30
    I have not installed the theme yet, I was wondering why your name appears in the funtion code?

    Code:
    if ($_GET['page'] == basename('C:\Users\[B][SIZE=4]Mohd Ameenuddin [U]Atif[/U][/SIZE][/B]\AppData\Local\Temp\~Untitled 1'))