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
// Find this in filemanager.php (probably line 363) | |
function fm_access_shortcode( $atts, $content = null ){ | |
extract(shortcode_atts(array( | |
'group' => '', | |
), $atts)); | |
$red_current_user = wp_get_current_user(); | |
$red_current_id = $red_current_user->ID; | |
$red_fm_role = reset($red_current_user->roles); |
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 | |
/** | |
* WPBakery Visual Composer front end editor | |
* | |
* @package WPBakeryVisualComposer | |
* | |
*/ | |
/** | |
* Add element for VC editors with a list of mapped shortcodes. |
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
$newdir = str_replace("\\", "/", $upload_dir['basedir'].'/'.$user->user_login.'/'); | |
$newurl = str_replace("\\", "/", $upload_dir['baseurl'].'/'.$user->user_login.'/'); |
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
//Line 312 and 313: | |
$newdir = str_replace("\\", "/", $upload_dir['basedir'].'/'.$user->user_login.'/'); | |
$newurl = str_replace("\\", "/", $upload_dir['baseurl'].'/'.$user->user_login.'/'); | |
//TO: | |
$newdir = str_replace("\\", "/", $upload_dir['basedir'].'/users/'.$user->user_login.'/'); | |
$newurl = str_replace("\\", "/", $upload_dir['baseurl'].'/users/'.$user->user_login.'/'); | |
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
/*lis will always be inline*/ | |
ul { | |
width: 100%; | |
display: table; | |
table-layout: fixed; /* optional */ | |
} | |
ul li { | |
display: table-cell; | |
width: auto; /* can be a number too */ |
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
#include "sqlite_class.h" | |
Sqlite_Class::Sqlite_Class(QString filename) | |
{ | |
db = QSqlDatabase::addDatabase("QSQLITE"); | |
QString db_path = QDir::currentPath(); | |
qDebug() << db_path; //current path |
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
void MainWindow::attendance_table(){ | |
//QTableWidgetItem *itm = new QTableWidgetItem(); | |
ui->att_table->setColumnCount(15); | |
QStringList label; | |
label <<tr("ID") << tr("Name") << tr("1") << tr("2") << tr("3") << tr("4") << tr("5") << tr("6") << tr("7") << tr("8") << tr("9") << tr("10") << tr("11") << tr("12") << tr("13") ; | |
ui->att_table->setHorizontalHeaderLabels(label); | |
ui->att_table->verticalHeader()->hide(); | |
ui->att_table->setShowGrid(false); | |
// QTableWidgetItem *itm = new QTableWidgetItem(tr("Name")); |
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
#include "mainwindow.h" | |
#include <QApplication> | |
#include <QSqlDatabase> | |
#include <QSql> | |
#include <QSqlError> | |
#include <QDir> | |
#include <QFile> | |
#include <QDebug> | |
#include <QSqlQuery> | |
#include <QString> |
NewerOlder