Skip to content

Commit

Permalink
theme broken
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyyy committed Sep 8, 2023
1 parent 78a1607 commit 602d756
Show file tree
Hide file tree
Showing 80 changed files with 5,829 additions and 4,224 deletions.
3 changes: 0 additions & 3 deletions .browserslistrc

This file was deleted.

375 changes: 194 additions & 181 deletions .htaccess

Large diffs are not rendered by default.

4,325 changes: 4,325 additions & 0 deletions DB/exported-wp-db.sql

Large diffs are not rendered by default.

230 changes: 0 additions & 230 deletions phpcs.xml

This file was deleted.

3 changes: 0 additions & 3 deletions phpinfo.php

This file was deleted.

6 changes: 6 additions & 0 deletions tools/db/backup-db-mysql.sh
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# backup DB using mysql default cli

wp db export ./DB/exported-wp-db.sql --add-drop-table --allow-root

wp search-replace 'wp-framework.pp.ua' 'wp-framework.local' --report-changed-only=true --precise --all-tables

wp search-replace 'wp-framework.local' 'wp-framework.pp.ua' --report-changed-only=true --precise --all-tables --export=DB/exported-search-replaced-wp-db.sql
2 changes: 1 addition & 1 deletion tools/db/extract-7zip-to-db.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
$password = Read-Host -Prompt "Enter the archive password" -AsSecureString
$passwordPlainText = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto([System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($password))

$archiveFile = "./DB/exported-wp-sql.7z" # Path to the archive file
$archiveFile = "./DB/exported-wp-db.7z" # Path to the archive file
$outputDir = "./DB" # Directory where files will be extracted

# Check if the archive file exists
Expand Down
2 changes: 1 addition & 1 deletion tools/db/extract-7zip-to-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
read -s -p "Enter the archive password: " password
echo # Print an empty line to move to a new line

archiveFile="./DB/exported-wp-sql.7z" # Path to the archive file
archiveFile="./DB/exported-wp-db.7z" # Path to the archive file
outputDir="./DB" # Directory where files will be extracted

# Check if the archive file exists
Expand Down
4 changes: 2 additions & 2 deletions tools/db/move-db-to-7zip.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$sourceFile = "./DB/exported-wp-sql.sql" # Path to the source file
$archiveFile = "./DB/exported-wp-sql.7z" # Path to the archive file to be created
$sourceFile = "./DB/exported-wp-db.sql" # Path to the source file
$archiveFile = "./DB/exported-wp-db.7z" # Path to the archive file to be created

# Prompt the user for the password
$password = Read-Host "Enter the archive password" -AsSecureString
Expand Down
4 changes: 2 additions & 2 deletions tools/db/move-db-to-7zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# sudo apt install p7zip-full
# 7z --version

sourceFile="./DB/exported-wp-sql.sql" # Path to the source file
archiveFile="./DB/exported-wp-sql.7z" # Path to the archive file to be created
sourceFile="./DB/exported-wp-db.sql" # Path to the source file
archiveFile="./DB/exported-wp-db.7z" # Path to the archive file to be created

# Prompt the user for the password
read -s -p "Enter the archive password: " password
Expand Down
65 changes: 32 additions & 33 deletions wp-config.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
<?php
define('WP_MEMORY_LIMIT', '1024M');

define( 'WP_MEMORY_LIMIT', '1024M' );

const CACHE_READ_WHITELIST = '_transient|posts WHERE ID IN|limit_login_'; // do not read from cache is sql contains these
const CACHE_WRITE_WHITELIST = '_transient|limit_login_'; // do not reset cache if sql contains these

//Begin Really Simple SSL session cookie settings
@ini_set('session.cookie_httponly', true);
@ini_set('session.cookie_secure', true);
@ini_set('session.use_only_cookies', true);
@ini_set( 'session.cookie_httponly', true );
@ini_set( 'session.cookie_secure', true );
@ini_set( 'session.use_only_cookies', true );
//END Really Simple SSL

define('DB_NAME', 'wpframework');
define('DB_USER', 'wpframework');
define('DB_PASSWORD', 'wpframework');
define('DB_HOST', 'localhost');
define( 'DB_NAME', 'wpframework' );
define( 'DB_USER', 'wpframework' );
define( 'DB_PASSWORD', 'wpframework' );
define( 'DB_HOST', 'localhost' );

define('DB_CHARSET', 'utf8mb4');
define('DB_COLLATE', 'utf8mb4_unicode_ci');
define( 'DB_CHARSET', 'utf8mb4' );
define( 'DB_COLLATE', 'utf8mb4_unicode_ci' );

$table_prefix = 'hadpj_';

Expand All @@ -27,44 +29,41 @@
define( 'SCRIPT_DEBUG', true );
define( 'SAVEQUERIES', true );
define( 'WP_ENVIRONMENT_TYPE', 'development' );

if( WP_DEBUG && WP_DEBUG_DISPLAY && (defined('DOING_AJAX') && DOING_AJAX) ){
@ ini_set( 'display_errors', 1 );
if (WP_DEBUG && WP_DEBUG_DISPLAY && (defined('DOING_AJAX') && DOING_AJAX)) {
@ini_set('display_errors', 1);
}

// Query Monitor
define('QM_ENABLE_CAPS_PANEL', true);
define('QM_HIDE_CORE_ACTIONS', true);
define('QM_HIDE_SELF', true);
//define('QM_HIDE_SELF', true);
define( 'QM_ENABLE_CAPS_PANEL', true );
define( 'QM_HIDE_CORE_ACTIONS', true );
define( 'QM_HIDE_SELF', true );
} else {
@ini_set( 'display_errors', 0 );

define( 'WP_DEBUG', false );
define( 'WP_DEBUG_LOG', false );
define( 'WP_DEBUG_DISPLAY', false );
define( 'SCRIPT_DEBUG', false );
define( 'SAVEQUERIES', false );
define( 'WP_ENVIRONMENT_TYPE', 'production' );

@ini_set( 'display_errors', 0 );
}

define( 'DISABLE_WP_CRON', true );
//define( 'ALTERNATE_WP_CRON', true );
// define( 'DISABLE_WP_CRON', true );
// define( 'ALTERNATE_WP_CRON', true );
define( 'WPCF7_AUTOP', false );
define( 'WP_ALLOW_REPAIR', true );
define( 'DISALLOW_FILE_EDIT', true );
define( 'WP_ALLOW_MULTISITE', true );
// define( 'WP_ALLOW_MULTISITE', true );
define( 'FS_METHOD', 'direct' );
define( 'REVISR_GIT_PATH', '' );

define('AUTH_KEY', 'PK2?Bu1fPWFWDJt,RtT0xqPi oSR@jMr$.1ERFgZe|sCTi:;?-TIG n;v^Uhl/rM');
define('SECURE_AUTH_KEY', 'eAf2wy6Q9O2d0A1EP14~D~mk:AuUyXUhGu~7ds{LI[CzFY9)|%LgFha|lkgRlk)r');
define('LOGGED_IN_KEY', '>teXm>^t0YX$ @ ku<16q#?5;fc]z1pbR#rH?C#df?NGMK+U>{7Uhmo4,ZVCnBHK');
define('NONCE_KEY', '61m=t}qTGaa>O2-)dn,@3[7mMnhLFM|(3/uNf^<-fnyFS]$EoeA|J)@Ri%WK{[`?');
define('AUTH_SALT', 'Mxj 1j5-_3Cnvq`_[l3rENZEH>q8F0b=@%YeevQZ,cjsd~vDn<V(~K,MN/.seY,2');
define('SECURE_AUTH_SALT', 'j9(Wsv3h}K-uAN}%6SxaxK_99,Xy-ZGyM|pQA@PlXh<iP*6u_Yj(|G(REF}YpAnv');
define('LOGGED_IN_SALT', 'j==zh=I^IC%QG&PKj1I1l4]N~1$XW<>Yv#|UgO[ZAfsdRY{fw|qhA0Oy ^`A^_w7');
define('NONCE_SALT', '*-p4LlLI>[email protected][W 1t9-P_&P-7^3A)E@9+n*A1[[=ISwa}}+/0');
define( 'AUTH_KEY', 'PK2?Bu1fPWFWDJt,RtT0xqPi oSR@jMr$.1ERFgZe|sCTi:;?-TIG n;v^Uhl/rM' );
define( 'SECURE_AUTH_KEY', 'eAf2wy6Q9O2d0A1EP14~D~mk:AuUyXUhGu~7ds{LI[CzFY9)|%LgFha|lkgRlk)r' );
define( 'LOGGED_IN_KEY', '>teXm>^t0YX$ @ ku<16q#?5;fc]z1pbR#rH?C#df?NGMK+U>{7Uhmo4,ZVCnBHK' );
define( 'NONCE_KEY', '61m=t}qTGaa>O2-)dn,@3[7mMnhLFM|(3/uNf^<-fnyFS]$EoeA|J)@Ri%WK{[`?' );
define( 'AUTH_SALT', 'Mxj 1j5-_3Cnvq`_[l3rENZEH>q8F0b=@%YeevQZ,cjsd~vDn<V(~K,MN/.seY,2' );
define( 'SECURE_AUTH_SALT', 'j9(Wsv3h}K-uAN}%6SxaxK_99,Xy-ZGyM|pQA@PlXh<iP*6u_Yj(|G(REF}YpAnv' );
define( 'LOGGED_IN_SALT', 'j==zh=I^IC%QG&PKj1I1l4]N~1$XW<>Yv#|UgO[ZAfsdRY{fw|qhA0Oy ^`A^_w7' );
define( 'NONCE_SALT', '*-p4LlLI>[email protected][W 1t9-P_&P-7^3A)E@9+n*A1[[=ISwa}}+/0' );

// define( 'SMTP_username', '[email protected]' ); // username of host like Gmail
// define( 'SMTP_password', 'password' ); // password for login into the App
Expand All @@ -76,8 +75,8 @@
// define( 'SMTP_AUTH', true ); // Use SMTP authentication (true|false)
// define( 'SMTP_DEBUG', 1 ); // for debugging purposes only

if ( !defined('ABSPATH') ) {
define('ABSPATH', dirname(__FILE__) . '/');
if ( !defined( 'ABSPATH' ) ) {
define( 'ABSPATH', dirname(__FILE__) . '/' );
}

require_once(ABSPATH . 'wp-settings.php');
Loading

0 comments on commit 602d756

Please sign in to comment.