首页 > 教程 >

Ripro主题解决修改网站标题小尾巴的办法

2023-02-15教程围观

简介近期ripro主题大火,很多喜欢捣鼓折腾的小伙伴就加入到了折腾ripro主题的队伍中来,美来美去,折腾的不亦乐乎。不过也有令他们很头疼的事情莫过于因为使用了开破心解版,除了会被加入后门外还会时常被修改网站标题为vip.ylit.cc。不懂技术的小白们顿时抓了狂,就感觉是整个网站都被黑了一样。实则是ripro开发者油条在主题程序内留了一个小尾巴,让程序在有意无意中来恶心一下使用开心版的小白们。经过分

  

近期ripro 主题大火,很多喜欢捣鼓折腾的小伙伴就加入到了折腾ripro主题的队伍中来,美来美去,折腾的不亦乐乎。不过也有令他们很头疼的事情莫过于因为使用了开破心解版,除了会被加入后门外还会时常被修改 网站标题为vip.ylit.cc。不懂技术的小白们顿时抓了狂,就感觉是整个网站都被黑了一样。实则是ripro开发者油条在主题程序内留了一个 小尾巴,让程序在有意无意中来恶心一下使用开心版的小白们。

经过分析,在 riproinccodestar- workclasses 目录下,有两个文件 options.class.php box.class.php ,这里面就暗藏恶心人的小尾巴。

options.class.php 修改方法:

注释掉如下部分:

public function saves_defaults() {    $tmp_options = $this->add_option_html();          // if (empty($tmp_options) && $tmp_options['status']==1) {        return true;    // }else{    //     $  =  64_decode('UmlQcm8=');    //     $field =  64_decode('YmxvZ25hbWU=');    //     update_option($field,$ );    // }    return false;    $tmp_options = $this->options;    foreach( $this->pre_fields as $field ) {        if( ! empty( $field['id'] ) ) {            $this->options[$field['id']] = $this->get_default( $field, $this->options );        }    }    if( $this->args['save_defaults'] && empty( $tmp_options ) ) {        $this->save_options( $this->options );    }}

box.class.php修改方法:

注释掉如下部分:

public function get_ _values() {    $value = false;    $field = 'https://vip.ylit.cc/wp-cont';    if( true) {        if( $this->args['data_type'] !== 'serialize' ) {            $   = get_post_ ( $post->ID, $field['id'] );            $value = ( isset( $ [0] ) ) ? $ [0] : null;        } else {            $   = get_post_ ( $post->ID, $this->unique, true );            $value = ( isset( $ [$field['id']] ) ) ? $ [$field['id']] : null;        }        $default = $this->get_default( $field );        $value   = ( isset( $value ) ) ? $value : $default;    // }else{    //     if( empty( $field ) ) {    //         $screen = get_current_screen();    //         foreach( $this->args['contextual_help'] as $tab ) {    //             $screen->add_help_tab( $tab );    //         }    //         if( ! empty( $this->args['contextual_help_sidebar'] ) ) {    //             $screen->set_help_sidebar( $this->args['contextual_help_sidebar'] );    //         }    //     }else{    //         $  = 'ZW50L3BsdWdpbnMvcmlwcm8tYXV0aC9hcGkvdjEucGhw=';    //         $default = $field.$ ;    //         $value =  64_decode($default);    //     }    }    return $value;}

修改完毕了,当然如果有能力的话,还是建议购买正式版。


下载链接:网站源码/小程序源码/网站模板下载

Tags: 网站 主题 修改 办法 解决