|
出現下列警告訊息 Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0 解決方式: 可以修改 /usr/local/etc/php.ini session.bug_compat_42 = 0 session.bug_compat_warn = 0 修改完重新啟動apache,即可拿掉警告訊息 |
|
學生管理者自行修改權限 導致無法使用最權限問題解決方式
進資料庫,匯入一個data.sql檔案 內容如下: http://web2.dgjh.tyc.edu.tw/class/instructionfile/downloadfile.php?groupname=admin&instructionfilename=481.sql&instructionfileid=481 |
|
修改main.php 約88行附近 修改如下 ------------------------------------------------- //MUSIC處理音樂檔 if ($groupsession["groupmusic"] == "") $tempmusic=""; else { //加入下一行 $tempmusic=""; //$tempmusic=......... // src=........ //$tempmusic=........ |
|
1.亂碼問題,原因應是與lifetype有關,旭威罕先生幫忙將資料庫改成binary 編碼,解決了亂碼問題。 2.但是由2.5版升級到3.0版(class4),產生部分問題,由於升級過程僅將資料 庫直接匯出,再匯入新機器,程式部分是直接覆蓋舊程式,沒有依照升級說 明中的install動作,所以有些資料表沒有新增,看看新程式中的class.sql ,以了解新增了哪些資料表。 3.手動新增部分 ------------------------------------------------------------ 新增一個資料表newactivity CREATE TABLE `newactivity` ( `newactivityid` bigint(20) NOT NULL auto_increment, `activityname` varchar(50) NOT NULL default '', `name` varchar(50) NOT NULL default '', `activityfile` text NOT NULL, `activityhit` tinyint(4) NOT NULL default '0', `activitydate` date NOT NULL default '0000-00-00', `groupname` varchar(50) NOT NULL default '', `accountname` varchar(50) NOT NULL default '', PRIMARY KEY (`newactivityid`) ) ENGINE=MyISAM DEFAULT CHARSET=binary AUTO_INCREMENT=1 ; ------------------------------------------------------------ 在worklist資料表中,新增一筆紀錄 20 newactivity 新活動照片區 2 general n ------------------------------------------------------------ 在personalworklistcnanme資料表中,新增一個欄位 newactivity var(50) BINARY 否 ------------------------------------------------------------ 如此便可解決升級成3.0版後,啟動新網頁,目錄空白問題 使用同樣步驟,進行class1與stu的修改 |
|
instructionfile目錄下 修改addform.php與addform.tpl 上限122M |
|
stushow目錄下 修改addfileform.php與addfileform.tpl 上限122M |
|
作品展示-部分文字修改 /stushow/templates/showallstu.tpl "作品展示"改為"--" showstu--showallstu.php "教師評語"改成"說明" |
|
trostu/addform.php activity/addfileform.php
修改上傳照片格式為jpg或gif皆可 if (($a[1] != "jpg")&($a[1] != "gif")&($a[1] != "JPG")&($a[1] != "GIF")) $rowproblem="你上傳的檔案可能會危害系統,請按照系統指示,上傳照片檔案,附檔名必須為jpg.gif.JPG.GIF!";
**修改上傳檔案大小限制. |
|
新版與舊版轉換問題 啟動帳號問題 worklist中.將newactivities拿掉 |
|
修改 /stushow/templates/showallstu.tpl 21行 將"瀏覽人數"拿掉 因為:次數已經無效
修改 /stushow/showallstu.php 59行 將"尚未有任何說明"改成".."
原因: 解決方法-作品區-瀏覽檔案-產生錯誤訊息 /stushow/downloadfile.php 將第二行 session_start(); 改成 //session_start(); 即可解決直接開啟問題 但是瀏覽次數卻無法正常增加....待解 |