disable license check, change cloud domain from omigamedev.com to panopainter.com

This commit is contained in:
2018-09-20 17:02:11 +02:00
parent 08c744fef5
commit 5a3ba0eea3
2 changed files with 8 additions and 4 deletions

View File

@@ -163,7 +163,7 @@ void App::download(std::string filename, std::function<void(float)> progress)
{
auto dest = data_path + "/" + filename;
FILE* fp = fopen(dest.c_str(), "wb");
std::string url = "http://omigamedev.com/panopainter/cloud/cloud-dwl.php?file=" + filename;
std::string url = "https://panopainter.com/cloud/cloud-dwl.php?file=" + filename;
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_WRITEDATA, fp);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curl_data_write);
@@ -181,6 +181,9 @@ void App::download(std::string filename, std::function<void(float)> progress)
bool App::check_license()
{
return true; // TODO: for distribuiton only
/*
CURL *curl = curl_easy_init();
if (curl)
{
@@ -205,6 +208,7 @@ bool App::check_license()
return true;
}
return false;
*/
}
void App::upload(std::string filename, std::string name, std::function<void(float)> progress)
@@ -227,7 +231,7 @@ void App::upload(std::string filename, std::string name, std::function<void(floa
if (curl)
{
std::string url = "http://omigamedev.com/panopainter/cloud/cloud-upl.php?name=" + name;
std::string url = "https://panopainter.com/cloud/cloud-upl.php?name=" + name;
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &res);

View File

@@ -68,7 +68,7 @@ void NodeDialogCloud::load_thumbs_thread()
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &res);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curl_data_handler);
curl_easy_setopt(curl, CURLOPT_URL, "http://omigamedev.com/panopainter/cloud/cloud-list.php");
curl_easy_setopt(curl, CURLOPT_URL, "https://panopainter.com/cloud/cloud-list.php");
auto err = curl_easy_perform(curl);
if (err != CURLE_OK)
@@ -124,7 +124,7 @@ void NodeDialogCloud::load_thumbs_thread()
break;
res.clear();
std::string url = "http://omigamedev.com/panopainter/cloud/cloud-info.php?file=" + n;
std::string url = "https://panopainter.com/cloud/cloud-info.php?file=" + n;
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
LOG("%s", url.c_str());
auto err = curl_easy_perform(curl);