Respondiendo a la peticion de un amigo, les entrego este plugin:
#include <iostream>
#include <cstring>
#include <string>
#include <vector>
#include "../utils.cpp"
using namespace std;
// use this line to compile
// g++ -I. -fPIC -shared -g -o meridiano.com.ve.so meridiano.com.ve.cpp
// Regex
// http.*\.meridiano\.com\.ve.*(\.swf|\.jpg|\.png|\.gif)
string get_filename(string url) {
vector<string> resultado;
string retorna = "";
stringexplode(url, "/", &resultado);
retorna = resultado.at(resultado.size()-2) + "-"+resultado.at(resultado.size()-1);
return retorna;
}
extern "C" resposta getmatch(const string url) {
resposta r;
if ( (url.find("meridiano.com.ve/") != string::npos)
) {
r.file = get_filename(url);
if (!r.file.empty()) {
r.match = true;
r.domain = "meridiano";
} else {
r.match = false;
}
}
else
{
r.match = false;
}
return r;
}
Saludos
Cita de: firecold en Septiembre 05, 2013, 09:53:12 AM
Respondiendo a la peticion de un amigo, les entrego este plugin:
#include <iostream>
#include <cstring>
#include <string>
#include <vector>
#include "../utils.cpp"
using namespace std;
// use this line to compile
// g++ -I. -fPIC -shared -g -o meridiano.com.ve.so meridiano.com.ve.cpp
// Regex
// http.*\.meridiano\.com\.ve.*(\.swf|\.jpg|\.png|\.gif)
string get_filename(string url) {
vector<string> resultado;
string retorna = "";
stringexplode(url, "/", &resultado);
retorna = resultado.at(resultado.size()-2) + "-"+resultado.at(resultado.size()-1);
return retorna;
}
extern "C" resposta getmatch(const string url) {
resposta r;
if ( (url.find("meridiano.com.ve/") != string::npos)
) {
r.file = get_filename(url);
if (!r.file.empty()) {
r.match = true;
r.domain = "meridiano";
} else {
r.match = false;
}
}
else
{
r.match = false;
}
return r;
}
Saludos
gracias hermano esta bueno tu aporte
Cita de: firecold en Septiembre 05, 2013, 09:53:12 AM
Respondiendo a la peticion de un amigo, les entrego este plugin:
#include <iostream>
#include <cstring>
#include <string>
#include <vector>
#include "../utils.cpp"
using namespace std;
// use this line to compile
// g++ -I. -fPIC -shared -g -o meridiano.com.ve.so meridiano.com.ve.cpp
// Regex
// http.*\.meridiano\.com\.ve.*(\.swf|\.jpg|\.png|\.gif)
string get_filename(string url) {
vector<string> resultado;
string retorna = "";
stringexplode(url, "/", &resultado);
retorna = resultado.at(resultado.size()-2) + "-"+resultado.at(resultado.size()-1);
return retorna;
}
extern "C" resposta getmatch(const string url) {
resposta r;
if ( (url.find("meridiano.com.ve/") != string::npos)
) {
r.file = get_filename(url);
if (!r.file.empty()) {
r.match = true;
r.domain = "meridiano";
} else {
r.match = false;
}
}
else
{
r.match = false;
}
return r;
}
Saludos
Saludos amigo, este plugins lo podrias hacer?
http://www.notitarde.com/
aveces entra rapido aveces lento estando raptor funcionando
Cita de: tonyvzla en Septiembre 06, 2013, 07:18:04 AM
Saludos amigo, este plugins lo podrias hacer?
http://www.notitarde.com/
aveces entra rapido aveces lento estando raptor funcionando
lo vere en la tarde y lo estare publicando, Saludos
me puede ayudar no me funcione este plugin
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"
// use this line to compile
// g++ -I. -fPIC -shared -g -o meridiano.com.ve.so meridiano.com.ve.cpp
// regex
// http.*\.meridiano\.com\.ve.*(\.swf|\.jpg|\.png|\.gif)
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("meridiano.com.ve/") != string::npos) and (url.find(".jpg") != string::npos)
) {
r.file = get_filename(url);
if (!r.file.empty()) {
r.match = true;
r.domain = "meridiano.com.ve";
} else {
r.match = false;
}
} else {
r.match = false;
}
return r;
}
notitarde.com estimado
#include <iostream>
#include <cstring>
#include <string>
#include <vector>
#include "../utils.cpp"
using namespace std;
// use this line to compile
// g++ -I. -fPIC -shared -g -o notitarde.com.so notitarde.com.cpp
// Regex
// http.*\.notitarde\.com.*(\.swf|\.jpg|\.png|\.gif)
string get_filename(string url) {
vector<string> resultado;
string retorna = "";
stringexplode(url, "/", &resultado);
retorna = resultado.at(resultado.size()-2) + "-"+resultado.at(resultado.size()-1);
return retorna;
}
extern "C" resposta getmatch(const string url) {
resposta r;
if ( (url.find("notitarde.com/") != string::npos)
) {
r.file = get_filename(url);
if (!r.file.empty()) {
r.match = true;
r.domain = "notitarde.com";
} else {
r.match = false;
}
}
else
{
r.match = false;
}
return r;
}
estimado el plugin meridiano no funciona lo has testeado?
Cita de: francisco.romero87 en Enero 06, 2015, 12:36:59 PM
notitarde.com estimado
#include <iostream>
#include <cstring>
#include <string>
#include <vector>
#include "../utils.cpp"
using namespace std;
// use this line to compile
// g++ -I. -fPIC -shared -g -o notitarde.com.so notitarde.com.cpp
// Regex
// http.*\.notitarde\.com.*(\.swf|\.jpg|\.png|\.gif)
string get_filename(string url) {
vector<string> resultado;
string retorna = "";
stringexplode(url, "/", &resultado);
retorna = resultado.at(resultado.size()-2) + "-"+resultado.at(resultado.size()-1);
return retorna;
}
extern "C" resposta getmatch(const string url) {
resposta r;
if ( (url.find("notitarde.com/") != string::npos)
) {
r.file = get_filename(url);
if (!r.file.empty()) {
r.match = true;
r.domain = "notitarde.com";
} else {
r.match = false;
}
}
else
{
r.match = false;
}
return r;
}
desactivalo y observas creo le hace cache squid