if(isset($_POST['value'])){
$_SESSION['value'] = $_POST['value'];
}
echo $_SESSION['value'];
<script type="text/javascript">
$(document).ready(function(){
elem = document.getElementById('parent');
elem.onclick = function(event){
var value = event.target.getAttribute('data-value');
$.post('/', {value: value}, function(data){
console.log('Записали в сессию: ' + value);
});
}
});
</script>
<div id="parent">
<div data-value="45">
Текст 45
</div>
<div data-value="46">
Текст 46
</div>
</div>
-Программы
--iPhone
---iPhone4
---iPhone5
--Самсунг
на самой верхней категории ничего не отдает.
namespace More;
abstract class Crypt {
static function hash($string){
$soil = ['soil' => 'jh!@345jHJBnbd'];
return sha1($string . base64_encode(md5($soil['soil'])) . bin2hex(md5($string)) . $soil['soil']);
}
}
namespace More;
abstract class Crypt {
static function hash($string){
$soil = include_once(DIR_CONFIG . '/crypt.php');
return sha1($string . base64_encode(md5($soil['soil'])) . bin2hex(md5($string)) . $soil['soil']);
}
}
$ref = (int)$_GET['ref'] ?? false;
if($ref){
//скрытое поле
}
running install
running build
running build_py
running build_scripts
running build_i18n
intltool-update -p -g gtk-proxy-config
running build_icons
running build_help
running install_lib
running install_scripts
changing mode of /usr/local/bin/gtk-proxy-config to 755
running install_data
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/gtk_proxy_config-0.2.3.egg-info
Writing /usr/local/lib/python2.7/dist-packages/gtk_proxy_config-0.2.3.egg-info
/usr/local/lib/python2.7/dist-packages/gtkproxyconfig/gtkproxyconfig.py:28: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk, GdkPixbuf
Traceback (most recent call last):
File "/usr/local/bin/gtk-proxy-config", line 24, in
sys.exit(gtkproxyconfig.main())
File "/usr/local/lib/python2.7/dist-packages/gtkproxyconfig/gtkproxyconfig.py", line 324, in main
app = GtkProxyConfig()
File "/usr/local/lib/python2.7/dist-packages/gtkproxyconfig/gtkproxyconfig.py", line 58, in __init__
self.add_from_file(os.path.join(DATA_DIR, 'ui', 'gtk-proxy-config.ui'))
GLib.Error: g-file-error-quark: Не удалось открыть файл «/usr/share/gtk-proxy-config/ui/gtk-proxy-config.ui»: No such file or directory (4)