Warning: Table './tossfest/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;./tossfest/cache_filter&amp;#039; is marked as crashed and should be repaired\nquery: SELECT data, created, headers, expire FROM cache_filter WHERE cid = &amp;#039;3:a488797f88807dd7593ff1ce024d5ce9&amp;#039;</em> in <em>/var/www/tossfest/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://tossfest.opentle.org/node/53', '', '38.103.63.57', 1231557292) in /var/www/tossfest/includes/database.mysql.inc on line 172

Warning: Table './tossfest/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;./tossfest/cache_filter&amp;#039; is marked as crashed and should be repaired\nquery: LOCK TABLES cache_filter WRITE</em> in <em>/var/www/tossfest/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://tossfest.opentle.org/node/53', '', '38.103.63.57', 1231557292) in /var/www/tossfest/includes/database.mysql.inc on line 172

Warning: Table './tossfest/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;./tossfest/cache_filter&amp;#039; is marked as crashed and should be repaired\nquery: UPDATE cache_filter SET data = &amp;#039;&amp;lt;p&amp;gt;มาทำความเข้าในในเรื่อง ผู้ใช้ (user) กันก่อน ใน Drupal ตอนแรกหลังจากติดตั้ง จะมีกลุ่มผู้ใช้อยู่ 3 ลักษณะ คือ administrator authenticated user และ anonymous user&amp;lt;/p&amp;gt;\\n&amp;lt;ol&amp;gt;\\n&amp;lt;li&amp;gt;administrator สามารถกระทำการใด ๆ ได้ทุกอย่าง หรือเป็น God father ของเว็บไซต์นั้น&amp;lt in /var/www/tossfest/includes/database.mysql.inc on line 172

Warning: Table './tossfest/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;./tossfest/comments&amp;#039; is marked as crashed and should be repaired\nquery: SELECT COUNT(*) FROM comments WHERE nid = 53 AND status = 0</em> in <em>/var/www/tossfest/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://tossfest.opentle.org/node/53', '', '38.103.63.57', 1231557292) in /var/www/tossfest/includes/database.mysql.inc on line 172

Warning: Table './tossfest/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;./tossfest/comments&amp;#039; is marked as crashed and should be repaired\nquery: SELECT c.cid as cid, c.pid, c.nid, c.subject, c.comment, c.format, c.timestamp, c.name, c.mail, c.homepage, u.uid, u.name AS registered_name, u.picture, u.data, c.score, c.users, c.thread, c.status FROM comments c INNER JOIN users u ON c.uid = u.uid WHERE c.nid = 53 AND c.status = 0 ORDER BY c.thread DESC LIMIT 0, 50</em> in <em>/var/www/tossfest/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://tossfest.opentle.org/node/53', '', '38.103.63.57', 1231557292) in /var/www/tossfest/includes/database.mysql.inc on line 172
Access control | Thailand Open Source Software Festival

Access control

  • user warning: Table './tossfest/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire FROM cache_filter WHERE cid = '3:a488797f88807dd7593ff1ce024d5ce9' in /var/www/tossfest/includes/database.mysql.inc on line 172.
  • user warning: Table './tossfest/cache_filter' is marked as crashed and should be repaired query: LOCK TABLES cache_filter WRITE in /var/www/tossfest/includes/database.mysql.inc on line 172.
  • user warning: Table './tossfest/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p>มาทำความเข้าในในเรื่อง ผู้ใช้ (user) กันก่อน ใน Drupal ตอนแรกหลังจากติดตั้ง จะมีกลุ่มผู้ใช้อยู่ 3 ลักษณะ คือ administrator authenticated user และ anonymous user</p>\n<ol>\n<li>administrator สามารถกระทำการใด ๆ ได้ทุกอย่าง หรือเป็น God father ของเว็บไซต์นั้น</li>\n<li>authenticated user คือผู้ใช้โดยทั่วไปที่ต้องล็อกอินเข้ามา แน่นอนว่าต้องผ่านขั้นตอนการสมัครก่อนเพื่อรับ username และ password มีสิทธิพอประมาณ ในการโพสต์ เสนอความคิดเห็น เขียน Blog ของตัวเองและบางครั้งสามารถแก้ไขหรือเพิ่มเติม page ได้ด้วย แต่การแสดงออกสู่สาธารณะอาจจะต้องผ่านการทบทวนจาก ผู้มีสิทธิหรือหน้าที่ในการคัดกรองโดยตรง ในตอนแรกคือ administrator</li>\n<li>anonymous user คือผู้คนทั่วไปที่ไม่ได้ล็อกอินเข้ามาในระบบ ผู้ใช้ชนิดนี้อาจจะมีสิทธิแค่อ่านกระทู้และเสนอความคิดเห็นได้</li>\n</ol>\n<p>สิทธิต่าง ๆ ในการจัดการเว็บไซต์ของผู้ใช้ถูกควบคุมโดยผู้ดูและระบบ (administrator) ผู้ดูแลระบบสามารถเพิ่มสิทธิต่าง ๆ ได้โดยไปที่เมนู administrator-&gt;user management-&gt;access control ซึ่งใช้วิธีการเช็กถูกที่ checkbox ดังรูป<br /><img src=\"/files/u1/access_control.png\" width=\"716\" height=\"456\" /><br /> หากเราต้องการเพิ่มกลุ่ม ผู้ใช้ให้ไปที่เมนู administer-&gt;user management-&gt;roles โดยจะกล่าวในรายละเอียดต่อไป</p>\n', created = 1231557292, expire = 1231643692, headers = '' WHERE cid = '3:a488797f88807dd7593ff1ce024d5ce9' in /var/www/tossfest/includes/database.mysql.inc on line 172.
  • user warning: Table './tossfest/comments' is marked as crashed and should be repaired query: SELECT COUNT(*) FROM comments WHERE nid = 53 AND status = 0 in /var/www/tossfest/includes/database.mysql.inc on line 172.
  • user warning: Table './tossfest/comments' is marked as crashed and should be repaired query: SELECT c.cid as cid, c.pid, c.nid, c.subject, c.comment, c.format, c.timestamp, c.name, c.mail, c.homepage, u.uid, u.name AS registered_name, u.picture, u.data, c.score, c.users, c.thread, c.status FROM comments c INNER JOIN users u ON c.uid = u.uid WHERE c.nid = 53 AND c.status = 0 ORDER BY c.thread DESC LIMIT 0, 50 in /var/www/tossfest/includes/database.mysql.inc on line 172.

