Jump to content

rick

Members
  • Posts

    646
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by rick

  1. Have you tried the actual path rather than docroot?
  2. No. If both sites are now functional, then your hosting doesn't need special treatment.
  3. As long as your virtual hosts file points each domain to the proper doc root, you should not have any issues moving domain2 over to the domain1 host and run it in a sub dir. I do this many times with clients. You may also need to update domain2 htaccess and config.
  4. Probably the easiest method would be having their clients each with their own page, and each report is it's own child page. One template for the client pages and one template for the pdf pages. You can add the necessary fields to the pdf template to facilitate searching. Personally, I shy away from building intelligence into a naming conventions. You might have your client person(s) doing the uploading select the client then select the pdf file, and enter any other necessary data associated with that report. If your client already has a data system from which the reports are generated at a specific interval, then you might tap into that workflow. You might also consider using the created user ids for access control. Your client has clients (customers). Each customer would be a user in the system. That customer user id is used for their page and subsequent report page. Now you can use the logged in user to determine which pages are accessible. Just some thoughts out loud.
  5. When pages are automatically sorted on a field, the move option is still enabled. Attempting to move one of those pages results in the following error: Your sort was not saved because these pages are automatically sorted by 'fieldname' PW .179 PHP 7.4 Personally, I think the move option should be removed when a field sort is defined, rather than just catching this exception.
  6. Make sure that your from address is the same as your user (login) address, and that you have the dns records defined as netcarver stated. On a similar note, I don't use mailinabox, rather an old squirrel mail install for linuxdude. It is a pita running your own mail server by keeping up with the spammers. And you will have spammers.
  7. Can you edit the topic as solved so others know this is the place for answers to similar issues.
  8. From your segment... $p->of(false); // output formatting should be off prior to editing page data. $p->singleImage->add($remoteUrl); //grab the image. $p->save(); $p->of(false); // page save resets output formatting, so turn it off again. $image = $p->singleImage->first(); //load up image that was just saved. $newFilename = $parentName . '-' . $childName . '.' . strtolower($image->ext()); $p->singleImage->rename($image, $newFilename); $p->save(); //save changes to page.
  9. Do you have output formatting off prior to working with the page data? It's not shown in your snippet, so I'm asking if it was included above the code segment you posted.
  10. I doubt it is an email server issue or wiremail issue. The logs show one email sent but yet you receive two. Correct? What email client are you using and do you have any rules defined for that email address?
  11. Exactly. That is the crux of the problem here. It's not any different than the other module developers here selling pro versions. Unscrupulous people will always find a way to circumvent licensing. The best you can do is trust the customer to honor your license models. You save the license id, transaction id, or whatever id for future reference. It could be in a database or a spreadsheet so that any inquiries from a customer can be checked against that database for validity.
  12. Basically, the simplest solution, for example, is to use something similar to paypal's 'buy now' buttons; one for each license type. It really doesn't matter about a specific license ID unless you want to identify a particular user when they request support, etc., and then you can pass a unique ID which is returned with the transaction confirmation. In this example, you don't need to mess with any type of license key entry in your module; The customer just downloads the module from an email link. You insert the 'transaction id' in the email for their records that you can compare with your database entry at some future date. I know my replies seem somewhat 'negative' toward a viable solution and I apologize for that. On a positive note, one method I used many years ago was to keep certain 'key' functions on the server. The program would pass the license key and specific data to be processed on the server. If the license was valid, then the result was returned to the program for further processing. Again, this requires a 'phone home' procedure, which most people, including myself, don't really like.
  13. That is a question I've been working on since the mid 90s. There is no simple solution when dealing with publicly viewable code. Generating a unique key is straightforward (eg, GUID, etc.). Validating the key requires a 'phone home' procedure, whether you do it on install or every time the code is executed is a choice to make. The problem lies with controlling the source code execution based on that validation. It is not possible to accomplish that with publicly viewable code.
  14. I'm not understanding this statement. Of course nothing you changed will be reflected until you save those changes. You edit existing content. Save those edits. Refresh the browser. Am I misunderstanding your goal?
  15. For the front-end, I use the header meta cache directives to disable the browser cache during development. I can comment them out to test caching See this link for more info.
  16. Hi @stanoliver, What are you wanting to do with wiremail? In general, Using the example from the MDN link I posted, this form contains three options (radio buttons). You will notice that each radio button has the same name (contact), effectively creating an array, or group. Remember that only one option can be selected (or no option). // I've added a few things to the example to help clarify my explanation. // I've added the action and method to the example. // I've added the required attribute to the input element. <form action="" method="post"> <p>Please select your preferred contact method:</p> <div> <input type="radio" id="contactChoice1" name="contact" value="email" required> <label for="contactChoice1">Email</label> <input type="radio" id="contactChoice2" name="contact" value="phone" required> <label for="contactChoice2">Phone</label> <input type="radio" id="contactChoice3" name="contact" value="mail" required> <label for="contactChoice3">Mail</label> </div> <div> <button type="submit">Submit</button> </div> </form> When this form is submitted, only a selected radio button is submitted. For example, if a user selects "Phone", then the server receives $_POST["contact"]="phone". Since I specified each option is required, then the user *must select one. If the options were not required, then if no option was selected, there would not be a contact parameter. So in your server side script (the php file associated with the template) you would do something like this: $contact = $input->post('contact'); // $contact now contains the selected value, either "email", "phone", or "mail" if( $contact == "email" ) { // do some email stuff. } elseif ( $contact == "phone" ) { // do some phone stuff. } elseif( $contact == "mail" ) { // do some mail stuff. } Is this what you are looking for? If not, please give me more information to go on.
  17. For reference... Input type radio Regardless of how many options you make available to the user, each one has a unique value. Since the value of the selected radio button is submitted with the form, the only sanitation you need is to check whether the submitted option is in, for example an array of valid values. Just to clarify terminology, a radio button and a check box are two different types of inputs. A radio button is usually presented as a set of options in which only one can be selected, eg, Select Size: ()small, ()medium, ()large. A check box on the other hand is displayed as a single on/off indicator for a specific option, eg, Display User Name [yes|no] <- checked or unchecked.
  18. Welcome to the forum. Great post!
  19. The only thing I can see at this time is the word "remote". Any time you venture outside the loopback (127.0.0.1), all sorts of external factors come into play; dns lookup, hop latency, etc. I'm not suggesting that is where the problem lies, just that more areas are opened up to check this issue. Do you (or any of your team) experience this delay via SSH, SCP, SFTP, etc.? Is there noticeable improvement at different times of the day? Any firewall in place? Can you tail your network to see if it jives with Tracy's database request listing? I'm just thinkin' out loud.
  20. @Jonathan Lahijani, One more thing I want to add to the "basic" setup is the use of rsync. I'm sure you're aware of it's uses, I just thought I'd mention it since it's not part of the LAMP package install.
×
×
  • Create New...