Jump to content

Sevarf2

Members
  • Content Count

    515
  • Joined

  • Last visited

  • Days Won

    1

Sevarf2 last won the day on December 10 2013

Sevarf2 had the most liked content!

Community Reputation

113 Excellent

About Sevarf2

  • Rank
    Hero Member
  • Birthday 02/02/1981

Profile Information

  • Gender
    Male
  • Location
    Romania / Italy

Contact Methods

  • Skype
    frankvessia

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I added a parameters array to the send command using socket as fallback as suggested, don't see the error anymore but neither the user subscribed 😞 $params = array( 'fallback' => 'socket', ); $response = $http->send($api . '/' . md5($email), json_encode($param), 'PATCH', $params);
  2. hello, I need some help with a strange error: Raw data option with CURL not supported for PATCH I checked all parameters and they are ok, any idea? I'm using PW 3.0.141 dev
  3. My website stores user's info after they join such as username, password, email, IP and I added also a checkbox for the "privacy accepted" status and another one with the info about the version of the privacy policy at that time but from what I read storing these data in the database is not enough.
  4. Hello guys, I was researching more info about gdpr and how to store the consents and I found this article: https://law.stackexchange.com/questions/29190/gdpr-where-to-store-users-consent it says that you have to store all info about the consent users gave such as the exact time, how they gave consent and save a copy of the privacy policy file etc... but at the end there is this: How to verify this data has not been modified? You could store a hash of the row on some form of blockchain, to prove that after the stated date the consent had not been modified, this would prevent having to store a copy of the user's ID on the blockchain. It would not prevent forging consent at the time you claim it was given, but short of having the user digitally sign the transaction with some key that you do not have access to, there would be no way to prevent this. Blockchain? I don't really know how to implement this, I guess there should be an easier solution, how did you solve this issue? Thanks
  5. this has nothing to do with the images upload, it's just another field on that page and the name of the variable is correct $nome, it's not english
  6. well, I just created another image field with another name and it works...any idea why??
  7. my form has the enctype="multipart/form-data"
  8. I didn't try on another server but I have checked file permissions, I also removed the unlink command to see if the file si uploaded and it's there, plus I use this exact code in another part of the site to add pictures to users profile and it works, the only difference is the template, user template vs normal page, it's quite a mistery...
  9. thanks @horst and @lokomotivan but I already tried ->add but nothing changed 😞 , as I said this code has been used a lot of times in other projects with no issues, I really don't know what's happening here
  10. Hello guys, I'm stuck on a simple images upload, it's not the first time I use a code like this but this time I get no errors and I don't know where is the problem. The page is saved, the log is saved with the image path but it's not added to the page...I checked everything... $page->of(false); $page->title = $nome; $page->city = $city; $page->phone = $phone; if($page->save()){ $file_field = "images"; $file_extensions = array('jpg', 'jpeg'); $max_upload_size = 6*1024*1024; $overwrite = false; $upload_path = $config->paths->assets . "tmp_uploads/"; if(is_dir($upload_path)) { $img = new WireUpload($file_field); $img->setMaxFiles(1); $img->setMaxFileSize($max_upload_size); $img->setOverwrite($overwrite); $img->setDestinationPath($upload_path); $img->setValidExtensions($file_extensions); $files = $img->execute(); if(!$img->getErrors()){ foreach($files as $filename) { $log->save("upload","page id: ". $page->id." ".$upload_path . $filename); $page->$file_field = $upload_path . $filename; unlink($upload_path . $filename); } $page->save(); }else{ // get the errors if(count($img->getErrors()) > 1){ // if multiple error foreach($img->getErrors() as $e) { $results .= $e." "; } } else { // if single error $results = $img->getErrors(); } } }else{ $results = ""; } $page->of(true); }else{ $results = "Error"; }
  11. ouch, this one I missed, thanks Adrian
  12. Hello guys I've been searching for a way to login users without password (after they login with facebook button), I've found some api functions that seem to be working but I still have some issue. What I do is: $checkUser = $users->get("login_facebook_id=$uid"); if($checkUser->id){ $users->setCurrentUser($checkUser); $user = $users->getCurrentUser(); $session->_user_id = $user->id; $session->redirect("/",false); } The code looks working because after setting the session the current $user->id returns the user I found, but after the redirect $user id back to guest (40)...any idea why ? Thanks
  13. I tried starting from something like this with no luck
  14. I really don't know, but my site now is handling millions of requests per day without any problem since the switch...so something is there but I'm no DB expert...and I have a very powerful machine, 32core 256GB RAM, ssd etc...no apache or cpanel or other slow stuff...
×
×
  • Create New...