if ($mysqli->connect_errno) {
printf("Не удалось подключиться: %s\n", $mysqli->connect_error);
exit();
}
$mysqli->select_db('payments_cs');
$mysqli->set_charset('utf8');
$request = "SELECT t1.data_create, t1.order_id, t1.description, t1.status_pay, t1.status_desc, t1.reference_pay, t1.ldap_autor, t1.amount, t1.err_description, t1.transaction_id FROM transactions_new AS t1 WHERE t1.ref_vipcc = '$ref_vipcc'";
if(mysqli_num_rows($result = $mysqli->query($request)) > 0){
$thisPayment = mysqli_fetch_array($result);
$dataPayment = $thisPayment['data_create'];
}
{
"name": "martovytskyi",
"version": "1.0.0",
"description": "site resume front-end ",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Yevhenii Martovytskyi",
"license": "ISC",
"dependencies": {
"browser-sync": "^2.26.7",
"del": "^5.1.0",
"gulp": "^4.0.2",
"gulp-sass": "^4.0.2",
"gulp-sourcemaps": "^2.6.5",
"jquery-touchswipe": "^1.6.19",
"natives": "^1.1.6"
},
"devDependencies": {
"bs-html-injector": "^3.0.3",
"gulp-autoprefixer": "^7.0.0",
"gulp-cache": "^1.1.3",
"gulp-cli": "^2.2.0",
"gulp-concat": "^2.6.1",
"gulp-concat-css": "^3.1.0",
"gulp-cssnano": "^2.1.3",
"gulp-eslint": "^6.0.0",
"gulp-htmlmin": "^5.0.1",
"gulp-imagemin": "^6.1.0",
"gulp-rename": "^1.4.0",
"gulp-uglifyjs": "^0.6.2",
"gulp-util": "^3.0.8",
"imagemin-pngquant": "^8.0.0",
"node-sass": "^4.12.0",
"vinyl-ftp": "^0.6.1"
}
}
const
gulp = require('gulp'),
sass = require('gulp-sass'),
browsersync = require("browser-sync").create(),
concat = require('gulp-concat'),
concatCSS = require('gulp-concat-css'),
uglify = require('gulp-uglifyjs'),
cssnano = require('gulp-cssnano'),
rename = require('gulp-rename'),
del = require('del'),
imagemin = require('gulp-imagemin'),
pngquant = require('imagemin-pngquant'),
cache = require('gulp-cache'),
autoprefixer = require('gulp-autoprefixer'),
htmlmin = require('gulp-htmlmin'),
sourcemaps = require('gulp-sourcemaps');
function gulpSass() {
return gulp
.src('assets/sass/**/*.sass')
.pipe(sass({ outputStyle: "expanded" }))
.pipe(autoprefixer(['last 15 versions', '> 1%', 'ie 8', 'ie 7'], {cascade: true}))
.pipe(gulp.dest('assets/css'))
.pipe(browsersync.stream())
}
function libsJs() {
return gulp.src([
'assets/libs/jquery/dist/jquery.js',
'assets/libs/bootstrap/dist/js/bootstrap.min.js',
])
.pipe(concat('libs.min.js'))
.pipe(uglify({
toplevel: true
}))
.pipe(gulp.dest('assets/js'))
}
function libsCss() {
return gulp.src([
'assets/libs/bootstrap/dist/css/bootstrap.css',
])
.pipe(sourcemaps.init())
.pipe(concatCSS('libs.css'))
.pipe(gulp.dest('assets/css'))
.pipe(rename({suffix: '.min'}))
.pipe(cssnano())
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('assets/css'))
}
function browserSync(done) {
browsersync.init({
injectChanges: true,
server: {
baseDir: "assets/"
},
port: 3000,
notify: false
});
done();
}
function clean() {
return del(["dist"]);
}
function clear() {
return cache.clearAll();
}
function images() {
return gulp
.src("assets/images/**/*")
.pipe((cache(
imagemin([
imagemin.gifsicle({ interlaced: true }),
imagemin.jpegtran({ progressive: true }),
imagemin.optipng({ optimizationLevel: 5 }),
imagemin.svgo({
plugins: [
{
removeViewBox: false,
collapseGroups: true,
use: [pngquant()]
}
]
})
])))
)
.pipe(gulp.dest("dist/assets/images"));
}
function watchFiles(done) {
gulp.watch('assets/sass/**/*.sass', gulp.parallel(gulpSass));
gulp.watch('assets/css/**/*.css', reload);
gulp.watch('assets/js/**/*.js', reload);
gulp.watch('*.html', reload);
done();
}
function buildFiles(done) {
gulp.src([
'assets/css/main.css',
'assets/css/libs.min.css'
])
.pipe(cssnano())
.pipe(gulp.dest('dist/assets/css'));
gulp.src(
'assets/js/libs.min.js')
.pipe(gulp.dest('dist/assets/js'));
gulp.src('assets/js/main.js')
.pipe(uglify({
toplevel: true
}))
.pipe(gulp.dest('dist/assets/js'));
gulp.src('*.html')
.pipe(htmlmin({collapseWhitespace: true}))
.pipe(gulp.dest('dist'));
done();
}
const watch = gulp.parallel(watchFiles, browserSync, libsCss, libsJs);
const build = gulp.series(clean, gulp.parallel(buildFiles, images, libsJs));
exports.clean = clean;
exports.clear = clear;
exports.watch = watch;
exports.build = build;
function reload(done) {
browsersync.reload();
done();
}
// Compile Sass
.pipe(sourcemaps.init())
.pipe(sass())
.pipe(sourcemaps.write())
.pipe(gulp.dest('../public/assets/css'))
// Autoprefix
.pipe(sourcemaps.init({loadMaps: true}))
.pipe(autoprefixer('last 2 version', 'ie 8', 'ie 9'))
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('../public/assets/css'))
И затем только просмотр css файлов для вставки стиля.
// CSS Injection
.pipe(filter('**/*.css'))
.pipe(browserSync.reload({stream:true}))