quien me ayuda con este plugin gracias
http://www.darkorbit.es/
Hola rifranco202325 aca estan tus plugins probados y funcionando 100%
#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 bigpoint.com.com.so bigpoint.com.cpp
// Regex
// http.*\.bigpoint\.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("bigpoint.com/") != string::npos)
) {
r.file = get_filename(url);
if (!r.file.empty()) {
r.match = true;
r.domain = "DarkOrbit";
} else {
r.match = false;
}
}
else
{
r.match = false;
}
return r;
}
#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 bpcdn.net.so bpcdn.net.cpp
// Regex
// http.*\.bpcdn\.net.*(\.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("bpcdn.net/") != string::npos)
) {
r.file = get_filename(url);
if (!r.file.empty()) {
r.match = true;
r.domain = "DarkOrbit";
} else {
r.match = false;
}
}
else
{
r.match = false;
}
return r;
}
gracias men
De nada. 8)
Cita de: zeronett en Noviembre 02, 2013, 11:42:54 PM
De nada. 8)
Gracias amigo Zeronett por tu aportes a esta comunidad, Saludos
Es un placer. :-*