มาทำความเข้าในในเรื่อง ผู้ใช้ (user) กันก่อน ใน Drupal ตอนแรกหลังจากติดตั้ง จะมีกลุ่มผู้ใช้อยู่ 3 ลักษณะ คือ administrator authenticated user และ anonymous user

  1. administrator สามารถกระทำการใด ๆ ได้ทุกอย่าง หรือเป็น God father ของเว็บไซต์นั้น
  2. authenticated user คือผู้ใช้โดยทั่วไปที่ต้องล็อกอินเข้ามา แน่นอนว่าต้องผ่านขั้นตอนการสมัครก่อนเพื่อรับ username และ password มีสิทธิพอประมาณ ในการโพสต์ เสนอความคิดเห็น เขียน Blog ของตัวเองและบางครั้งสามารถแก้ไขหรือเพิ่มเติม page ได้ด้วย แต่การแสดงออกสู่สาธารณะอาจจะต้องผ่านการทบทวนจาก ผู้มีสิทธิหรือหน้าที่ในการคัดกรองโดยตรง ในตอนแรกคือ administrator
  3. anonymous user คือผู้คนทั่วไปที่ไม่ได้ล็อกอินเข้ามาในระบบ ผู้ใช้ชนิดนี้อาจจะมีสิทธิแค่อ่านกระทู้และเสนอความคิดเห็นได้

สิทธิต่าง ๆ ในการจัดการเว็บไซต์ของผู้ใช้ถูกควบคุมโดยผู้ดูและระบบ (administrator) ผู้ดูแลระบบสามารถเพิ่มสิทธิต่าง ๆ ได้โดยไปที่เมนู administrator->user management->access control ซึ่งใช้วิธีการเช็กถูกที่ checkbox ดังรูป

หากเราต้องการเพิ่มกลุ่ม ผู้ใช้ให้ไปที่เมนู administer->user management->roles โดยจะกล่าวในรายละเอียดต่อไป


Warning: Table './tossfest/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;./tossfest/accesslog&amp;#039; is marked as crashed and should be repaired\nquery: INSERT INTO accesslog (title, path, url, hostname, uid, sid, timer, timestamp) values(&amp;#039;Access control&amp;#039;, &amp;#039;node/53&amp;#039;, &amp;#039;&amp;#039;, &amp;#039;38.103.63.57&amp;#039;, 0, &amp;#039;43f7fa6ea6be438ab7965f9dcebc88d3&amp;#039;, 343, 1231557292)</em> in <em>/var/www/tossfest/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://tossfest.opentle.org/node/53', '', '38.103.63.57', 1231557292) in /var/www/tossfest/includes/database.mysql.inc on line 172

Warning: Table './tossfest/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;./tossfest/sessions&amp;#039; is marked as crashed and should be repaired\nquery: SELECT sid FROM sessions WHERE sid = &amp;#039;43f7fa6ea6be438ab7965f9dcebc88d3&amp;#039;</em> in <em>/var/www/tossfest/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://tossfest.opentle.org/node/53', '', '38.103.63.57', 1231557292) in /var/www/tossfest/includes/database.mysql.inc on line 172

Warning: Table './tossfest/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;./tossfest/sessions&amp;#039; is marked as crashed and should be repaired\nquery: INSERT INTO sessions (sid, uid, cache, hostname, session, timestamp) VALUES (&amp;#039;43f7fa6ea6be438ab7965f9dcebc88d3&amp;#039;, 0, 0, &amp;#039;38.103.63.57&amp;#039;, &amp;#039;messages|a:1:{s:5:\\&amp;quot;error\\&amp;quot;;a:1:{i:0;s:406:\\&amp;quot;user warning: Table &amp;amp;#039;./tossfest/accesslog&amp;amp;#039; is marked as crashed and should be repaired\\nquery: INSERT INTO accesslog (title, path, url, hostname, uid, sid, timer, timestamp) values(&amp;amp;#039;Access control&amp;amp;#039;, &amp;amp;#039;node/53&amp;amp;#039;, &amp;amp;#039;&amp;amp;#039;, &amp;amp;#039;38.103.63.57&amp;amp;#039; in /var/www/tossfest/includes/database.mysql.inc on line 172