Jump to content

C.A.T

Members
  • Posts

    11
  • Joined

  • Last visited

Previous Fields

  • Languages
    html,xhtml, javascript.

Profile Information

  • Interests
    Chemistry, Physics, Computer Science, Mathematics, Astronomy

C.A.T's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. C.A.T

    Quizzi, help please?

    I've resolved the autocomplete issue using the code from https://www.w3schools.com/howto/howto_js_autocomplete.asp and merged with the Quizzi ask_panel form. See attached ask_panel.html.txt (rename as ask_panel.html) if someone else may require a similar autocomplete function in their form. Quizzi ask_panel form. <?php ?> <form id="myForm" action="../../functions/_admin/ask.php" method="POST" accept-charset="UTF-8"> <table id="view" > <tr> <td style="background:url('../../libs/imgs/topbarbg.png');" colspan="5">Question<br /><textarea name="ques" id="ques"></textarea></td> </tr> <tr> <td><input style="padding:5px;width:50px;height:50px;font-size:30px;" type="number" name="points" value="5"/></td> <td><input type="radio" checked="yes" name="opt" class="opt" value="opt1" /><input type="text" name="opt1" id="opt1"/></td> <td><input type="radio" name="opt" class="opt" value="opt2" /><input type="text" name="opt2" id="opt2"/></td> <td><input type="radio" name="opt" class="opt" value="opt3" /><input type="text" name="opt3" id="opt3"/></td> <td><input type="radio" name="opt" class="opt" value="opt4" /><input type="text" name="opt4" id="opt4"/></td> </tr> <td colspan="5"> <div id="ack" class="response"></div> <input type="hidden" name="token" value="<?php echo $_SESSION['token'] ; ?>" /> <button id="submit" value="Ask!">Ask!</button> <script src="script.js" type="text/javascript" language="javascript"></script></td> </tr> </table> </form> ask_panel.html.txt
  2. C.A.T

    Quizzi, help please?

    Hello all, Hopefully someone can assist me with this issue? All attempts to contact the author of Quizzi has failed. Quizzi (codecanyon-8878909-the-electronic-quiz-platform-quizzi.zip) purchased from Codecanyon is a PHP web server based quiz forum. It serves me well for Intranet and Webhost quiz forums at pubs and clubs, but unfortunately has a major downside as explained below. (1) all quiz questions must be either typed or cut'n'pasted each time and again when the reset is run, (2) the reset clears all previously asked questions from the MYSQL database, (3) the web browser auto-complete does help, but still requires either typed or cut'n'pasted questions each time. The only workaround I've found is to open multiple web browser tabs, cut'n'pasted the quiz questions in a new tab, well before the quiz begins. See snapshot q2a.jpg So, my questions for assistance is the following please. How can I edit the Quizzi code (either adding or removing PHP) to... Save the typed or cut'n'pasted quiz questions, and simply import text, or auto-complete, on the ASk panel again when the reset is run? OR, Import text, or auto-complete, on the ASk panel, using javascript that reads a CSV (Comma-separated values) file? OR, Import text, or auto-complete, on the ASk panel, using PHP that reads saved questions on the MYSQL database? The ASK panel PHP code. <?php ?> <form id="myForm" action="../../functions/_admin/ask.php" method="POST" accept-charset="UTF-8"> <table id="view" > <tr> <td style="background:url('../../libs/imgs/topbarbg.png');" colspan="5">Question<br /><textarea name="ques" id="ques"></textarea></td> </tr> <tr> <td><input style="padding:5px;width:50px;height:50px;font-size:30px;" type="number" name="points" value="5"/></td> <td><input type="radio" checked="yes" name="opt" class="opt" value="opt1" /><input type="text" name="opt1" id="opt1"/></td> <td><input type="radio" name="opt" class="opt" value="opt2" /><input type="text" name="opt2" id="opt2"/></td> <td><input type="radio" name="opt" class="opt" value="opt3" /><input type="text" name="opt3" id="opt3"/></td> <td><input type="radio" name="opt" class="opt" value="opt4" /><input type="text" name="opt4" id="opt4"/></td> </tr> <td colspan="5"> <div id="ack" class="response"></div> <input type="hidden" name="token" value="<?php echo $_SESSION['token'] ; ?>" /> <button id="submit" value="Ask!">Ask!</button> <script src="script.js" type="text/javascript" language="javascript"></script></td> </tr> <tr> <td style="background:url('../../libs/imgs/topbarbg.png');" colspan="5">Question<br /><textarea name="ques" id="ques"></textarea></td> </tr> <tr> <td><input style="padding:5px;width:50px;height:50px;font-size:30px;" type="number" name="points" value="5"/></td> <td><input type="radio" checked="yes" name="opt" class="opt" value="opt1" /><input type="text" name="opt1" id="opt1"/></td> <td><input type="radio" name="opt" class="opt" value="opt2" /><input type="text" name="opt2" id="opt2"/></td> <td><input type="radio" name="opt" class="opt" value="opt3" /><input type="text" name="opt3" id="opt3"/></td> <td><input type="radio" name="opt" class="opt" value="opt4" /><input type="text" name="opt4" id="opt4"/></td> </tr> <td colspan="5"> <div id="ack" class="response"></div> <input type="hidden" name="token" value="<?php echo $_SESSION['token'] ; ?>" /> <button id="submit" value="Ask!">Ask!</button> <script src="script.js" type="text/javascript" language="javascript"></script></td> </tr> <td style="background:url('../../libs/imgs/topbarbg.png');" colspan="5">Question<br /><textarea name="ques" id="ques"></textarea></td> </tr> <tr> <td><input style="padding:5px;width:50px;height:50px;font-size:30px;" type="number" name="points" value="5"/></td> <td><input type="radio" checked="yes" name="opt" class="opt" value="opt1" /><input type="text" name="opt1" id="opt1"/></td> <td><input type="radio" name="opt" class="opt" value="opt2" /><input type="text" name="opt2" id="opt2"/></td> <td><input type="radio" name="opt" class="opt" value="opt3" /><input type="text" name="opt3" id="opt3"/></td> <td><input type="radio" name="opt" class="opt" value="opt4" /><input type="text" name="opt4" id="opt4"/></td> </tr> <td colspan="5"> <div id="ack" class="response"></div> <input type="hidden" name="token" value="<?php echo $_SESSION['token'] ; ?>" /> <button id="submit" value="Ask!">Ask!</button> <script src="script.js" type="text/javascript" language="javascript"></script></td> </tr> <td style="background:url('../../libs/imgs/topbarbg.png');" colspan="5">Question<br /><textarea name="ques" id="ques"></textarea></td> </tr> <tr> <td><input style="padding:5px;width:50px;height:50px;font-size:30px;" type="number" name="points" value="5"/></td> <td><input type="radio" checked="yes" name="opt" class="opt" value="opt1" /><input type="text" name="opt1" id="opt1"/></td> <td><input type="radio" name="opt" class="opt" value="opt2" /><input type="text" name="opt2" id="opt2"/></td> <td><input type="radio" name="opt" class="opt" value="opt3" /><input type="text" name="opt3" id="opt3"/></td> <td><input type="radio" name="opt" class="opt" value="opt4" /><input type="text" name="opt4" id="opt4"/></td> </tr> <td colspan="5"> <div id="ack" class="response"></div> <input type="hidden" name="token" value="<?php echo $_SESSION['token'] ; ?>" /> <button id="submit" value="Ask!">Ask!</button> <script src="script.js" type="text/javascript" language="javascript"></script></td> </tr> </table> </form> askpanel.php.txt
  3. C.A.T

    Some advice please!

    Thank you for your input. The modified php script, 'find and copy files to another directory' functioned well, and with the help of filezilla ftp client - all files are now sorted. As for the PHP malware, these helped. https://support.tilaa.com/hc/en-us/articles/228651727-How-can-I-scan-my-server-for-malware-infections- https://www.gavick.com/blog/standalone-security-scanners https://www.webroot.com/blog/2011/02/22/malicious-php-scripts-on-the-rise/ https://github.com/mikestowe/Malicious-Code-Scanner https://github.com/nbs-system/php-malware-finder
  4. C.A.T

    Some advice please!

    The 'php - find and copy files to another directory' script runs fine on the test server but doesn't copy the files to the desired ./download/articles Would, copyfiles('*.doc', '__FILE__/download/articles'); resolve the issue?
  5. C.A.T

    Some advice please!

    It is said, Seek and You Shall Find, php - find and copy files to another directory. https://gist.github.com/jycr753/22f2f2c14bffd1da8c77 Works well, and by changing the "copyfiles" it can do what I needed. copyfiles('*.doc', '../download/articles'); copyfiles('*.pdf', '../download/articles'); copyfiles('*.gif', '../download/images');
  6. C.A.T

    Some advice please!

    Thank you for the input. I'm looking at other code to write my own, but my php coding is basic for now. https://stackoverflow.com/questions/19139434/php-move-a-file-into-a-different-folder-on-the-server https://stackoverflow.com/questions/2082138/move-all-files-in-a-folder-to-another http://ben.lobaugh.net/blog/864/php-5-recursively-move-or-copy-files https://stackoverflow.com/questions/5707806/recursive-copy-of-directory https://stackoverflow.com/questions/14345714/recursively-moving-all-files-of-a-specific-type-into-a-target-directory-in-bash http://www.aidanlister.com/2004/04/recursively-copying-directories-in-php/ http://board.phpbuilder.com/showthread.php?10392349-PHP-recursive-copy-function-to-copy-files-from-many-source-folders-to-destinations In regards to those suspect php files, thank you for the confirmation.
  7. C.A.T

    Some advice please!

    Some advice on 3 issues please! Issue 1. {} denotes multiple sub-directories. I need to move multiple files on a remote server from directory /storeage/{} to /download/articles/ and /download/images/ so I share with PHP Easy Downloader V2.0. I've researched at http://www.w3schools.com/php/func_filesystem_move_uploaded_file.asp and also found this script, gist.github.com/baamenabar/f0ee62fd42fed31b60ce What I need it a move.php in /storeage/{} that will scan recursively through the directory and sub-directories and move all *.pdf, *.zip, *.rar, *.doc, files to /download/articles/ What I need it a move.php in /storeage/{} that will scan recursively through the directory and sub-directories and move all *.gif, *.jpg, *.png, *.tif, files to /download/images/ I found this script, https://gist.github.com/baamenabar/f0ee62fd42fed31b60ce and was wondering if it can be modified to my needs? Issue 2. I can't seem to download PHP Easy Downloader V2.0. http://www.ironclad.net/scripts/ Has anyone got this script, or suggest a better one? Issue 3. On the remote server, I found some suspect PHP files, what are they, and what are they doing? 9a79229c_prevv1.php.txt
  8. Yes I have informed the author with the http://phptester.net/ analysis, but it's futile. I have made a comment that SCS failed on php-5.2.x
  9. At Ingolme, Thank you for your reply. According to the site, http://codecanyon.net/item/scs-web-security-ssl-alternative-more/13977657?s_rank=15 it states, Software Version: PHP 5.x, PHP 5.0 - 5.2, PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6 Obviously, false advertising. Yes, I agree without reservation. The cost of renewing the shared SSL certificate each year, and upstanding to the latest PHP is ridiculous.
  10. I have found myself here after a conundrum in purchasing PHP software SCS Web Security, http://codecanyon.net/item/scs-web-security-ssl-alternative-more/13977657?s_rank=15 All attempts to contact the Author 'GreenyCode' with a valid support license have failed. Envato Marketing is assisting in contacting the author with no success. The host server is GoDaddy with PHP Version 5.2.17 SCS Web Security syntax errors ARE a result of PHP version 5.2.X https://www.piliapp.com/php-syntax-check/ php-5.3.21 > NO syntax error. php-5.2.17 > syntax error are: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in BigInteger.php on line 332 Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'$'' in BigInteger.php on line 390 http://phptester.net/ PHP 5.2 > FATAL ERROR syntax error, unexpected T_STATIC, expecting T_STRING or T_VARIABLE or '$' on line number 390 PHP 5.3 > NO syntax error. I need assistance in correcting the syntax errors in BigInteger.php BigInteger.php.txt
  11. Greetings ALL! I'm C.A.T, acronym for Chemical Analysis Technology. Glad to become a member.
×
×
  • Create New...