Unsupported scripts and control panel web app for a hosting company
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <div class="block">
  2. <h2>UTD-Hosting terms and conditions</h2>
  3. <div class="innerblock longtext" style="text-align: justify;">
  4. <p class="blurb">
  5. Please review these updated terms and conditions. Sections that
  6. have been added since the previews version of these conditions are
  7. coloured blue. Sections that have been modified are coloured red.
  8. </p>
  9. <?PHP
  10. $diff = `diff -e /home/utd/common/tac-old.txt /home/utd/common/tac.txt`;
  11. $changes = array();
  12. $status = 0;
  13. foreach (explode("\n", $diff) as $line) {
  14. if ($status === 0) {
  15. $status = substr(trim($line), -1);
  16. } else if (trim($line) == '.') {
  17. $status = 0;
  18. } else {
  19. $changes[trim($line)] = $status;
  20. }
  21. }
  22. $stuff = file('/home/utd/common/tac.txt');
  23. $meep = trim(array_shift($stuff));
  24. foreach ($stuff as $line) {
  25. $line = trim($line);
  26. if (empty($line)) { continue; }
  27. if (isset($changes[$line])) {
  28. echo '<div class="change_' . $changes[$line] . '">' . $line . '</div>';
  29. } else {
  30. echo $line;
  31. }
  32. echo "\n";
  33. }
  34. ?>
  35. </div>
  36. </div>
  37. <div class="block">
  38. <h2>Acceptance</h2>
  39. <div class="innerblock">
  40. <p class="blurb">
  41. If you agree to these Terms and Conditions, please type the phrase 'I AGREE'
  42. into the text box below, and click on the 'Confirm' button. If you do not
  43. agree with these terms, please
  44. contact UTD-Hosting support (support@utd-hosting.com) immediately.
  45. </p>
  46. <div style="margin-top: 20px;">
  47. <form action="<?PHP echo CP_PATH; ?>tac" method="post">
  48. <input type="hidden" name="version" value="<?PHP echo $meep; ?>">
  49. <input type="text" name="agree"><input type="submit" value="Confirm">
  50. </form>
  51. </div>
  52. </div>
  53. </div>