Alterserv

ThunderCache 3.1.x => Plugins para ThunderCache 3.1.2 => Plugins de juegos => Mensaje publicado por: david_domh en Agosto 13, 2013, 01:20:12 AM

Título: PLUGINS DE POINT BLACK Y GUNZ ULTRA DE KAYBO : FUNCIONANDO
Publicado por: david_domh en Agosto 13, 2013, 01:20:12 AM
ACTUALIZADO cachea todo del servidor de kaybo1

Código (cpp) [Seleccionar]
#include <iostream>
    #include <cstring>
    #include <vector>
    #include "../utils.cpp"
     
    // g++ -I. -fPIC -shared -g -o kaybo1.com.so kaybo1.com.cpp
    // regex
    // http.*\.kaybo1\.com.*(\.jpg|\.png|\.gif|\.mp3|\.swf|\.flv|\.exe|\.rar|\.zip|\.wav|\.jpeg|\.mp4)
     
    string get_filename(string url) {
                    vector<string> resultado;
                    if (url.find("?") != string::npos) {
                            stringexplode(url, "?", &resultado);
                            stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                            return resultado.at(resultado.size()-1);         
                    } else {
                            stringexplode(url, "/", &resultado);
                            return resultado.at(resultado.size()-1);
                    }
    }
     
    extern "C" resposta getmatch(const string url) {
        resposta r;
     
            if ( (url.find(".kaybo1.com/") != string::npos) and
            ( (url.find(".jpg") != string::npos) or
            (url.find(".png") != string::npos) or
            (url.find(".gif")!= string::npos) or
            (url.find(".mp3")!= string::npos) or
            (url.find(".swf")!= string::npos) or
            (url.find(".flv")!= string::npos) or
            (url.find(".exe")!= string::npos) or
            (url.find(".rar")!= string::npos) or
            (url.find(".zip")!= string::npos) or
            (url.find(".wav")!= string::npos) or
            (url.find(".jpeg")!= string::npos) or
            (url.find(".mp4")!= string::npos))
            ) {
                   
                r.file = get_filename(url);
                    if (!r.file.empty()) {
                            r.match = true;
                            r.domain = "bkaybo";
                    } else {
                            r.match = false;
                    }
            } else {
                    r.match = false;
            }
            return r;
    }
Título: Re:PLUGINS DE POINT BLACK Y GUNZ ULTRA DE KAYBO : FUNCIONANDO
Publicado por: nqm74 en Agosto 13, 2013, 03:12:48 PM
Buenas amigo David, gracias de verdad por tu aporte yo tengo funcionando otro Plugin creado gracias a la ayuda del amigo firecold, lo que queria saber si tu lo tienes funcionando o si le falta algunas otra extension, este es el plugin..saludos.
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// g++ -I. -fPIC -shared -g -o articgamers.net.so articgamers.net.cpp
// regex
// http.*\.articgamers\.net.*(\.jpg|\.png|\.exe|\.rar|\.zip|\.xfs)

string get_filename(string url) {
                vector<string> resultado;
                if (url.find("?") != string::npos) {
                        stringexplode(url, "?", &resultado);
                        stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                        return resultado.at(resultado.size()-1);           
                } else {
                        stringexplode(url, "/", &resultado);
                        return resultado.at(resultado.size()-1);
                }
}

