Skip to content

Instantly share code, notes, and snippets.

View dzarezenko's full-sized avatar
🚀
TON

Dmytro Zarezenko dzarezenko

🚀
TON
View GitHub Profile
<div class="costum-block">
<h2>Sign In</h2>
<div class="blockContent">
<form action="login" method="post">
<table class="Form" style="margin-top:20px;margin-bottom:20px;" cellpadding="0px" cellspacing="5px">
<tr>
<td class="Label" style="width:80px;">E-mail</td>
<td class="Element"><input name="login" value="<?= $_FIELDS['login'] ?>" type="text" /><?= displayErrorFor("login") ?></td>
</tr>
<tr>
<?php
if (!empty($resize)) {
if(preg_match("/[^0-9\.]/",$resize)) { // Queremos solo numeros!
$errormsg = JUST_NUMBERS;
$titulo = UPLOADED_BUT_NOT_RESIZED.ESP_TITULO;
$spit = true;
$red = 2;
} else {
if ($dimension == "large_side") {
<div id="redimensionar-borde" style="display: none;">
<div id="cajonred">
<div id="ancho_deseado"><?= D_RESIZE_SIZE ?> <span><?=RESIZE_PIXELS;?></span></div>
<input name="resize" id="resize"/>
<div id="kepp"><?=RESIZE_KEEP;?></div>
<div id="dimensions">
<?= D_BY ?>
<input name="dimension" type="radio" value="width" checked="yes" /><?= D_WIDTH ?>
<input name="dimension" type="radio" value="height" /><?= D_HEIGHT ?>
<input name="dimension" type="radio" value="large_side" /><?= D_LARGE_SIDE ?>
<?php
public function addReview($review) {
return $this->insertDBObject($review);
}
public function saveReview($review) {
return $this->updateDBObject($review);
}
<?php
$config_path_image_upload = ROOT_DIR . "/uploads/posts/" . FOLDER_PREFIX . "/";
$config_path_image_upload_2 = "/var/www/vhosts/9lives.in.ua/httpdocs/uploads/posts/" . FOLDER_PREFIX . "/";
// $destinationImagePath = $config_path_image_upload . $file_prefix . $image_name;
$destinationImagePath = $config_path_image_upload . $site_name . $file_prefix . "." . $type;
$destinationImagePath_2 = $config_path_image_upload_2 . $site_name . $file_prefix . "." . $type;
if ($urlcopy != "yes") {
@move_uploaded_file($image, $destinationImagePath) or $img_result = "<div><font color=red>{$lang['images_uperr_3']}<br /><br />{$error_code}</font></div>";
/*
* Copyright © 2009, Componentix. All rights reserved.
*/
package com.componentix.hibernate.dialect;
import java.sql.Types;
/**
* A proper dialect for Microsoft SQL Server 2000 and 2005.
<?php
function isObject(&$object) {
if (isset($object) && is_object($object)) {
if (!empty($object)) {
return true;
}
return false;
}
return false;
span.text_gallaryname a{
color:#0C86E0;
text-decoration:none;
}
span.text_gallaryname a:hover{
color:#CC0000;
text-decoration:underline;
}
span.text_gallaryname a:visited{
color:#0C86E0;