Category: Web Application Development
-
Post Views: 14 Password is empty should be based on security considerations, the analysis code execution process, the solution is as follows, in Password I use MD5 encryption: Notification program after ucenter changes the password in the background: ucenter.kchmc.net/control/admin/user.php //$_env[‘note’]->add(updatepw,username=.urlencode($username).&password=); $_env[‘note’]->add(updatepw,username=.urlencode($username).&password=.md5($orgpassword)); UCenter Notification Program: ucenter.kchmc.net/control/user.php //$_env[‘note’]->add(updatepw,username=.urlencode($username).&password=); $_env[‘note’]->add(updatepw,username=.urlencode($username).&password=.md5($newpw)); If the password is changed in the A application, and other applications that…
-
Post Views: 10 Analyze the code execution process: 1. kchmc.net/phpcms/modules/member/index.php $SynLogoutstr = $this->client-> ps_member_synlogout(); 2. kchmc.net/phpcms/modules/member/classes/client.class.php Modified to be as follows: /** * Synchronized exit * @param string $UID * @return string javascript user sync exit js */ public function ps_member_synlogout() { //return $this->_ps_send(synlogout, array()); return $this->_ps_send(synlogout, array(synlogout=>1)); } 3. kchmc.net/phpsso_server/phpcms/modules/phpsso/classes/phpsso.class.php The reason is what is indicated in the red…
-
Post Views: 13 To some extent, the execution is successful, and the member data in PHPSSO is synchronized to UC. Users who have previously registered in PHPCMS V9 can log in and activate in other UCs that should be registered!
-
Post Views: 14 Initial plan adoptshttp://www.jplayer.org/的,但是发现其在IE6下不支持全屏,而http://www.jwplayer.com/对于IE6/7的支持也不甚理想了,最终决定还是采用http://flowplayer.org/! Provide download address: https://releases.flowplayer.org/5.4.6/flowplayer-5.4.6.zip https://releases.flowplayer.org/flowplayer/flowplayer-3.2.18.zip Provides a code example that implements RTMP live broadcast: flowplayer The final effect is as follows:
-
Post Views: 14 Solution: Add style=”z-index: 11;” on the parent element of the video embed code, which is still valid even in full screen! Final screenshot:
-
Post Views: 13 The most initial code: $this->widget(zii.widgets.jui.cjuidatepicker, array( name=>mendtime, value=>date(Y-M-D, time()), Language=>yii::app()->getLanguage(), options=>array( showanim=>slidedown, changeyear=>true, changemonth=>true, showweek=>true, autosize=>true, dateformat=>YY-MM-DD, maxdate=>0, Mindate=>-10d, , HtmlOptions=>array( readonly=>readonly, class=>txt, Style=>width:200px ) )); Post-realization: Implementation process: 1. Extension download on the official website of yii:http://www.yiiframework.com/extension/datetimepicker/ 2. Copy the cjuidateTimePicker folder to the protected\extensions directory; 3. tohttps://github.com/trentrichardson/jQuery-Timepicker-Addon下载语言包,因为yii扩展中没有语言包; 4. Look in the file CJUIDateTimePicker.php: $CS->RegisterScriptFile($assets.self::assets_name..js,cclientScript::pos_end); add…
-
Post Views: 10 The actual rules of the js function are: if (hasError == false) { return false; } else { return true; // If it returns true, the form submission operation will continue! }
-
Post Views: 11 View code: View interface: Post print after submission: Requirement: question_type is to be inserted into the database, as a string Solution 1, directly reset $_POST[‘QuestionOrder’][‘question_type’]: Reprint out the POST variable: Solution 2: The result is that both solutions can be inserted in the question_type problem type (1 replenishment, 2 exchange, 3 returns, 4 refunds, 5…
-
Post Views: 12 I finally decided to disable the enabled modules in php.ini to disable, and then restart Apache, and finally solve this problem! The final effect is as follows: