本文整理汇总了PHP中Captcha::make方法的典型用法代码示例。如果您正苦于以下问题:PHP Captcha::make方法的具体用法?PHP Captcha::make怎么用?PHP Captcha::make使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Captcha
的用法示例。
在下文中一共展示了Captcha::make方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: makeForm
public static function makeForm()
{
$dataForm = '
<div
style="margin:0px;padding:0px;min-width: 280px;min-height:140px;max-width: 280px;max-height:140px;background-color: #2885BF;color:#ffffff;border-radius: 3px;padding:3px;">
<div style="margin:0px;padding:0px;float:left;width:100%;min-height:78px;max-height:78px;background-color: #ffffff;border-radius: 3px;">
<img src="' . Captcha::make('yes') . '" border="0" style="margin:0px;padding:0px;" />
</div>
<div style="margin:0px;padding:0px;float:left;width:100%;min-height:72px;max-height:72px;margin-top:0px; ">
<div style="margin:0px;padding:0px;float:left;width:150px;min-height:52px;max-height:52px;background-color: #629C24;border-radius: 3px;margin-top:5px; ">
<span style="margin:0px;padding:0px;margin-left: 5px;color:#ffffff;">Type the characters:</span>
<br>
<input type="text" placeholder="Type the characters.. " name="captcha_verify" style="color:#000000;margin:0px;padding:0px;border:1px solid #D4D4D4;width: 140px;margin-left: 5px;height:30px;max-height:30px;border-radius: 3px;" />
</div>
<div style="margin:0px;padding:0px;float:left;width:115px;min-height:52px;max-height:52px;margin-top:0px;margin-left: 0px; ">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHMAAAA0CAYAAAC5HgcyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAABZnSURBVHja7Jx7cFzVnec/5/a7W2/Z1sNPLOMXtsHINsYBgoNhIESAkzFDajIku8kaUjWT3U2qxtTuTrZqZ7Nj12ZTbG1mM7i2SCozyRB7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Aut6+fSoTbip/UGEBXYaebuzpPNcdiw6393S13dvT2b7y7o2P+BctWo4/6Mfnm0NxYCa1ZSsJxy9hSZOa8mXMKKthJDrIvv2v8eqvnz909szh55W03wAGC82rUioX//qUEGKnUqqe7FbWZ0Gu9M0B8TPTN5HjSKf4RxBeYDZwR1lF1X3Lb7ljw4Z7vrhwxap1/hkzqwkFQvg8IUDDpQlSmTidXW0c2L8n/tZvdx/o6jjzc8eMjIy3TiqldgEdQohn8q5BdhtqF1e3lXLhG7mQSvI0ZUdB3txeZhPZXYx6srshC53jZrKfL2xywFnoUIqFnzTscuop3AXJfU6Y34cc0Ln2Wpzr+eDXOX3fklcu9zlEft93Fzxjrq7rBjMnQWAecGflzNn3LV2+dvWyFWuq582vKy4vr/QUFRUDiq5L560D+3/bc+xwc9PY6NAu4DCQ/LhKlVJNQLMQYkcBmLuc08edh99FNl72uHNtd54JKx8n7+N5ZRbmXetw6qhzfnc4absD7poprme5ybDbOV6T18ZuB6Scmd3mTIL8D5WanN/7P6YPW516xSc1s+NJCmgDLkeG+1oO7utbdfRw0+3VNQuWzKqaXTNjZk25bZnqQvvp9s6O03ucTl5k4lCQKONHhdfnDWL+BnAHv7vxnIvBydf88rxZHc07piDP9jwt6Jhk3zY5ZerHKZdro3mcsgud64XtNOfVk/s46jk++vnDR2KM3DfIXI8Bp4BLpp482NP5QVVP5wfVZEMbLafBdrLRaZN5/WgGnlNKdRSsmS3Ow+zMM0steaayI+8BcxHnTxUM+LUkP4J957X65tSfb0rLufptaL55zx/4XN/L80DtcDRtouCv3Od+Ypxl5ar5usH/GCkAD1DigFlO9g8mpmTHlVLb1Edlu1JqoVLqeN61bU7/n3POR5RSF53zwrxNSqlNzjHOfeX85h9vcuoobCM/jde3rXnnx506thbka3LKb8rr20Lnek6ec85z7W516qp3nk8VlL3SLzH915+fqoy7tv0hGaBp+Vci05r5RyT/fwCuD1do97VmOwAAAABJRU5ErkJggg==" style="margin: 0px;padding:0px;border:0px;border-radius: 0px;" />
</div>
</div>
</div>
';
return $dataForm;
}
示例2: function
Route::delete('comments/{id}/delete', ['as' => 'comments.delete', 'middleware' => 'csrf', 'uses' => function ($id) {
return Comments::delete($id);
}]);
/*
* Ratings
*/
Route::post('ratings/store', ['as' => 'ratings.store', 'middleware' => 'csrf', 'uses' => function () {
$foreignType = Input::get('foreigntype');
$foreignId = Input::get('foreignid');
return Ratings::store($foreignType, $foreignId);
}]);
/*
* Captcha
*/
Route::get('captcha', ['as' => 'captcha', 'uses' => function () {
Captcha::make();
$response = Response::make('', 200);
$response->header('Content-Type', 'image/jpg');
return $response;
}]);
/*
* Installation
*/
Route::get('install', 'InstallController@index');
Route::post('install', 'InstallController@index');
/*
* Execute Cron Jobs
*/
Route::get('jobs', function () {
Jobs::run();
return Response::make('1', 200);