extern "C" resposta getmatch(const string url) {
    resposta r;

        if ( (url.find(".articgamers.net") != string::npos) and
        ( (url.find(".jpg") != string::npos) or
        (url.find(".png") != string::npos) or
        (url.find(".exe")!= string::npos) or
        (url.find(".rar")!= string::npos) or
        (url.find(".zip")!= string::npos) or
        (url.find(".xfs")!= string::npos) )
        ) {
               
            r.file = get_filename(url);
                if (!r.file.empty()) {
                        r.match = true;
                        r.domain = "articgamers";
                } else {
                        r.match = false;
                }
        } else {
                r.match = false;
        }
        return r;
}
Título: Re:PLUGINS DE POINT BLACK Y GUNZ ULTRA DE KAYBO : FUNCIONANDO
Publicado por: david_domh en Agosto 14, 2013, 03:54:22 PM
ahi se le puede poner si es posible todas las extensiones que haya medices cual falta y lo hacemos
Título: Re:PLUGINS DE POINT BLACK Y GUNZ ULTRA DE KAYBO : FUNCIONANDO
Publicado por: david_domh en Agosto 14, 2013, 04:05:42 PM
el plugin funciona fulllllll lo maximo
Título: Re:PLUGINS DE POINT BLACK Y GUNZ ULTRA DE KAYBO : FUNCIONANDO
Publicado por: firecold en Agosto 14, 2013, 05:26:00 PM
Cita de: david_domh en Agosto 13, 2013, 01:20:12 AM
Gracias a la ayuda del foro, practicando y peleàndola duro me salio el plugin de los juegos de kaybo


Point Black y GunZ Ultra

           Dominios             Archivos  Tamaño Economia Hits Eficiencia

( http://www.static.org ) Kaybo 297 1.38 GiB 7.33 GiB 833 529,55 %

Este es mi aporte : los plugins estàn testeados y probados en mi servidor thundercache : funcionan  fullllll ok


    #include <iostream>
    #include <cstring>
    #include <vector>
    #include "../utils.cpp"
     
    using namespace std;
     
    // use this line to compile
    // g++ -I. -fPIC -shared -g -o kaybo1.com.so kaybo1.com.cpp
    // regex
    // http.*\.kaybo1\.com.*(\.zip|\.cmp|\.cdt|\.ogg|\.bmp|\.exe|\.acv|\.BIN|\.mp3|\.dds|\.wav|\.WAV|\.png|\.jpg|\.swf|\.flv|\.gif|\.rar|\.css|\.gz|\.js|\.jpg|\.gif|\.crl|\.ico|\.dll)
   
     
    string dominiotxt="Kaybo";
    string get_filename(string url) {
          vector<string> resultado;
          if (url.find("?") != string::npos) {
             stringexplode(url, "?", &resultado);
             stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
             return resultado.at(resultado.size()-1);         
          } else {
             stringexplode(url, "/", &resultado);
             return resultado.at(resultado.size()-1);
          }
    }
     
       extern "C" resposta getmatch(const string url) {
            resposta r;
       if ( (url.find("pb.kaybo1.com/") != string::npos)
           ) {
        dominiotxt="Kaybo/Point_Black";
        }
        if ( (url.find("gunz.kaybo1.com/") != string::npos)
        ) {
        dominiotxt="Kaybo/Gunz_Ultra";     
        }
        if ( (url.find(".kaybo1.com/") != string::npos)
           ) { 
     
     
               r.file = get_filename(url);
                    if (!r.file.empty()) {
                            r.match = true;
                           r.domain = dominiotxt;
                    } else {
                            r.match = false;
                    }
            } else {
                    r.match = false;
            }
            return r;
    }


Las extenciones .dll|\.css|\.gz|\.js|\.crl|\.BIN|\.gif|\.ico, no se tienen que hacer cache porque son dinamicas, eso quiere decir que siguen teniendo las mismas extensiones pero lo que hay dentro es diferente, termina dando muchos problemas con el tiempo, Saludos
Título: Re:PLUGINS DE POINT BLACK Y GUNZ ULTRA DE KAYBO : FUNCIONANDO
Publicado por: david_domh en Agosto 14, 2013, 08:47:07 PM
firecold estaba viendo eso pero tengo un problema me cachea todo de la pagina y el cliente de los juegos
lo que no me cachea es las actualizaciones de los juegos que salen de este servidor  segun Fiddler2


fhl-lcdn.pandonetworks.com

acaso se necesita crear otr plugin para las actualizaciones? al igual por ejemplo que atlantica que su servidor es pandonetworks

Porfas ayudame necesito que haga cache las actualizaciones