This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Start a new pool named 'www'. | |
; the variable $pool can be used in any directive and will be replaced by the | |
; pool name ('www' here) | |
[www] | |
; Per pool prefix | |
; It only applies on the following directives: | |
; - 'access.log' | |
; - 'slowlog' | |
; - 'listen' (unixsocket) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function start_progress { | |
while true | |
do | |
echo -ne "#" | |
sleep 1 | |
done | |
} | |
function stop_progress { | |
kill $1 | |
wait $1 2>/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Hekmatinasser\Verta; | |
/* | |
* This file is part of the Jalali package. | |
* | |
* (c) Nasser Hekmati <hekmati.nasser@gmail.com> | |
* | |
* For the full copyright and license information, please view the LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$query = "SELECT SQL_CALC_FOUND_ROWS notifications.* FROM notifications WHERE"; | |
if (!empty($filters['subsystem_id'])) { | |
$query .= " notifications.subsystem_id=:subsystem_id"; | |
} | |
$stm = $this->db->prepare($query); | |
$stm->execute([':subsystem_id' => $filters['subsystem_id']]); | |
$data = []; | |
while ($row = $stm->fetch(\PDO::FETCH_ASSOC)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Payment24 new API! | |
=================== | |
[TOC] | |
Here is newly added api's for mobile applications | |
---------- | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<fieldset class="form-control"><fieldset class="form-inline"><div class="form-group "><input name="hostmacros[0][macro]" placeholder="{$MACRO}" class="form-control" type="text" value=""></div> | |
<div class="form-group "><input name="hostmacros[0][value]" placeholder="value" class="form-control" type="text" value=""></div> | |
</fieldset><span data-template="<fieldset class="form-inline"><div class="form-group "><input name="hostmacros[__index__][macro]" placeholder="{$MACRO}" class="form-control" type="text" value=""></div> | |
<div class="form-group "><input name="hostmacros[__index__][value]" placeholder="value" class="form-control" type="text" value=""></div> | |
</fieldset>"></span></fieldset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<fieldset> | |
<fieldset class="form-inline"><div class="form-group "><input name="hostmacros[0][macro]" placeholder="{$MACRO}" class="form-control" type="text" value=""></div> | |
<div class="form-group "><input name="hostmacros[0][value]" placeholder="value" class="form-control" type="text" value=""></div> | |
</fieldset><span data-template="<fieldset class="form-inline"><div class="form-group "><input name="hostmacros[__index__][macro]" placeholder="{$MACRO}" class="form-control" type="text" value=""></div> | |
<div class="form-group "><input name="hostmacros[__index__][value]" placeholder="value" class="form-control" type="text" value=""></div> | |
</fieldset>"></span></fieldset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->add(array( | |
'type' => 'Zend\Form\Element\Collection', | |
'name' => 'hostmacros', | |
'twb-layout' => \TwbBundle\Form\View\Helper\TwbBundleForm::LAYOUT_INLINE, | |
'options' => array( | |
// 'label' => 'Please choose categories for this product', | |
// 'count' => 2, | |
'twb-layout' => \TwbBundle\Form\View\Helper\TwbBundleForm::LAYOUT_INLINE, | |
'should_create_template' => true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
if (array_key_exists('lang', $_GET)) { | |
$currentlang = $_GET['lang']; | |
} else { | |
$currentlang = 'en'; | |
} | |
$langdataArray = array( | |
'texten' => 'textfa', | |
); |
NewerOlder