使用mount命令#mount -t cifs -o username=abc,password=1234 //192.168.1.10/linux /mnt/linux#mount -t cifs -o username=vip,password=111 //10.102.1.71/work /a...
版本号:struts2.1.6此实例实现功能:用户须要指定username登陆,登陆成功进入对应页面运行操作,否则返回到登陆页面进行登陆,当直接訪问操作页面(登陆后才干訪问的页面)时则不同意,须返回登陆页面。代码例如以下:一、页面login.jsp yuewei'Login -->...
分类:
其他好文 时间:
2014-08-21 09:40:03
阅读次数:
193
方法一:1 $UserName = "administrator"2 $serverpass = "pass"3 $server = "10.4.19.60"4 $Password = ConvertTo-SecureString $serverpass -AsPlainText –Force5 $...
分类:
其他好文 时间:
2014-08-20 23:56:13
阅读次数:
335
一、基本知识点1、Activity之间传递数据1)传递基本类型或String intent.putExtra("username", username); getIntent(); intent.getStringExtra("username");2)以bundle的形式传 Bundle bundle = new Bundle(); bundle.putString("use...
分类:
移动开发 时间:
2014-08-20 21:12:53
阅读次数:
384
#! /bin/bashtime=`date '+%Y-%m-%d %H:%M:%S'`# echo $timesql='SELECT `username`, `password` FROM `user` WHERE `expire_date` 0;'echo $sql
分类:
其他好文 时间:
2014-08-20 19:23:02
阅读次数:
226
phpmyadmin点击或者是执行sql语句显示SELECT `prefs`FROM `phpmyadmin`.`pma_table_uiprefs`WHERE `username` = 'root'AND `db_name` = 'test'AND `table_name` = 'user'MyS...
分类:
Web程序 时间:
2014-08-20 17:53:12
阅读次数:
1282
设置:auth.login(request, user) response = HttpResponseRedirect(reverse("index")) response.set_cookie('xiang', username, 3600) return response获取: def in....
分类:
其他好文 时间:
2014-08-20 13:50:42
阅读次数:
225
关于linux挂载window下共享文件的方法:
①事先建立linux下文件夹,例如“ /mnt/linux-folder”
②用mount命令挂载
mount -o username=windows下共享文件的访问用户名,password=windows下共享文件的访问密码 //ip/windows下共享文件名 /mnt/linux-folder
还有要实现开机时自动挂载这个共享...
$(document).ready(function() { $("#regUser").click(function(){if($("#userName").val()==""||$("#userName").val().length16){alert("用户名为空或者长度不符合要求!");re....
分类:
Web程序 时间:
2014-08-19 23:52:35
阅读次数:
243
function valFrom(){ var userName=document.getElementById("userName"); var pwd=document.getElementById("pwd"); var repwd=document.getElementById("repwd...
分类:
其他好文 时间:
2014-08-19 23:50:45
阅读次数:
239